nctoolkit.DataSet.missing_as

DataSet.missing_as(value=None)

Convert missing values to a constant

Parameters:

value (int/float) – If int/float is provided, the missing value will be converted to that.

Examples

Convert all missing values to 0: >>> ds.missing_as(0)