2010-06-03 21:24:43 +08:00
|
|
|
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) ;
|
2015-11-30 11:38:12 +08:00
|
|
|
|
|
|
|
// global attributes:
|
|
|
|
:Facility.PrincipleInvestigator = "Mark Abbott\n",
|
|
|
|
"Ph.D" ;
|
|
|
|
:Facility.DataCenter = "COAS Environmental Computer Facility" ;
|
|
|
|
:Facility.DrifterType = "MetOcean WOCE/OCM" ;
|
2010-06-03 21:24:43 +08:00
|
|
|
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 ;
|
|
|
|
|
2010-12-04 06:01:21 +08:00
|
|
|
types.i32 = 1, 2, 3, 5, 8 ;
|
2010-06-03 21:24:43 +08:00
|
|
|
|
|
|
|
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 =
|
2010-12-04 06:01:21 +08:00
|
|
|
"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)." ;
|
2010-06-03 21:24:43 +08:00
|
|
|
|
|
|
|
types.u =
|
2012-01-30 02:56:29 +08:00
|
|
|
"http://www.dods.org",
|
|
|
|
"http://www.dods.org",
|
|
|
|
"http://www.dods.org",
|
|
|
|
"http://www.dods.org",
|
|
|
|
"http://www.dods.org" ;
|
2010-06-03 21:24:43 +08:00
|
|
|
}
|