I am looking for a way to to retrieve an image from stackstac that has equal area to the polygon used as boundaries. In practice the polygon is likely to not be perfectly aligned but rotated causing the retrieved image to be closer to the envelope area of the polygon and not the "real" area. So assuming a 1ha area of a polygon, when retrieving an image with stackstac at resolution of 10m, I would want a 10x10pixel image, regardless of the orientation of the polygon. I have made a gist with an example and was hoping for an idea of how this can be achieved. Thank you very much in advance!
I am looking for a way to to retrieve an image from stackstac that has equal area to the polygon used as boundaries. In practice the polygon is likely to not be perfectly aligned but rotated causing the retrieved image to be closer to the envelope area of the polygon and not the "real" area. So assuming a 1ha area of a polygon, when retrieving an image with stackstac at resolution of 10m, I would want a 10x10pixel image, regardless of the orientation of the polygon. I have made a gist with an example and was hoping for an idea of how this can be achieved. Thank you very much in advance!