nctoolkit.DataSet.format#
- DataSet.format(ext=None)#
format: Change the netCDF format of a dataset.
This will compress the files within the dataset. This works lazily.
- Parameters:
ext (str) – New format. Must be one of “nc”, “nc1”, “nc2”, “nc4” and “nc5” . netCDF = nc1 netCDF version 2 (64-bit offset) = nc2/nc netCDF4 (HDF5) = nc4 netCDF4-classi = nc4c netCDF version 5 (64-bit data) = nc5
Examples
Change the format of a dataset to netCDF4: >>> ds.format(“nc4”)
Change the format of a dataset to netCDF5: >>> ds.format(“nc5”)