eo-learn
eo-learn copied to clipboard
SentinelHubInputTask support for sentinelhub.Geometry
Currently SentinelHubImputTask support sentinelhub.BBox for fetching data. It should also support sentinelhub.Geometry to support polynomial.
Hi @sanjivjha,
thanks for this suggestion. It would be cool if geometry could be provided, where the data outside of the geometry would be masked out automatically but since eo-learn focuses more on larger areas, this wasn't implemented.
One thing you could do, though:
- use the
geometry.envelopeas your bbox - download data
- import geometry vector and turn it to a raster with the
Vector2Rastertask ineo-learnto calculate the geometry mask, which you can then apply to the data.
If you are willing to extend the SentinelHubInputTask yourself with a PR, we would be very grateful! :)
Cheers!
Matic
this was added in https://github.com/sentinel-hub/eo-learn/pull/461 The user must still provide a BBox, but we decided it should stay that way for now.