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

Home » Public Forums » archive » Re: IDL Voodoo Experts Needed
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: IDL Voodoo Experts Needed [message #19045 is a reply to message #19040] Wed, 23 February 2000 00:00 Go to previous messageGo to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Liam E.Gumley (Liam.Gumley@ssec.wisc.edu) writes:

> I think you're looking for a multi-dimensional array of structures:
>
> IDL> layer = {layer, i:0, e:0.0, p:0.0, rho:0.0}
> IDL> nlayers = 40
> IDL> ntimesteps = 100
> IDL> evolution = replicate(layer, nlayers, ntimesteps)
> IDL> help, evolution
> EVOLUTION STRUCT = -> LAYER Array[40, 100]
> IDL> help, evolution[0, 0], /structure
> ** Structure LAYER, 4 tags, length=16:
> I INT 0
> E FLOAT 0.000000
> P FLOAT 0.000000
> RHO FLOAT 0.000000
>
> Am I missing something?

Duh, do you think!? :-(

I violated the first rule of technical support: Don't
take the question literally. Try to figure out what the
user wants to *do*. And probably for the same reason most
technical support people violate it: too little time to do
too much stuff on too little sleep.

Thanks, Liam.

Cheers,

David

P.S. Let's just say a second pot of coffee is brewing now.

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: objects graphics?
Next Topic: Re: functions as arguments ?

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

Current Time: Sat Oct 11 15:27:17 PDT 2025

Total time taken to generate the page: 1.27720 seconds