-
Notifications
You must be signed in to change notification settings - Fork 289
Open
Labels
Milestone
Description
Environment
- [ X] Linux
- [ X] 64-bit
- tested on v4.4.1 and v4.3.3.1
Summary of Issue
When -d0 flag is been used nccopy ignores chunking (-c option). If -d1 (or any other valid value !=0) is been used then the chunking is applied.
References
This issue relates to #23 and has been raised by @MJones810
Steps to reproduce the behavior
$ ncgen -k4 test.cdl
$ ncdump -hs test.nc
netcdf test {
dimensions:
dim1 = 240 ;
dim2 = 180 ;
variables:
double u(dim1, dim2) ;
u:_Storage = "contiguous" ;
// global attributes:
:_Format = "netCDF-4 classic model" ;
}
$ nccopy -d 0 -c 'dim1/14,dim2/10' test.nc test_d0.nc
$ ncdump -hs test_d0.nc
netcdf test_d0 {
dimensions:
dim1 = 240 ;
dim2 = 180 ;
variables:
double u(dim1, dim2) ;
u:_Storage = "contiguous" ;
// global attributes:
:_Format = "netCDF-4 classic model" ;
}
If a value >0 for the -d option is been used, then chunking is applied.
$ nccopy -d 1 -c 'dim1/14,dim2/10' test.nc test_d1.nc
$ ncdump -hs test_d1.nc
netcdf test_d1 {
dimensions:
dim1 = 240 ;
dim2 = 180 ;
variables:
double u(dim1, dim2) ;
u:_Storage = "chunked" ;
u:_ChunkSizes = 240, 180 ;
u:_DeflateLevel = 1 ;
// global attributes:
:_Format = "netCDF-4 classic model" ;
}
Reactions are currently unavailable