[ncl-talk] Time axis tick
yongzuoli79
yongzuoli79 at gmail.com
Mon Apr 1 13:46:42 MDT 2019
Hi Adam,
Will following codes work?
; Time values and units.
time = (/3356, 3356.083, 3356.333, 3356.917, 3357.042, 3358.208/)
time at units = "days since 1995-01-01 00:00:0.0"
Time_axis_labels(time,res,restIck)
Thank you
Yongzuo
On Mon, Apr 1, 2019 at 12:30 PM Adam Phillips <asphilli at ucar.edu> wrote:
> Hi Yongzuo,
> I have not used that function, but I would think the units would be
> similar to the units shown in cd_calendar:
> https://www.ncl.ucar.edu/Document/Functions/Built-in/cd_calendar.shtml
> From the above documentation:
> Must have a "units" attribute string in the format "units since basetime",
> for example, "days since 1971-1-1" (see examples below).
>
> Hope that helps!
> Adam
>
>
> On Mon, Apr 1, 2019 at 1:21 PM Yongzuo Li <yongzuoli79 at gmail.com> wrote:
>
>> Hi,
>>
>> I have a question about time_axis_labels(times, res,restock).
>>
>> Can anyone show me an example line of a time “units” that is required?
>>
>> Thank you
>>
>> Yongzuo
>>
> _______________________________________________
>> ncl-talk mailing list
>> ncl-talk at ucar.edu
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
>>
>
> --
> Adam Phillips
> Associate Scientist, Climate and Global Dynamics Laboratory, NCAR
> www.cgd.ucar.edu/staff/asphilli/ 303-497-1726
>
> <http://www.cgd.ucar.edu/staff/asphilli>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20190401/24b9bee3/attachment.html>
More information about the ncl-talk
mailing list