Previous: Data for a few specified variables Next: Kind of netCDF data Table of contents Frames User guide
2009 Unidata NetCDF Workshop for Developers and Data Providers > NetCDF Utilities: ncdump and ncgen

5.7 Human-readable times
To see times in human-readable form:

Even with the hint

    time:units = "seconds since 2009-01-01" ;

it's hard for humans to understand the data values

    time = 7776000, 15552000 ;

To see such times in a more familiar form, use the "-t" option:

$ ncdump -c -t mslp.nc
netcdf mslp {
dimensions:
	lat = 6 ;
	lon = 4 ;
	time = UNLIMITED ; // (2 currently)
variables:
	float lat(lat) ;
		lat:units = "degrees_north" ;
	float lon(lon) ;
		lon:units = "degrees_east" ;
	double time(time) ;
		time:units = "seconds since 2009-01-01" ;
	float pr(time, lat, lon) ;
		pr:standard_name = "air_pressure_at_sea_level" ;
		pr:units = "hPa" ;

// global attributes:
		:title = "example for workshop" ;
data:

 lat = 25, 30, 35, 40, 45, 50 ;

 lon = -125, -110, -95, -80 ;

 time = "2009-04-01", "2009-06-30" ;
}

 


Previous: Data for a few specified variables Next: Kind of netCDF data Table of contents Frames User guide
2009 Unidata NetCDF Workshop for Developers and Data Providers > NetCDF Utilities: ncdump and ncgen