comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Motley MGH_NCDF_SAVE problem
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Motley MGH_NCDF_SAVE problem [message #39932] Fri, 25 June 2004 08:11
Michael Wallace is currently offline  Michael Wallace
Messages: 409
Registered: December 2003
Senior Member
> David Fanning writes:
>
>
>> I'll update them in a minute or two. :-)
>

Thanks, David.
Re: Motley MGH_NCDF_SAVE problem [message #39937 is a reply to message #39932] Thu, 24 June 2004 20:15 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
David Fanning writes:

> I'll update them in a minute or two. :-)

Done.

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Re: Motley MGH_NCDF_SAVE problem [message #39938 is a reply to message #39937] Thu, 24 June 2004 20:05 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Michael Wallace writes:

> Well, I just downloaded the library today from David's web site. I
> tried both of the zip files above and the mysterious SZ variable appears
> in mgh_ncdf_save.pro in each of them....

Uh, well, I was playing tennis. :-(

I'll update them in a minute or two. :-)

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Re: Motley MGH_NCDF_SAVE problem [message #39940 is a reply to message #39938] Thu, 24 June 2004 16:11 Go to previous message
Michael Wallace is currently offline  Michael Wallace
Messages: 409
Registered: December 2003
Senior Member
> It looks like you have an old copy of the library, Michael. The copies
> currently on David's site no longer have this problem:
>
> http://www.dfanning.com/hadfield/idl/motley.zip
> http://www.dfanning.com/hadfield/idl56/motley.zip
>

Well, I just downloaded the library today from David's web site. I
tried both of the zip files above and the mysterious SZ variable appears
in mgh_ncdf_save.pro in each of them....
Re: Motley MGH_NCDF_SAVE problem [message #39941 is a reply to message #39940] Thu, 24 June 2004 14:49 Go to previous message
Mark Hadfield is currently offline  Mark Hadfield
Messages: 783
Registered: May 1995
Senior Member
David Fanning wrote:
> Michael Wallace writes:
>
>> I am trying to use one of the procedures in Mark's Motley library, but
>> running into some problems. I want to use the MGH_NCDF_SAVE utility
>> program to save some of my structures to NetCDF files. However, when
>> running the command I see a lovely variable undefined error.
>>
>> % Variable is undefined: SZ.
>> % Execution halted at: MGH_NCDF_SAVE 115
>> <path to the library>/motley/mgh_ncdf_save.pro
>
> I'm not speaking for Mark, but I think that "sz" should be
> changed to "ndims". :-)

Yeah, something like that. The variable name "sz" would have been left
over from code that used the old-style SIZE function. Without keywords,
SIZE(var) returns an array in which the first element is the number of
dimensions. These days one would use SIZE(var, /N_DIMENSIONS) for the
same purpose.

It looks like you have an old copy of the library, Michael. The copies
currently on David's site no longer have this problem:

http://www.dfanning.com/hadfield/idl/motley.zip
http://www.dfanning.com/hadfield/idl56/motley.zip

--
Mark Hadfield "Ka puwaha te tai nei, Hoea tatou"
m.hadfield@niwa.co.nz
National Institute for Water and Atmospheric Research (NIWA)
Re: Motley MGH_NCDF_SAVE problem [message #39942 is a reply to message #39941] Thu, 24 June 2004 14:41 Go to previous message
Michael Wallace is currently offline  Michael Wallace
Messages: 409
Registered: December 2003
Senior Member
> I'm not speaking for Mark, but I think that "sz" should be
> changed to "ndims". :-)

That's what I first thought also, but then I realized that ndims is a
scalar. SZ needs to be an array.

-Mike
Re: Motley MGH_NCDF_SAVE problem [message #39943 is a reply to message #39942] Thu, 24 June 2004 13:58 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Michael Wallace writes:

> I am trying to use one of the procedures in Mark's Motley library, but
> running into some problems. I want to use the MGH_NCDF_SAVE utility
> program to save some of my structures to NetCDF files. However, when
> running the command I see a lovely variable undefined error.
>
> % Variable is undefined: SZ.
> % Execution halted at: MGH_NCDF_SAVE 115
> <path to the library>/motley/mgh_ncdf_save.pro
>
> After looking at mgh_ncdf_save.pro, the variable SZ does not exist
> anywhere else in the file. I am just learning about NetCDF and this
> Motley library, so I really haven't spent the time to try to figure out
> what was really intended on this line. I was wondering if anyone else
> out there uses this utility program and/or has run into the same problem
> before and what needs to be done to fix it.

I'm not speaking for Mark, but I think that "sz" should be
changed to "ndims". :-)

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Saving an application state
Next Topic: combining/processing objects

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sun Oct 12 06:27:56 PDT 2025

Total time taken to generate the page: 0.80226 seconds