pyorc.Velocimetry.set_encoding#

Velocimetry.set_encoding(enc_pars={'_FillValue': -9999, 'dtype': 'int16', 'scale_factor': 0.01, 'zlib': True})[source]#

Set encoding parameters for all typical variables in a velocimetry dataset. This reduces the required storage for this dataset significantly, when stored to disk in e.g. a netcdf file using xarray.Dataset.to_netcdf.

Parameters:

enc_pars (dict of dicts, optional) – per variable, a dict containing encoding parameters. When called without input, a standard set of encoding parameters is used that compresses well. (Default value = const.ENCODING_PARAMS)