Describe the bug
The sits_reclassify() function assumes that the mask parameter contains only a single tile. When the mask has multiple tiles that intersect with the bounding box of a tile being processed, only the first tile is used, causing incorrect reclassification results.
Additional context
The issue occurs in the .recl_labels_tile() function in api_reclassify.R, line 96, where .tile(mask) is called. The .tile.raster_cube() function returns only the first tile of a cube.
The function should process each mask tile separately.
Describe the bug
The
sits_reclassify()function assumes that themaskparameter contains only a single tile. When the mask has multiple tiles that intersect with the bounding box of a tile being processed, only the first tile is used, causing incorrect reclassification results.Additional context
The issue occurs in the
.recl_labels_tile()function inapi_reclassify.R, line 96, where.tile(mask)is called. The.tile.raster_cube()function returns only the first tile of a cube.The function should process each mask tile separately.