netcdf-c/ncdump/cdl/ref_tst_comp.cdl
dmh 7e582ad3f2 re: Jira NCF-309
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).
2014-09-18 18:26:06 -06:00

24 lines
518 B
Plaintext
Executable File

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} ;
}