File: cf_grp.cdl

package info (click to toggle)
nco 5.3.6-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 38,260 kB
  • sloc: ansic: 84,963; cpp: 28,654; sh: 14,071; perl: 5,996; makefile: 2,009; lex: 1,009; python: 127; csh: 40
file content (195 lines) | stat: -rw-r--r-- 4,916 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
// -*-C++-*-
// Generate netCDF file with:
// ncgen -k netCDF-4 -b -o ~/nco/data/cf_grp.nc ~/nco/data/cf_grp.cdl

netcdf cf_grp {

 :Conventions = "CF-1.8";
 :title = "A template/test dataset for Groups in CF";
 :history = "Global history attribute";

 dimensions:
 lat=180;
 lon=360;

  group: e3sm {

   :title = "group-level title attribute is allowed";

   dimensions:
   lat=2;
   lon=3;
   time=unlimited;

   variables:
   double lat(lat);
   lat:long_name = "latitude" ;
   lat:standard_name = "latitude" ;
   lat:units = "degrees_north" ;
   lat:axis = "Y" ;
   double lon(lon) ;
   lon:long_name = "longitude" ;
   lon:standard_name = "longitude" ;
   lon:units = "degrees_east" ;
   lat:axis = "X" ;
   double time(time) ;
   time:long_name = "time of measurement" ;
   time:standard_name = "time" ;
   time:units = "days since 1964-03-12 12:09:00 -9:00"; 
   time:calendar = "leap" ;
   data:
     lat=-90,90;
     lon=0,120,240;
    time=1.,2.,3.,4.;

   group: e3sm_01 {
      :Realization = "1";
      :history = "Group-level history attributes are OK too";

    variables:
    float tas(time,lat,lon);
    tas:long_name = "surface air temperature";
    tas:standard_name = "air_temperature" ;
    tas:units = "kelvin" ;
    tas:coordinates = "time lat lon";
    data:
      tas=271.15,271.15,271.15,271.15,271.15,271.15,
	271.15,271.15,271.15,271.15,271.15,271.15,
	271.15,271.15,271.15,271.15,271.15,271.15,
	271.15,271.15,271.15,271.15,271.15,271.15;
 
    } // e3sm_01

   group: e3sm_02 {
      :Realization = "2";
      
    variables:
    float tas(time,lat,lon);
    tas:long_name = "surface air temperature";
    tas:standard_name = "air_temperature" ;
    tas:coordinates = "/e3sm/time /e3sm/lat /e3sm/lon";
    data:
      tas=272.15,272.15,272.15,272.15,272.15,272.15,
	272.15,272.15,272.15,272.15,272.15,272.15,
	272.15,272.15,272.15,272.15,272.15,272.15,
	272.15,272.15,272.15,272.15,272.15,272.15;
      
    } // e3sm_02
    
   group: e3sm_03 {
      :Realization = "3";
      
    variables:
    float tas(time,lat,lon);
    tas:long_name = "surface air temperature";
    tas:standard_name = "air_temperature" ;
    tas:coordinates = "../time ../lat ../lon";
    data:
      tas=273.15,273.15,273.15,273.15,273.15,273.15,
	273.15,273.15,273.15,273.15,273.15,273.15,
	273.15,273.15,273.15,273.15,273.15,273.15,
	273.15,273.15,273.15,273.15,273.15,273.15;
      
    } // e3sm_03
    
  } // e3sm
  
  group: nasa {

   dimensions:
   lat=2;
   lon=3;
   time=unlimited;

   group: nasa_data {
      :history = "Group-level history attributes are OK too";

    variables:
    float tas(time,lat,lon);
    tas:long_name = "surface air temperature";
    tas:standard_name = "air_temperature" ;
    tas:units = "kelvin" ;
    tas:coordinates = "time lat lon";

    float sic(time,lat,lon);
    sic:long_name = "sea-ice concentration";
    sic:standard_name = "sea_ice_area_fraction" ;
    sic:units = "1" ;
    sic:coordinates = "/nasa/nasa_geo/time /nasa/nasa_geo/lat /nasa/nasa_geo/lon";

    float sit(time,lat,lon);
    sit:long_name = "sea-ice thickness";
    sit:standard_name = "sea_ice_thickness" ;
    sit:units = "meter" ;
    sit:coordinates = "../nasa_geo/time ../nasa_geo/lat ../nasa_geo/lon";

    data:
      tas=271.15,271.15,271.15,271.15,271.15,271.15,
	271.15,271.15,271.15,271.15,271.15,271.15,
	271.15,271.15,271.15,271.15,271.15,271.15,
	271.15,271.15,271.15,271.15,271.15,271.15;

      sic=0.73,0.73,0.73,0.73,0.73,0.73,
	0.73,0.73,0.73,0.73,0.73,0.73,
	0.73,0.73,0.73,0.73,0.73,0.73,
	0.73,0.73,0.73,0.73,0.73,0.73;

      sit=3.7,3.7,3.7,3.7,3.7,3.7,
	3.7,3.7,3.7,3.7,3.7,3.7,
	3.7,3.7,3.7,3.7,3.7,3.7,
	3.7,3.7,3.7,3.7,3.7,3.7;
      
   } // nasa_data

   group: nasa_geo {
      
    variables:
      double lat(lat);
    lat:long_name = "latitude" ;
    lat:standard_name = "latitude" ;
    lat:units = "degrees_north" ;
    lat:axis = "Y" ;
      double lon(lon) ;
    lon:long_name = "longitude" ;
    lon:standard_name = "longitude" ;
    lon:units = "degrees_east" ;
    lat:axis = "X" ;
      double time(time) ;
    time:long_name = "time of measurement" ;
    time:standard_name = "time" ;
    time:units = "days since 1964-03-12 12:09:00 -9:00"; 
    time:calendar = "leap" ;
    data:
      lat=-90,90;
      lon=0,120,240;
      time=1.,2.,3.,4.;
    } // nasa_geo
    
  } // nasa
  
 group: nsidc {
    
  dimensions:
    time=unlimited;

  group: nsidc {
      
    variables:
      float tas(time);
    tas:long_name = "surface air temperature";
    tas:standard_name = "air_temperature" ;
    tas:units = "kelvin" ;
      double time(time);
    time:long_name = "time of measurement" ;
    time:standard_name = "time" ;
    time:units = "days since 1964-03-12 12:09:00 -9:00"; 
    time:calendar = "leap" ;
    data:
      tas=274.15,274.15,274.15,274.15,274.15;
      time=1.,2.,3.,4.,5.;
      
    } // nsidc

  } // nsidc

} // root group