This tool can be used to change the value within the grid cells of a raster (input
) that contain NoData to zero. The most common reason for using this tool is to change the background region of a raster image such that it can be included in analysis since NoData values are usually ignored by by most tools. This change, however, will result in the background no longer displaying transparently in most GIS. This change can be reversed using the set_nodata_value tool.
set_nodata_value, Raster.is_nodata
raster (Raster): The input Raster object
Raster: the returning value
def convert_nodata_to_zero(self, raster: Raster) -> Raster: ...