cfdm.Data.nc_set_hdf5_chunksizes

Data.nc_set_hdf5_chunksizes(chunksizes)[source]

Set the HDF5 chunksizes for the data.

Note

Chunksizes are cleared from the output of methods that change the data shape.

Note

Chunksizes are ignored for netCDF3 files that do not use HDF5.

New in version (cfdm): 1.7.2

Parameters
chunksizes: sequence of int

The chunksizes for each dimension. Can be integers from 0 to the dimension size.

Returns

None

Examples

>>> d.shape
(1, 96, 73)
>>> d.nc_set_hdf5_chunksizes([1, 48, 73])
>>> d.nc_hdf5_chunksizes()
(1, 48, 73)
>>> d.nc_clear_hdf5_chunksizes()
(1, 48, 73)
>>> d.nc_hdf5_chunksizes()
()