[Thread Prev][Thread Next][Index]

Re: [ferret_users] how to find cumulative sum



> On Sep 10, 2015, at 9:53 PM, simon EK <simonambat@xxxxxxxxx> wrote:
> 
> hi all,
> I use the following script to list the rainfall
> =========================================================
> use rf_2000_2014.nc
> let rf = rainfall[X=66E:101E@ave,Y=6N:39N@ave,t=1-jan-2000:31-dec-2000]
> list rf
> =========================================================
> 
> I would like to do the following:
> 
> 1. create a cumulative total of rf (means 2nd day rf should be total of day1 & day2.
>     3rd day total should be total of day1, day2 & day3. ...

LIST RF[x=@sum,y=@sum,t=@RSUM]

> 
> 2. I would like to know the date on which the cum. rf has crossed 50% of the total rf.
>     (Eg. cum. rf of year 1951 is: 1029.86mm. 
>            50% of cum rf is : 514.93mm
>             Date on which the cum rf crossed 50% rf : July 26, 1951)
> 
> how to do it using ferret prorammatically?

I think this would use the @evnt transform. See the manual for @evnt.

> thanks in advance for the responses.
> 
> Regards
> Simon

Also you might look at the message I just sent to George Odierno ....


[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce / NOAA / OAR / PMEL / Ferret

Privacy Policy | Disclaimer | Accessibility Statement