|
|
Re: Motley MGH_NCDF_SAVE problem [message #39938 is a reply to message #39937] |
Thu, 24 June 2004 20:05  |
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 #39941 is a reply to message #39940] |
Thu, 24 June 2004 14:49  |
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 #39943 is a reply to message #39942] |
Thu, 24 June 2004 13:58  |
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/
|
|
|