[gradsusr] Const() Function

H.L biometeorology at gmail.com
Mon Jan 16 17:48:15 EST 2012


Hi Dear all Grads Usr
I want to change data in some Grids and save a new netCDF file, Please any
one help me
I have use final version of GrADS in Win7

I try to do this as below,

x = 1
while x <20
'set x 'x
y = 1
while y <20
'set y 'y
'd const(variable, new value)'    => for example new value  = 25
y = y +1
endwhile
x = x +1
endwhile

'set x 1  20'
'set y 1  20'
'define XX=variable'
'set sdfwrite Test.nc'
'sdfwrite XX'

But Const() function change all data in all Grids.
Please guide me

Thanks


H.Lotfi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20120117/d7df6f31/attachment-0003.html 


More information about the gradsusr mailing list