You can do this. <br><br>'d const(maskout(var,var),0,-u)'.<br><br>Cheers,<br><br>Ted<br><br><div class="gmail_quote">On Thu, Jul 21, 2011 at 11:09 AM, Eungul Lee <span dir="ltr"><<a href="mailto:eungul.lee@gmail.com">eungul.lee@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Dear GrADS users,<br>
<br>
I am using GrADS v2.0.a9 in Linux.<br>
<br>
I am going to set negative values to zero at each grid point in NetCDF file.<br>
I've been trying this using "if statements" in .gs file like below,<br>
but it didn't work.<br>
<br>
'open .ctl file'<br>
if (varname < 0.)<br>
varname = 0.<br>
endif<br>
<br>
If you have any experience in GrADS for this, please let me know.<br>
<br>
Thanks in advance,<br>
Eugene<br>
_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br>
</blockquote></div><br>