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 
Return to the default flat view Create a new topic Submit Reply
Re: Motley MGH_NCDF_SAVE problem [message #39941 is a reply to message #39940] Thu, 24 June 2004 14:49 Go to previous messageGo 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)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Saving an application state
Next Topic: combining/processing objects

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

Current Time: Tue Dec 02 11:56:53 PST 2025

Total time taken to generate the page: 0.96235 seconds