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

Home » Public Forums » archive » pointer and structure stuff ...
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
pointer and structure stuff ... [message #38202] Tue, 24 February 2004 07:17
Ingo Salzmann is currently offline  Ingo Salzmann
Messages: 10
Registered: December 2002
Junior Member
Hi,
Can anybody please help me with the following banal problem ...

IDL> info = {vectors:Ptr_New(vectors)}
IDL> v1 = Indgen(3,30)
IDL> *info.vectors = {v1:v1}
IDL> help, (*info.vectors).v1
<Expression> INT = Array[3, 30]

IDL> temp = Intarr(3,20)
IDL> (*info.vectors).v1 = temp
IDL> help, (*info.vectors).v1
<Expression> INT = Array[3, 30]

with the first 60 elements zeroed ...
Can I have IDL resize its variable (*info.vectors).v1 easier than by the
following statement:

IDL> v1=Intarr((SIZE(temp))[1],(SIZE(temp))[2])
IDL> *info.vectors = {v1:v1}
IDL> (*info.vectors).v1 = temp
IDL> help, (*info.vectors).v1
<Expression> INT = Array[3, 20]

If dealing with a large ammount of elements stored in the info structure
this doesn't seem handy to me :-(
Thanks for suggestions,
Ingo
[Message index]
 
Read Message
Previous Topic: Blanking out regions
Next Topic: IDLgrModel, rotation angles

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

Current Time: Fri Oct 10 09:48:14 PDT 2025

Total time taken to generate the page: 0.39883 seconds