[gradsusr] set negative values to zero

Eungul Lee eungul.lee at gmail.com
Thu Jul 21 13:09:44 EDT 2011


Dear GrADS users,

I am using GrADS v2.0.a9 in Linux.

I am going to set negative values to zero at each grid point in NetCDF file.
I've been trying this using "if statements" in .gs file like below,
but it didn't work.

'open .ctl file'
 if (varname < 0.)
    varname = 0.
 endif

If you have any experience in GrADS for this, please let me know.

Thanks in advance,
Eugene



More information about the gradsusr mailing list