mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-12-21 08:39:46 +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).
20 lines
486 B
Plaintext
20 lines
486 B
Plaintext
netcdf ref_tst_comp2 {
|
|
types:
|
|
compound vecmat_t {
|
|
char day ;
|
|
char mnth(3) ;
|
|
short vect(3) ;
|
|
float matr(2, 3) ;
|
|
}; // vecmat_t
|
|
dimensions:
|
|
n = 3 ;
|
|
variables:
|
|
vecmat_t obs(n) ;
|
|
vecmat_t obs:_FillValue = {"?", {"---"}, {-1, -2, -3}, {-4, -5, -6, -7, -8, -9}} ;
|
|
data:
|
|
|
|
obs = {"S", {"jan"}, {1, 2, 3}, {4, 5, 6, 7, 8, 9}},
|
|
{"M", {"feb"}, {11, 12, 13}, {4.25, 5.25, 6.25, 7.25, 8.25, 9.25}},
|
|
{"T", {"mar"}, {21, 22, 23}, {4.5, 5.5, 6.5, 7.5, 8.5, 9.5}} ;
|
|
}
|