mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-12-09 08:11:38 +08:00
9b7202bf06
re: https://github.com/Unidata/netcdf-c/issues/2189 Compression of a variable whose type is variable length fails for all current filters. This is because at some point, the compression buffer will contain pointers to data instead of the actual data. Compression of pointers of course is meaningless. The PR changes the behavior of nc_def_var_filter so that it will fail with error NC_EFILTER if an attempt is made to add a filter to a variable whose type is variable-length. A variable is variable-length if it is of type string or VLEN or transitively (via a compound type) contains a string or VLEN. Also added a test case for this. ## Misc Changes 1. Turn off a number of debugging statements
46 lines
774 B
Plaintext
46 lines
774 B
Plaintext
netcdf tmp_groups_regular {
|
|
dimensions:
|
|
_zdim_3 = 3 ;
|
|
_zdim_2 = 2 ;
|
|
_zdim_10 = 10 ;
|
|
|
|
// global attributes:
|
|
:_Format = "netCDF-4" ;
|
|
|
|
group: MyGroup {
|
|
variables:
|
|
int dset1(_zdim_3, _zdim_3) ;
|
|
dset1:_Storage = "chunked" ;
|
|
dset1:_ChunkSizes = 3, 3 ;
|
|
dset1:_NoFill = "true" ;
|
|
|
|
// group attributes:
|
|
data:
|
|
|
|
dset1 =
|
|
1, 2, 3,
|
|
1, 2, 3,
|
|
1, 2, 3 ;
|
|
|
|
group: Group_A {
|
|
variables:
|
|
int dset2(_zdim_2, _zdim_10) ;
|
|
dset2:_Storage = "chunked" ;
|
|
dset2:_ChunkSizes = 2, 10 ;
|
|
dset2:_NoFill = "true" ;
|
|
|
|
// group attributes:
|
|
data:
|
|
|
|
dset2 =
|
|
1, 2, 3, 4, 5, 6, 7, 8, 9, 10,
|
|
1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ;
|
|
} // group Group_A
|
|
|
|
group: Group_B {
|
|
|
|
// group attributes:
|
|
} // group Group_B
|
|
} // group MyGroup
|
|
}
|