NanTransformer#
- class NanTransformer[source]#
Bases:
RasterTransformer
Removes NaN values from float raster.
- __init__(to_value: float = 0.0)[source]#
Constructor.
- Parameters
to_value (float) – NaN values are replaced with this.
Methods
__init__
([to_value])Constructor.
get_out_channels
(in_channels)Number of channels in output of
transform()
.get_out_dtype
(in_dtype)dtype of the output of
transform()
.transform
(chip)Removes NaN values.
- __init__(to_value: float = 0.0)[source]#
Constructor.
- Parameters
to_value (float) – NaN values are replaced with this.