Due to the current gap in continued funding from the U.S. National Science Foundation (NSF), the NSF Unidata Program Center has temporarily paused most operations. See NSF Unidata Pause in Most Operations for details.

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

This gives very poor performance when the number of timesteps in the file
is large.

On Thu, Oct 23, 2014 at 5:25 AM, Heiko Klein <Heiko.Klein@xxxxxx> wrote:

> 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
>
> _______________________________________________
> netcdfgroup mailing list
> netcdfgroup@xxxxxxxxxxxxxxxx
> For list information or to unsubscribe,  visit:
> http://www.unidata.ucar.edu/mailing_lists/
  • 2014 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: