mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-27 07:30:33 +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).
51 lines
1.1 KiB
Plaintext
51 lines
1.1 KiB
Plaintext
netcdf tst_special_atts {
|
|
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:
|
|
dim1 = 10 ;
|
|
dim2 = 20 ;
|
|
dim3 = 30 ;
|
|
variables:
|
|
int var1(dim1) ;
|
|
var1:_Storage = "contiguous" ;
|
|
var1:_Endianness = "little" ;
|
|
int var2(dim1, dim2) ;
|
|
var2:_Storage = "chunked" ;
|
|
var2:_ChunkSizes = 6, 7 ;
|
|
var2:_Fletcher32 = "true" ;
|
|
var2:_Endianness = "big" ;
|
|
int var3(dim1, dim2, dim3) ;
|
|
var3:_Storage = "chunked" ;
|
|
var3:_ChunkSizes = 6, 7, 8 ;
|
|
var3:_DeflateLevel = 2 ;
|
|
var3:_Endianness = "little" ;
|
|
int var4(dim1, dim2, dim3) ;
|
|
var4:_Storage = "chunked" ;
|
|
var4:_ChunkSizes = 6, 7, 8 ;
|
|
var4:_DeflateLevel = 2 ;
|
|
var4:_Shuffle = 0 ;
|
|
var4:_Endianness = "little" ;
|
|
var4:_NoFill = "true" ;
|
|
obs_t var5(dim1) ;
|
|
var5:_Storage = "chunked" ;
|
|
var5:_ChunkSizes = 6 ;
|
|
var5:_DeflateLevel = 2 ;
|
|
var5:_Shuffle = "1" ;
|
|
var5:_Fletcher32 = "true" ;
|
|
var5:_NoFill = "true" ;
|
|
|
|
// global attributes:
|
|
:_Format = "netCDF-4" ;
|
|
data:
|
|
}
|