Subset in SNAP

Here I read the subset (or clip) topics, but I really couldn’t understand. In SNAP is there a way to clip the image by shapefile?

did you try this?

Thanks, yes I tested this but it only masks around the study area and the image size doesn’t decrease.

Unfortunately, SNAP cannot entirely remove the area outside from the product. It will always be “nodata” and part of the original size.

So what’s the solution?

The solution would be to once retrieve the corner coordinates of your shapefile and specify these geo-coordinates in the subset operation. Afterwards you can use the land-sea mask to mask out the area outside of the shape file.

We have it already on our todo list to support shapefiles during subsetting.
https://senbox.atlassian.net/browse/SNAP-369

Yes, I should do that.
Thanks a lot.