/
swath_rectangular.cdl
46 lines (40 loc) · 1.42 KB
/
swath_rectangular.cdl
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
// -*-C++-*-
// Purpose: CDL file to demonstrate best practices for swath-like datasets
// Part of an ongoing project by NASA's Dataset Interoperability Working Group (DIWG)
// Comments, questions, suggestions to fxm
// Usage:
// ncgen -b -o swath_rectangular.nc swath_rectangular.cdl # netCDF3
// ncgen -k netCDF-4 -b -o swath_rectangular.nc swath_rectangular.cdl # netCDF4
// URL:
// git clone http://github.com/diwg/diwg.git
// http://github.com/diwg/diwg/swath_rectangular.cdl
netcdf swath_rectangular {
dimensions:
XDim = 1388 ;
YDim = 540 ;
time = UNLIMITED ; // time = 1 for files w/one time slice
variables:
short XDim(XDim) ;
XDim:units = "degrees_east";
short YDim(YDim) ;
YDim:units = "degrees_north";
ushort TB(time, YDim, XDim) ;
TB:scale_factor = 0.01f ;
TB:add_offset = 0.0f ;
TB:packing_convention = "netCDF" ;
TB:packing_convention_description
= "unpacked = scale_factor*packed + add_offset" ;
TB:grid_mapping = "crs" ;
ubyte TB_num_samples(time, YDim, XDim) ;
TB:grid_mapping = "crs" ;
char crs ;
crs:grid_mapping_name
= "lambert_cylindrical_equal_area" ;
crs:crs_wkt = "PROJCS[
BASE_GEODGCS[\"WGS 84\",
DATUM[ \"World Geodetic System 1984\",
ELLIPSOID[\"WGS 84\",
6378137,298.257223563,
LENGTHUNIT[\"metre\",\"1.0\"]]]],
ID[\"EPSG,6933\"]]" ;
}