<div dir="ltr">Rabah,<div>If you have opengrads, you could use "if" function, for example:</div><div>'define newfld=if(var,<,1000,1,-u)' where var is an available variable whose values are < 1000</div>
<div><br></div><div>Otherwise, you could use const, for example:</div><div>'define newfld=const(var,1,-a)' where var is an available variable</div><div><br></div><div>Hope above helps.</div><div>Stephen McMillan</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jul 17, 2014 at 3:07 PM, Rabah Hachelaf <span dir="ltr"><<a href="mailto:r.hachelaf@gmail.com" target="_blank">r.hachelaf@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello all,<div><br></div><div>How can i define a new field (Xsize,Ysize) containing constant value (1 for exemple) in GRADS.</div>
<div><br></div><div>Thanks.<span class="HOEnZb"><font color="#888888"><br clear="all"><div><br></div>-- <br><div dir="ltr">
<div>------------------------------</div>Cordialement,<br>Best regards,<br>Rabah Hachelaf <br> <br><br></div>
</font></span></div></div>
<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></div>
<pre>***************************************************
The information contained in this e-mail message is intended only for the use of the recipient(s) named above and may contain information that is privileged, confidential, and/or proprietary.
If you are not the intended recipient, you may not review, copy or distribute this message. If you have received this communication in error, please notify the sender immediately by e-mail, and delete the original message.
***************************************************