[netcdfgroup] nccopy should use 1 as default-chunksize for unlimited dimension

Hi,

when chunking files with unlimited dimension, the unlimited dimension must be given explicitly in nccopy, and will usually be set to one.

In a file with time as unlimited dimension, and X and Y as dimensions, it is currently required to use

$ nccopy -k 4 -c "time/1,X/100,Y/100"  in.nc out.nc


When running without time, it does not work:

$ nccopy -k 4 -c "X/100,Y/100"  in.nc out.nc
NetCDF: Invalid argument
Location: file nccopy.c; line 637


Only for unlimited dimensions, one needs to give the dimension explicitly, for all other dimensions a useful default (full dim-size) is used. I think a useful default for unlimited dimensions is 1.


Heiko



--
Dr. Heiko Klein                              Tel. + 47 22 96 32 58
Development Section / IT Department          Fax. + 47 22 69 63 55
Norwegian Meteorological Institute           http://www.met.no
P.O. Box 43 Blindern  0313 Oslo NORWAY



  • 2014 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: