Applied-GeoSolutions / gips

Geospatial Image Processing System
GNU General Public License v3.0
17 stars 5 forks source link

Add Sentinel-2 cloud filtering. #428

Closed ircwaves closed 6 years ago

ircwaves commented 6 years ago

In similar fashion to how landsat cloud filtering is implemented. For assets we have, just extract the metadata (MTD_MSIL1C.xml) file. But for files we don't have, the metadata can be grabbed using the URL for downloads

https://scihub.copernicus.eu/dhus/odata/v1/Products('f51ef2d6-eb18-46b9-8075-0a6458012abc')/$value

and replacing the last /$value with

/Nodes('{ASSETID}.SAFE')/Nodes('MTD_MSIL1C.xml')/$value

Enabling filtering of files that we don't have yet will make it so we can hook filters into the fetch.