[gradsusr] set negative values to zero
Edward Pollock
edwardp at ualberta.ca
Thu Jul 21 13:51:35 EDT 2011
You can do this.
'd const(maskout(var,var),0,-u)'.
Cheers,
Ted
On Thu, Jul 21, 2011 at 11:09 AM, Eungul Lee <eungul.lee at gmail.com> wrote:
> 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
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20110721/b8d39921/attachment-0003.html
More information about the gradsusr
mailing list