|
raster_mask = rasterio.features.rasterize( |
for masks, I propose to go from this
raster_mask = rasterio.features.rasterize(
vector_mask_coords,
out_shape=out_shape,
all_touched=False,
transform=transform,
)
to this
raster_mask = rasterio.features.rasterize(
vector_mask_coords,
out_shape=out_shape,
all_touched=True,
transform=transform,
)
With the first version, pixel is marked as land depending on the central pixel.
Now, pixel is marked as land if one mask land pixel is in the box.
Carreful , this works only with land mask . Not with ocean mask
xsar/src/xsar/base_dataset.py
Line 741 in b10b44d
for masks, I propose to go from this
to this
With the first version, pixel is marked as land depending on the central pixel.
Now, pixel is marked as land if one mask land pixel is in the box.
Carreful , this works only with land mask . Not with ocean mask