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

Home » Public Forums » archive » change values of structure variable
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
change values of structure variable [message #81957] Tue, 06 November 2012 00:41
gunvicsin11 is currently offline  gunvicsin11
Messages: 93
Registered: November 2012
Member
Hi everyone,
Please help in changing values stored in structure variable.
What I tried is,

IDL> help,/str,atmos
** Structure <911e87c>, 11 tags, length=22780, data length=22780, refs=1:
NHYDR LONG 6
NELEM LONG 99
MOVING LONG 0
T DOUBLE Array[3, 82]
N_ELEC DOUBLE Array[3, 82]
VTURB DOUBLE Array[3, 82]
NH DOUBLE Array[3, 82, 6]
ID STRING 'FALC_03x82.atmos (Tue Nov 6 10:32:22 2012'...
ELEMENTS STRUCT -> <Anonymous> Array[99]
BACKGRFLAGS STRUCT -> <Anonymous> Array[284]
BACKGRRECNO LONG Array[284]

Here I want to change the values of VTURB to 2500.0000
SO I did,
IDL> atmos.vturb(*,*)=2500.0000
now temporarily it changes to 2500.0000, This is in a common block. So while running the main program the vturb value goes back to the original value instead of the changed 2500.0000.

Please help me in changing the value.

thanking you in advance
sid
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: IDL 8.2.1 HDF/HDF5 libraries?
Next Topic: Re: negative indices, am I missing something here?

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

Current Time: Wed Oct 08 11:34:53 PDT 2025

Total time taken to generate the page: 0.00473 seconds