Skip to content

issue with land mask #1  #296

Description

@vincelhx

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions