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__()#
Methods
__init__
()decode
(variable[, name])Convert an decoded variable to a encoded variable
encode
(variable[, name])Convert an encoded variable to a decoded variable