<div dir="ltr">Dear Davide,<div><br></div><div>Thank you for your kind reply.</div><div><br></div><div>I tried your suggestions and it seems to work well.</div><div>However i am interested in obtaining just one value as a result instead of the list of values for each day. </div><div>In my understanding i think i need to add the "sum" function as well.</div><div> Can you please guide me how i can obtain it.</div><div><br></div><div><br></div><div>Thank you</div><div><br></div><div><br></div><div>With Best Regards,</div><div><br></div><div>Mehwish</div><div><br></div><div><br></div><div> </div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 29, 2014 at 9:55 PM, Davide Sacchetti <span dir="ltr"><<a href="mailto:davide.sacchetti@arpal.gov.it" target="_blank">davide.sacchetti@arpal.gov.it</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">use nested maskout:<br>
<br>
maskout(maskout(1, prate*86400-1),10-prate*86400) (I didn't checked but<br>
it looks reasonable ...)<br>
<br>
bye bye<br>
Davide<br>
<div><div class="h5"><br>
On Wed, 2014-10-29 at 18:25 +0900, mehwish ramzan wrote:<br>
> Dear GrADS users,<br>
><br>
><br>
> I used the following script to calculate the number of days which<br>
> exceed precipitation by setting one limit such as below;<br>
><br>
><br>
><br>
><br>
> open r_pgb.ctl<br>
><br>
><br>
> set lon 78<br>
><br>
><br>
> set lat 10<br>
><br>
><br>
> define p1= sum(maskout(1, prate*86400 - 1.) , t=1, t=9491)<br>
> d p1<br>
><br>
><br>
><br>
><br>
> It gave me the number of days which exceeds 1mm/day precipitation.But<br>
> now i want to set the range such as greater then 1 and less then 10.<br>
><br>
><br>
> Can someone please guide me how to set the range?<br>
><br>
><br>
> Am using grads version 1.9.0.<br>
><br>
><br>
><br>
><br>
><br>
><br>
> Thank you<br>
><br>
><br>
> With Best Regards,<br>
><br>
><br>
> Mehwish<br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
</div></div>> _______________________________________________<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>
--<br>
Davide Sacchetti<br>
Centro Funzionale Meteo Idrologico di Protezione Civile della Regione Liguria<br>
ARPAL Unità Tecnica Complessa di livello Regionale<br>
V.le Brigare Partigiane 2 16121 Genova (I)<br>
tel: <a href="tel:%2B39%20010%206437535" value="+390106437535">+39 010 6437535</a> fax: <a href="tel:%2B39%20010%206437520" value="+390106437520">+39 010 6437520</a><br>
mail: <a href="mailto:davide.sacchetti@arpal.gov.it">davide.sacchetti@arpal.gov.it</a> web: <a href="http://www.meteoliguria.it" target="_blank">www.meteoliguria.it</a><br>
<br>
<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>
</blockquote></div><br><br clear="all"><div><br></div><br><div dir="ltr"><div style="font-family:arial;font-size:small"><font color="#666666"></font></div><div style="font-family:arial;font-size:small"><font color="#500050"> </font></div><div><br></div><div><br></div></div>
</div></div>