mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-21 03:13:42 +08:00
7e582ad3f2
The code for handling character constants in datalists in ncgen has some problems. 1. It failed on large constants 2. It did not handle e.g. var = 'a', 'b', ... in the same way that ncgen3 did. 3. The code for generate.c and genchar.c needed some refactoring to make it a little simpler (but not simple).
24 lines
518 B
Plaintext
24 lines
518 B
Plaintext
netcdf ref_tst_comp {
|
|
types:
|
|
compound obs_t {
|
|
byte day ;
|
|
short elev ;
|
|
int count ;
|
|
float relhum ;
|
|
double time ;
|
|
ubyte category ;
|
|
ushort id ;
|
|
uint particularity ;
|
|
int64 attention_span ;
|
|
}; // obs_t
|
|
dimensions:
|
|
n = 3 ;
|
|
variables:
|
|
obs_t obs(n) ;
|
|
obs_t obs:_FillValue = {-99, -99, -99, -99, -99, 255, 65535, 4294967295, -9223372036854775806} ;
|
|
data:
|
|
|
|
obs = {15, 2, 1, 0.5, 3600.01, 0, 0, 0, 0}, _,
|
|
{20, 6, 3, 0.75, 5000.01, 200, 64000, 4220002000, 9000000000000000000} ;
|
|
}
|