time since a reference time

From: Cory Wolff <cwolff_at_nyahnyahspammersnyahnyah>
Date: Mon, 5 Nov 2007 14:29:26 -0700

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:29:26 MST

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