Skip to content

Commit

Permalink
changed mask filter for coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrienJaussaudGeosys committed May 30, 2024
1 parent f3a5cac commit b40bda7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions geosyspy/services/map_product_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,14 +132,13 @@ def get_satellite_coverage_post(self, polygon: str,
end_date: str = end_date.strftime("%Y-%m-%d")
sensors: list[str] = [elem.value for elem in sensors_collection]

parameters = f"?Image.Sensor=$in:{'|'.join(sensors)}&coveragePercent=$gte:20&$filter=Image.Date >= '{start_date}' and Image.Date <= '{end_date}'&$limit=None"
parameters = f"?Image.Sensor=$in:{'|'.join(sensors)}&coveragePercent=$gte:20&$filter=Image.Date >= '{start_date}' and Image.Date <= '{end_date}'&$limit=None&mask=Auto"
payload = {
"seasonFields": [
{
"geometry": polygon
}
],
"useNativeMask": "true"
]
}

flm_url: str = urljoin(
Expand Down

0 comments on commit b40bda7

Please sign in to comment.