What is Chunking?
Chunked data are written in chunks of user-defined size.
How do you pick chunksizes?
Setting the Chunksizes in NetCDF-4
Set the chunksizes for variables in netCDF-4 file with nc_def_var_chunking().
The Cache in NetCDF-4
The chunk cache is used when reading or writing data. Set the cache size correctly for each variable to improve performance.
Setting the Cache in NetCDF-4
Set the cache for a variable with the nc_var_set_cache function.
Per-Variable Compression in NetCDF-4
Chunked variables in netCDF-4 files may use on-the-fly compression with zlib.
Per-Variable Compression in NetCDF-4, Results
File sizes of compressed and uncompressed 2D radar data. Note that deflation levels don't necessarily work as advertized, YMMV.
How to Use Per-Variable Compression in NetCDF-4
Some advice about using compression.
A contiguous variable is stored as one long array in the file.