Subsetting a raster by irregular polygon

I’m attempting to subset my input raster to fit within the irregular bounds of a polygon in SNAP 10.0. I initially tried using WKT coordinates of the vector in the model builder, but it seems this method is only suitable for rectangular or square geometries. While the Land Sea mask partially accomplishes the task by masking areas outside of the input polygon, it doesn’t eliminate pixels outside the polygon’s extent.

I’ve searched the forum for a solution but haven’t found any workaround. How can I achieve this task effectively?

Rasters are always rectangular. So, you first have to subset the data using the bounding box of your irregular polygon and then you can mask the data outside of this region using the land-sea-mask or other means.


EOMasters_icon_60 Marco from EOMasters - Mastering Earth Observation - Kofi_cup_40x30

3 Likes

Thanks. It works.

1 Like