e-sensing / sits

Satellite image time series in R
https://e-sensing.github.io/sitsbook/
GNU General Public License v2.0
481 stars 78 forks source link

Create an exclusion mask for raster classification #1199

Closed gilbertocamara closed 2 weeks ago

gilbertocamara commented 3 months ago

Describe the requested improvement When classifying raster data cubes, it is useful to provide an exclusion mask that will remove certain areas from the classified cube. This situation occurs when working with deforestation monitoring, when users want to exclude past deforestation and only focus on the yearly increments.

Associated sits API function The sits_classify.raster_cube() function will have an additional parameter called exclusion_mask which will be a multipolygon object.

Additional context Consider the use of GDAL to do this operation.