[Thread Prev][Thread Next][Index]

Re: [ferret_users] cumulative distribution curve



Dear Gopika,

On Sun, Dec 1, 2019 at 11:32 AM gopika suresh <gopikasurvay@xxxxxxxxx> wrote:
If some value is there in any year then it will be increasing otherwise straight line.

Basically, the @RSUM does that, if I understand your requirements correctly:

yes? let events = {1, 0, 0, 1, 0, 1, 0, 0, 0, 0, 1, 1}
yes? plot/symbols/lines events, events[i=@RSUM]

The problem is that Ferret defines RSUM on the "wrong" gridpoints.  You want to shift it to the left by half gridspacing.  To do so would require a bit of complicated manipulation . . .  and you also want the initial value of the cumulative sum to be zero. . . .  (Personally, I would write the values to a text file, read it by a program and compute the cumulative sum, and plot the result with gnuplot.)

Cheers,
Ryo

PNG image


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

Privacy Policy | Disclaimer | Accessibility Statement