[ncl-talk] Era-Interim daily precipitation

Dennis Shea shea at ucar.edu
Thu May 31 08:14:47 MDT 2018


The *golden rule* of  data processing is *look at your data*

You have:

tp=f->tp     ; <=== type 'short' [ packed data]

However, your file has:

      *short* tp ( time, latitude, longitude )
        * scale_factor *: 5.505649013956001e-06
         *add_offset *:   0.1803980955369768
         _FillValue :   -32767
         missing_value :        -32767
         units :        m
         long_name :    Total precipitation

You **MUST* *unpack the variable before computing the sums.

tp = *short2flt*(f->tp)

printVarSummary(tp)
printMinMax(tp,0)

===
https://www.ncl.ucar.edu/Document/Functions/Contributed/short2flt.shtml






On Thu, May 31, 2018 at 7:19 AM, Ehsan Taghizadeh <ehsantaghizadeh at yahoo.com
> wrote:

> Dears,
> I've tried sum 12 hour precipitation to obtain 24 hour precipitation using
> attached script.
> However it seems doesn't work correctly!
> I had to sum tp(0,:,:)+tp(1,:,:), also tp(2,:,;)+tp(3,;,:), and so on.
> I uploaded "2_2_ERAI_Prec_2015_Jan_00_12_12.nc" in ftp.cgd.ucar.edu.
> I'll be thankful if I hear from you.
>
> Sincerely
> Ehsan
>
> On Wednesday, May 16, 2018, 8:23:32 AM GMT+4:30, Dennis Shea <
> shea at ucar.edu> wrote:
>
>
> This is book keeping. Something like:
>
> loop  each year
>    loop each month
>       loop each day
>
>         sum all values occurring between 00:00 and 11:59 inclusive
> ==>PRC(time,lat,lon,0)
>         sum all values occurring between 12:00 and 23:59 inclusive
> ==>PRC(time,lat,lon,1)
>
>      end day
>    end month
>  end year
>
>
> On Sun, May 13, 2018 at 9:07 AM, Ehsan Taghizadeh <
> ehsantaghizadeh at yahoo.com> wrote:
>
> Hi every body;
> Could I have any help to get daily precipitation from Era-Interim, please?
> I mean, a way to sum "accumulated precipitation from 00:00 to 12:00" with
> "accumulated precipitation from 12:00 to 24:00"?
>
> Sincerely
> Ehsan
>
> ______________________________ _________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/ mailman/listinfo/ncl-talk
> <http://mailman.ucar.edu/mailman/listinfo/ncl-talk>
>
>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180531/790ef3ec/attachment.html>


More information about the ncl-talk mailing list