raster_tools.Raster.burn_mask#

Raster.burn_mask()[source]#

Fill null-masked cells with null value.

Use this as a way to return the underlying data to a known state. If dtype is boolean, the null value is cast to bool instead of promoting the data to fit it.