mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-12-09 08:11:38 +08:00
62 lines
1.5 KiB
Plaintext
62 lines
1.5 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) ;
|
|
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 = 1, 2, 3, 5, 8 ;
|
|
|
|
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 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)." ;
|
|
|
|
types.u =
|
|
"http://www.dods.org",
|
|
"http://www.dods.org",
|
|
"http://www.dods.org",
|
|
"http://www.dods.org",
|
|
"http://www.dods.org" ;
|
|
}
|