change values of structure variable [message #81957] |
Tue, 06 November 2012 00:41 |
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
|
|
|