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
44 lines
1.1 KiB
Plaintext
44 lines
1.1 KiB
Plaintext
netcdf ref_tst_special_atts3 {
|
|
dimensions:
|
|
dim1 = 10 ;
|
|
dim2 = 20 ;
|
|
dim3 = 30 ;
|
|
time = UNLIMITED ; // (0 currently)
|
|
lat = 361 ;
|
|
lon = 540 ;
|
|
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" ;
|
|
int var5(dim1, dim2, dim3) ;
|
|
var5:_Storage = "compact" ;
|
|
int var6;
|
|
var6:_Storage = "compact" ;
|
|
float slp(time, lat, lon) ;
|
|
slp:_FillValue = 1.e+15f ;
|
|
slp:_DeflateLevel = 1 ;
|
|
slp:_Storage = "chunked" ;
|
|
slp:_ChunkSizes = 1, 361, 540 ;
|
|
|
|
// global attributes:
|
|
:_Format = "netCDF-4 classic model" ;
|
|
data:
|
|
}
|