Re: how to define the time

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Wed Feb 15 2012 - 12:08:38 MST

On Feb 15, 2012, at 11:38 AM, Ziqiang Jiang wrote:

> Hello,
>
> how to use the time_axis_labels? is the variable 'resplot' not ok?

See example #2 at:

http://www.ncl.ucar.edu/Applications/time_labels.shtml#ex2

--Mary

>
> load "$NCARG_ROOT/lib/ncarg/nclscripts/contrib/time_axis_labels.ncl"
> time = 0
> time@units = "days after 2011-06-01 00:00:00"
> resplot = True
> restick = True
> restick@ttmFormat = "%n/%D"
> restick@ttmValues = (/(/2011,6,1,0,0,0/), (/2011,6,16,0,0,0/), (/2011,6,26,0,0,0/)/)
> time_axis_labels(time,resplot,restick)
> print(resplot))
>
> Variable: resplot
> Type: logical
> Total Size: 4 bytes
> 1 values
> Number of Dimensions: 1
> Dimensions and sizes: [1]
> Coordinates:
> Number Of Attributes: 4
> tmXBMode : Explicit
> tmXBValues : ( -1.888435154778767e-13, 14.9999999999998 1, 24.99999999999981 )
> tmXBMinorValues : ( -1.888435154778767e-13, 14.99999999999981, 24.99999999999981 )
> tmXBLabels : ( 6/01, 6/16, 6/26 )
> (0) True
>
>
> Thanks
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed Feb 15 12:08:52 2012

This archive was generated by hypermail 2.1.8 : Fri Feb 17 2012 - 08:50:10 MST