[gradsusr] Precipitation range

mehwish ramzan mehwish.ramzan at gmail.com
Wed Oct 29 21:51:20 EDT 2014


Dear Davide,

Thank you for your kind reply.

I tried your suggestions and it seems to work well.
However i am interested in obtaining just one value as a result instead of
the list of values for each day.
In my understanding i think i  need to add the "sum" function as well.
 Can you please guide me how i can obtain it.


Thank you


With Best Regards,

Mehwish




On Wed, Oct 29, 2014 at 9:55 PM, Davide Sacchetti <
davide.sacchetti at arpal.gov.it> wrote:

> use nested maskout:
>
> maskout(maskout(1, prate*86400-1),10-prate*86400) (I didn't checked but
> it looks reasonable ...)
>
> bye bye
> Davide
>
> On Wed, 2014-10-29 at 18:25 +0900, mehwish ramzan wrote:
> > Dear GrADS users,
> >
> >
> > I used the  following script to calculate the number of days which
> > exceed  precipitation by setting one limit such as below;
> >
> >
> >
> >
> > open r_pgb.ctl
> >
> >
> > set lon 78
> >
> >
> > set lat 10
> >
> >
> > define p1= sum(maskout(1, prate*86400 - 1.) , t=1, t=9491)
> > d p1
> >
> >
> >
> >
> > It gave me the number of days which exceeds  1mm/day precipitation.But
> > now i want to set the range such as greater then 1 and less then 10.
> >
> >
> > Can someone please guide me how to set the range?
> >
> >
> > Am using grads version 1.9.0.
> >
> >
> >
> >
> >
> >
> > Thank you
> >
> >
> > With Best Regards,
> >
> >
> > Mehwish
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > _______________________________________________
> > gradsusr mailing list
> > gradsusr at gradsusr.org
> > http://gradsusr.org/mailman/listinfo/gradsusr
>
> --
> Davide Sacchetti
> Centro Funzionale Meteo Idrologico di Protezione Civile della Regione
> Liguria
> ARPAL Unità Tecnica Complessa di livello Regionale
> V.le Brigare Partigiane 2 16121 Genova (I)
> tel: +39 010 6437535                    fax: +39 010 6437520
> mail: davide.sacchetti at arpal.gov.it     web: www.meteoliguria.it
>
>
> _______________________________________________
> 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/20141030/a6dda925/attachment.html 


More information about the gradsusr mailing list