Re: time since a reference time

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Mon, 05 Nov 2007 14:42:38 -0700

I am not sure what you mean by "actual time printed"

--
The ut_calendar function converts the Time variable into different
time variables dependining upon the option.
http://www.ncl.ucar.edu/Document/Functions/Built-in/ut_calendar.shtml
D
Cory Wolff wrote:
> Hi,
> I have a netcdf file that looks like the following (after ncdump):
>
> netcdf datafile.nc {
> dimensions:
> 	Time = UNLIMITED ; // (11824 currently)
> variables:
> 	int Time(Time) ;
> 		Time:long_name ="time of measurement" ;
> 		Time:standard_name = "time";
> 		Time:units = "seconds since 2007-11-01 20:38:12 +0000" ;
> 		Time:strptime_format = "seconds since %F %T %z" ;
> 	float TEMP(Time) ;
> 		TEMP:_FillValue = -32767.f ;
> 		TEMP:units = "deg_C" ;
> 		TEMP:long_name = "Temperature" ;
> 		TEMP:Category = "Raw" ;
> }
>
> I am able to plot the variable TEMP with no problems using gsn_csm_xy 
> with Time sent as the x-axis variable.  However, since Time represents the 
> seconds since the reference time (2007-11-01 20:38:12 +0000 in this case) 
> it is some value between 0 and 11823.  Is there away to use these 
> variables to get an actual time printed on the x-axis?  Thanks in advance 
> for any help.
>
> Cory
>
> _
_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Nov 05 2007 - 14:42:38 MST

This archive was generated by hypermail 2.2.0 : Tue Nov 06 2007 - 09:49:28 MST