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

Home » Public Forums » archive » IDL Voodoo Experts Needed
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
IDL Voodoo Experts Needed [message #19048] Wed, 23 February 2000 00:00
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Hi Folks,

Alright, here is an example of what I wake up to each
morning, which might go a long way toward explaining why
I never get any productive work done. A fellow writes me
(this inevitably happens) on a topic we discussed just
a couple of days ago. Namely, he wants to create an
array of arrays--BUT, the original array is an array
of structures.

He puts the problem like this:

Is it possible to create an array of arrays of structures?
This does not work:

l={layer,I:0,E:0.0,p:0.0,rho:0.0} ;STRUCT DEFINITION
volume=replicate(l,layernum) ;ARRAY OF STRUCTURES
evolution=replicate(volume,timesteps) ;ARRAY OF ARRAYS OF STRUCTURES

I tried Craig Markwardt's CMReplicate program and the REBIN/REFORM
voodoo offered by Liam Gumley and Bill Thompson, but all to no
effect. All complain about structures.

Since I *really* have to work on taxes and other financial
matters this morning, and since I notice quite a few more
willing bodies around here than we used to have, I'm turning
this one over to the real experts. Any ideas? :-)

Cheers,

David
--
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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: functions as arguments ?
Next Topic: CMREPLICATE / CMSET_OP (was: voodoo)

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

Current Time: Wed Oct 08 15:38:02 PDT 2025

Total time taken to generate the page: 0.00549 seconds