Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spencerahill/91a733f96ac69d9dc7aff34a94ed6de6 to your computer and use it in GitHub Desktop.
Save spencerahill/91a733f96ac69d9dc7aff34a94ed6de6 to your computer and use it in GitHub Desktop.
ncdump -c of CAM data w/ off-by-one month time metadata
$ ncdump -c abrupt2xCO2_T31_gx3v7.cam2.h0.0700-01.nc
netcdf abrupt2xCO2_T31_gx3v7.cam2.h0.0700-01 {
dimensions:
lat = 48 ;
lon = 96 ;
time = UNLIMITED ; // (1 currently)
nbnd = 2 ;
chars = 8 ;
lev = 26 ;
ilev = 27 ;
variables:
double lev(lev) ;
lev:long_name = "hybrid level at midpoints (1000*(A+B))" ;
lev:units = "level" ;
lev:positive = "down" ;
lev:standard_name = "atmosphere_hybrid_sigma_pressure_coordinate" ;
lev:formula_terms = "a: hyam b: hybm p0: P0 ps: PS" ;
double hyam(lev) ;
hyam:long_name = "hybrid A coefficient at layer midpoints" ;
double hybm(lev) ;
hybm:long_name = "hybrid B coefficient at layer midpoints" ;
double ilev(ilev) ;
ilev:long_name = "hybrid level at interfaces (1000*(A+B))" ;
ilev:units = "level" ;
ilev:positive = "down" ;
ilev:standard_name = "atmosphere_hybrid_sigma_pressure_coordinate" ;
ilev:formula_terms = "a: hyai b: hybi p0: P0 ps: PS" ;
double hyai(ilev) ;
hyai:long_name = "hybrid A coefficient at layer interfaces" ;
double hybi(ilev) ;
hybi:long_name = "hybrid B coefficient at layer interfaces" ;
double P0 ;
P0:long_name = "reference pressure" ;
P0:units = "Pa" ;
double time(time) ;
time:long_name = "time" ;
time:units = "days since 0001-01-01 00:00:00" ;
time:calendar = "noleap" ;
time:bounds = "time_bnds" ;
int date(time) ;
date:long_name = "current date (YYYYMMDD)" ;
int datesec(time) ;
datesec:long_name = "current seconds of current date" ;
double lat(lat) ;
lat:long_name = "latitude" ;
lat:units = "degrees_north" ;
double lon(lon) ;
lon:long_name = "longitude" ;
lon:units = "degrees_east" ;
double time_bnds(time, nbnd) ;
time_bnds:long_name = "time interval endpoints" ;
char date_written(time, chars) ;
char time_written(time, chars) ;
int ntrm ;
ntrm:long_name = "spectral truncation parameter M" ;
int ntrn ;
ntrn:long_name = "spectral truncation parameter N" ;
int ntrk ;
ntrk:long_name = "spectral truncation parameter K" ;
int ndbase ;
ndbase:long_name = "base day" ;
int nsbase ;
nsbase:long_name = "seconds of base day" ;
int nbdate ;
nbdate:long_name = "base date (YYYYMMDD)" ;
int nbsec ;
nbsec:long_name = "seconds of base date" ;
int mdt ;
mdt:long_name = "timestep" ;
mdt:units = "s" ;
int nlon(lat) ;
nlon:long_name = "number of longitudes" ;
int wnummax(lat) ;
wnummax:long_name = "cutoff Fourier wavenumber" ;
double gw(lat) ;
gw:long_name = "gauss weights" ;
int ndcur(time) ;
ndcur:long_name = "current day (from base day)" ;
int nscur(time) ;
nscur:long_name = "current seconds of current day" ;
...
<variables omitted>
...
// global attributes:
:Conventions = "CF-1.0" ;
:source = "CAM" ;
:case = "abrupt2xCO2_T31_gx3v7" ;
:title = "UNSET" ;
:logname = "nb365" ;
:host = "compute-30-2.loc" ;
:Version = "$Name$" ;
:revision_Id = "$Id$" ;
:initial_file = "b40.t31x3.037b.cam2.i.0262-01-01-00000.nc" ;
:topography_file = "/scratch/geo/fedorov/bpd6/Data/CESM/1.0/inputdata/atm/cam/topo/USGS-gtopo30_48x96_c050520.nc" ;
data:
lev = 3.54463800000001, 7.38881350000001, 13.967214, 23.944625,
37.2302900000001, 53.1146050000002, 70.0591500000003, 85.4391150000003,
100.514695, 118.250335, 139.115395, 163.66207, 192.539935, 226.513265,
266.481155, 313.501265000001, 368.817980000002, 433.895225000001,
510.455255000002, 600.524200000003, 696.796290000003, 787.702060000003,
867.160760000001, 929.648875000002, 970.554830000001, 992.5561 ;
ilev = 2.19406700000001, 4.89520900000001, 9.882418, 18.05201, 29.83724,
44.6233400000002, 61.6058700000002, 78.5124300000004, 92.3658000000002,
108.66359, 127.83708, 150.393710000001, 176.93043, 208.149440000001,
244.87709, 288.08522, 338.917310000001, 398.718650000002, 469.0718,
551.838710000003, 649.209690000002, 744.382890000004, 831.021230000001,
903.300290000002, 955.997460000003, 985.1122, 1000 ;
time = 255166 ;
lat = -87.1590945558629, -83.4789366693172, -79.7770456548256,
-76.0702444625451, -72.3615810293448, -68.6520167895175,
-64.9419494887575, -61.2315731880771, -57.52099379797, -53.8102740319414,
-50.0994534129868, -46.3885581116054, -42.6776061726049,
-38.966610469454, -35.2555804613682, -31.5445232840217,
-27.8334444519932, -24.122348326088, -20.4112384335678,
-16.7001176938427, -12.9889885820881, -9.27785325150786,
-5.56671362791359, -1.85557148599326, 1.85557148599326, 5.56671362791359,
9.27785325150786, 12.9889885820881, 16.7001176938427, 20.4112384335678,
24.122348326088, 27.8334444519932, 31.5445232840217, 35.2555804613682,
38.966610469454, 42.6776061726049, 46.3885581116054, 50.0994534129868,
53.8102740319414, 57.52099379797, 61.2315731880771, 64.9419494887575,
68.6520167895175, 72.3615810293448, 76.0702444625451, 79.7770456548256,
83.4789366693172, 87.1590945558629 ;
lon = 0, 3.75, 7.5, 11.25, 15, 18.75, 22.5, 26.25, 30, 33.75, 37.5, 41.25,
45, 48.75, 52.5, 56.25, 60, 63.75, 67.5, 71.25, 75, 78.75, 82.5, 86.25,
90, 93.75, 97.5, 101.25, 105, 108.75, 112.5, 116.25, 120, 123.75, 127.5,
131.25, 135, 138.75, 142.5, 146.25, 150, 153.75, 157.5, 161.25, 165,
168.75, 172.5, 176.25, 180, 183.75, 187.5, 191.25, 195, 198.75, 202.5,
206.25, 210, 213.75, 217.5, 221.25, 225, 228.75, 232.5, 236.25, 240,
243.75, 247.5, 251.25, 255, 258.75, 262.5, 266.25, 270, 273.75, 277.5,
281.25, 285, 288.75, 292.5, 296.25, 300, 303.75, 307.5, 311.25, 315,
318.75, 322.5, 326.25, 330, 333.75, 337.5, 341.25, 345, 348.75, 352.5,
356.25 ;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment