[ncl-talk] How to selecting time range for data

Rahpeni Fajarianti rahpenifajarianti at gmail.com
Sat Jan 4 20:15:39 MST 2020


Thanks a lot. It works !

Pada tanggal Min, 5 Jan 2020 4:51 AM, Dave Allured - NOAA Affiliate <
dave.allured at noaa.gov> menulis:

> Please look at example mjoclivar_15.ncl. See how it uses these statements
> to specify a time range, then translate calendar dates to integer time
> indices. Later in the example, you can see how the integer indices are used
> to read in the desired subset of a data file, not the entire file. This is
> similar to what you need to do.
>
>   ymdStrt = 19961016                         ; start yyyymmdd
>   ymdLast = 19970415                         ; last
>   TIME    = f->time                          ; days since ...
>   YMD     = cd_calendar(TIME, -2)            ; entire (time,6)
>   iStrt   = ind(YMD.eq.ymdStrt)              ; index start
>   iLast   = ind(YMD.eq.ymdLast)              ; index last
>
>
> On Sat, Jan 4, 2020 at 3:42 AM Rahpeni Fajarianti via ncl-talk <
> ncl-talk at ucar.edu> wrote:
>
>> Based on the minmax_4.nc it run all the data once.
>> (https://www.ncl.ucar.edu/Applications/Scripts/minmax_4.ncl). But i want
>> to plot for 2 years (20160101-20171231) daily, so it create 730 figure plot.
>>
>> What should i do to create those plot daily, and loop creating plot from
>> 20160101 to 20170101 (730 figure) ?
>>
>> this is my ncl script:
>> https://drive.google.com/open?id=14XF63cW5LozS3TOhI3GA0oK0CQ37k739
>>
>> this is my data:
>> https://drive.google.com/open?id=1FsNbYU-1BU2Nr8S8tP6ATIekb8GhQzd0
>>
>> Thanks in advance, for anyone could help
>> _______________________________________________
>> 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/20200105/c88e807c/attachment.html>


More information about the ncl-talk mailing list