Commit 052771e9 authored by Mario Chirinos Colunga's avatar Mario Chirinos Colunga 💬

intersecton

parent 33ad86ea
......@@ -57,7 +57,7 @@ class APISentinel(object):
Example:
"POLYGON((-89.99 21.27,-89.13 21.29,-89.30 20.68,-90.04 20.71,-89.99 21.27))"
date (str): Initial date and end date.
searchParameters (str): Type platform Sentinel-1 or Sentinel-2
searchParameters (str): Type platform Sentinel-1 or Sentinel-2, e.g. area_relation=[‘Intersection’, ‘Contains’, ‘IsWithin’]
Other Parameters: Additional keywords can be used to specify other query parameters, e.g. relativeorbitnum-
ber=70. See https://scihub.copernicus.eu/twiki/do/view/SciHubUserGuide/3FullTextSearch for a full list. Ran-
ge values can be passed as two-element tuples, e.g. cloudcoverpercentage=(0, 30). The time interval formats
......@@ -67,7 +67,7 @@ class APISentinel(object):
Returns:
OrderedDict: Sentinel Product list found.
"""
products_list = self.api.query(area, date, area_relation='Contains', **searchParameters)
products_list = self.api.query(area, date, area_relation='Intersection', **searchParameters)
return products_list
def downloadProducts(self,products,dir):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment