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

Home » Public Forums » archive » Re: Programatically create structure
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: Programatically create structure [message #40443] Wed, 04 August 2004 08:56 Go to previous message
Michael Wallace is currently offline  Michael Wallace
Messages: 409
Registered: December 2003
Senior Member
> You can use CREATE_STRUCT:
>
> mystruct = CREATE_STRUCT( variable_name, $
> variable_data )
>
> is what I use in my netCDF reader - where I have may have no idea
> beforehand what the variable name is or what the variable data type is.
> That information comes from the netCDF read... or your database query.
>
> You can append stuff to the structure also,
>
> mystruct = CREATE_STRUCT( mystruct, $
> next_variable_name, $
> nest_variable_data )
>
> but I don't know how efficient that is for large datasets, or if you can
> do it for named structures.

Thanks. That's exactly what I needed. I know I read a ton about
CREATE_STRUCT() last night, but apparently it didn't sink in. I blame
it on me actually attempting to do IDL programming at 2:00AM. Or maybe
I can blame it on the Mountain Dew wearing off an hour or so before that.

-mike
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: working dir with virtual machine
Next Topic: Controlling number of decimal places

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

Current Time: Fri Oct 10 05:15:15 PDT 2025

Total time taken to generate the page: 0.24399 seconds