mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-12-27 08:49:16 +08:00
f376c23329
re: https://github.com/Unidata/netcdf-c/issues/1642 Modify ncdump, nccopy, and ncgen to support the NC_COMPACT storage option. Added test cases and added description to the man pages for the utilities. 1. ncdump: For compact storage variable, print special attribute __Storage_ as ```` <var>: _Storage = "compact"; ```` 2. ncgen: parse and implement ```` <var>: _Storage = "compact"; ```` in a .cdl file 3. nccopy: Extend the chunk specification (-c flag) to support compact using the forms ```` nccopy ... -c <var>:compact and nccopy ... -c <var>:contiguous ```` Misc. other changes 1. cleanup the copy_chunking function in ncdump/nccopy.c
60 lines
1.4 KiB
Plaintext
60 lines
1.4 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 = "true" ;
|
|
var4:_Endianness = "little" ;
|
|
var4:_NoFill = "true" ;
|
|
obs_t var5(dim1) ;
|
|
var5:_Storage = "chunked" ;
|
|
var5:_ChunkSizes = 6 ;
|
|
var5:_DeflateLevel = 2 ;
|
|
var5:_Shuffle = "true" ;
|
|
var5:_Fletcher32 = "true" ;
|
|
var5:_NoFill = "true" ;
|
|
int var6(dim1) ;
|
|
var6:_Storage = "compact" ;
|
|
var6:_Endianness = "little" ;
|
|
int var7 ;
|
|
var7:_Storage = "compact" ;
|
|
var7:_Endianness = "little" ;
|
|
|
|
// global attributes:
|
|
:_NCProperties = "version=2,netcdf=4.7.4-development,hdf5=1.10.4," ;
|
|
:_SuperblockVersion = 0 ;
|
|
:_IsNetcdf4 = 1 ;
|
|
:_Format = "netCDF-4" ;
|
|
data:
|
|
}
|