[ncl-talk] calculate moving(or running) percentile on times series

Barry Lynn barry.h.lynn at gmail.com
Thu Apr 19 07:46:17 MDT 2018


Hi:

18 is a unit of measure.  It can be anything.

First you must calculate the running average... Then you can try the next
step.

Barry

On Thu, Apr 19, 2018 at 4:30 PM, Sancta Vega <sanctavega at gmail.com> wrote:

> Ok thanks
> Your code calculate the running average (mean ) through a window of 18
> days by a loop I think?
> Me I need the daily value corresponding to the 85th percentile using a
> running window of 30 days for all years my result should be a (365 value
> corresponding to each day value).
>
> 2018-04-19 14:41 GMT+02:00 Barry Lynn <barry.h.lynn at gmail.com>:
>
>> To start, are you familiar with:
>>
>>   do j = 0,dims_o(0)-1
>>
>>    dfp_rave(j,:) = *run**ave*(dfp_o(j,:),18,0)
>>
>>   end do
>>
>>
>>
>> As to the 85th percentile, you need to figure out what it is, and then
>> use the where statement.
>>
>> Please try and then write again (to the list) when you have questions.
>>
>> Barry
>>
>> On Thu, Apr 19, 2018 at 2:36 PM, Sancta Vega <sanctavega at gmail.com>
>> wrote:
>>
>>> Hi,
>>> I would like to get number of days over a daily threshold during
>>> (Jan-dec 1800-1829 period).
>>> The threshold is calculated using a moving(or running percentile 85th)
>>> over this period.
>>>
>>> Could you please help me or give me an example of ncl script?
>>>
>>> Thanks
>>>
>>> _______________________________________________
>>> ncl-talk mailing list
>>> ncl-talk at ucar.edu
>>> List instructions, subscriber options, unsubscribe:
>>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>>
>>>
>>
>>
>> --
>> Barry H. Lynn, Ph.D
>> Senior Lecturer,
>> The Institute of the Earth Science,
>> The Hebrew University of Jerusalem,
>> Givat Ram, Jerusalem 91904, Israel
>> Tel: 972 547 231 170
>> Fax: (972)-25662581
>>
>> C.E.O, Weather It Is, LTD
>> Weather and Climate Focus
>> http://weather-it-is.com
>> Jerusalem, Israel
>> Local: 02 930 9525
>> Cell: 054 7 231 170
>> Int-IS: x972 2 930 9525
>> US 914 432 3108
>>
>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>


-- 
Barry H. Lynn, Ph.D
Senior Lecturer,
The Institute of the Earth Science,
The Hebrew University of Jerusalem,
Givat Ram, Jerusalem 91904, Israel
Tel: 972 547 231 170
Fax: (972)-25662581

C.E.O, Weather It Is, LTD
Weather and Climate Focus
http://weather-it-is.com
Jerusalem, Israel
Local: 02 930 9525
Cell: 054 7 231 170
Int-IS: x972 2 930 9525
US 914 432 3108
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180419/65dc4a7e/attachment.html>


More information about the ncl-talk mailing list