xarray.coding.variables.CFScaleOffsetCoder

class xarray.coding.variables.CFScaleOffsetCoder[source]

Scale and offset variables according to CF conventions.

Follows the formula:

decode_values = encoded_values * scale_factor + add_offset

__init__()

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__()

Initialize self.

decode(variable[, name])

Convert an decoded variable to a encoded variable

encode(variable[, name])

Convert an encoded variable to a decoded variable