Only download file if the image completely covers the footprint?



When you provide a footprint (wkt-file) to specify what area you want to download images from, every image that in some way overlap with the footprint is listed. Is it possible to sort out so you only get images that completely covers the specified footprint?

Something like the query option on the last line here?

footprint = geojson_to_wkt(read_geojson('polygon.geojson'))
products = api.query(footprint,
                     dateBefore, dateAfter,
                     completelyCovers = True ##### THIS LINE)

Also, is there any way to add grid lines using python? I have a script that converts Sentinel-files into images and I would like the images to have the same grid lines that you get if you toggle the “Show graticule overlay” in the SNAP toolbox.

Any help would be appreciated.

Regards Peder


I can’t help with the Scihub query.
For the graticule overlay I can say it is not easy to do.
I’ve explained the how to use the layers for Java some time ago:

You can try to bring this to Python but this will not be an easy task I think.
The class you would need to create the Layer is called org.esa.snap.core.layer.GraticuleLayer


Ok, thanks for the reply. I will look into the topic you suggested.