mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-21 03:13:42 +08:00
cbb6df3232
User request to have all orphaned DAP2 attributes kept as netcdf global attributes. This is primarily a change in the oc code nplus testcase dataset changes. Result may be inconsistent with netcdf-Java output.
68 lines
1.7 KiB
Plaintext
68 lines
1.7 KiB
Plaintext
netcdf test {
|
|
dimensions:
|
|
maxStrlen64 = 64 ;
|
|
person = 5 ;
|
|
types = 5 ;
|
|
variables:
|
|
char person.name(person, maxStrlen64) ;
|
|
int person.age(person) ;
|
|
byte types.b(types) ;
|
|
types.b:Description = "A test byte" ;
|
|
types.b:units = "unknown" ;
|
|
int types.i32(types) ;
|
|
types.i32:Description = "A 32 bit test server int" ;
|
|
types.i32:units = "unknown" ;
|
|
int types.ui32(types) ;
|
|
short types.i16(types) ;
|
|
short types.ui16(types) ;
|
|
float types.f32(types) ;
|
|
double types.f64(types) ;
|
|
char types.s(types, maxStrlen64) ;
|
|
char types.u(types, maxStrlen64) ;
|
|
|
|
// global attributes:
|
|
:Facility.PrincipleInvestigator = "Mark Abbott\n",
|
|
"Ph.D" ;
|
|
:Facility.DataCenter = "COAS Environmental Computer Facility" ;
|
|
:Facility.DrifterType = "MetOcean WOCE/OCM" ;
|
|
data:
|
|
|
|
person.name =
|
|
"This is a data test string (pass 0).",
|
|
"This is a data test string (pass 1).",
|
|
"This is a data test string (pass 2).",
|
|
"This is a data test string (pass 3).",
|
|
"This is a data test string (pass 4)." ;
|
|
|
|
person.age = 1, 2, 3, 5, 8 ;
|
|
|
|
types.b = 0, 1, 2, 3, 4 ;
|
|
|
|
types.i32 = 13, 21, 34, 55, 89 ;
|
|
|
|
types.ui32 = 0, 2, 6, 12, 20 ;
|
|
|
|
types.i16 = 0, 16, 32, 48, 64 ;
|
|
|
|
types.ui16 = 0, -16, -32, -48, -64 ;
|
|
|
|
types.f32 = 0, 0.9999833, 1.999867, 2.99955, 3.998933 ;
|
|
|
|
types.f64 = 1000, 999.950000416665, 999.800006666578, 999.550033748988,
|
|
999.200106660978 ;
|
|
|
|
types.s =
|
|
"This is a data test string (pass 5).",
|
|
"This is a data test string (pass 6).",
|
|
"This is a data test string (pass 7).",
|
|
"This is a data test string (pass 8).",
|
|
"This is a data test string (pass 9)." ;
|
|
|
|
types.u =
|
|
"http://www.dods.org",
|
|
"http://www.dods.org",
|
|
"http://www.dods.org",
|
|
"http://www.dods.org",
|
|
"http://www.dods.org" ;
|
|
}
|