Commit 611def34 authored by Mario Chirinos Colunga's avatar Mario Chirinos Colunga 💬

Intersects

parent 052771e9
...@@ -57,7 +57,7 @@ class APISentinel(object): ...@@ -57,7 +57,7 @@ class APISentinel(object):
Example: Example:
"POLYGON((-89.99 21.27,-89.13 21.29,-89.30 20.68,-90.04 20.71,-89.99 21.27))" "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. date (str): Initial date and end date.
searchParameters (str): Type platform Sentinel-1 or Sentinel-2, e.g. area_relation=[‘Intersection’, ‘Contains’, ‘IsWithin’] searchParameters (str): Type platform Sentinel-1 or Sentinel-2, e.g. area_relation=[‘Intersects’, ‘Contains’, ‘IsWithin’]
Other Parameters: Additional keywords can be used to specify other query parameters, e.g. relativeorbitnum- 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- 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 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): ...@@ -67,7 +67,7 @@ class APISentinel(object):
Returns: Returns:
OrderedDict: Sentinel Product list found. OrderedDict: Sentinel Product list found.
""" """
products_list = self.api.query(area, date, area_relation='Intersection', **searchParameters) products_list = self.api.query(area, date, area_relation='Intersects', **searchParameters)
return products_list return products_list
def downloadProducts(self,products,dir): 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