Skip to content

Commit

Permalink
Fixed issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrien Jaussaud committed Jun 17, 2024
1 parent 9db51b7 commit bd97ee9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions geosyspy/services/map_product_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,15 @@ def get_satellite_coverage(
or indicator.upper() == "REFLECTANCE"
or indicator.upper() == "NDVI"
):
map_type = "INSEASON_NDVI"
map_type = "NDVI"
else:
map_type = f"INSEASON_{indicator.upper()}"
map_type = f"{indicator.upper()}"

if sensors_collection is not None:
sensors: list[str] = [elem.value for elem in sensors_collection]
parameters = f"?maps.type={map_type}&Image.Sensor=$in:{'|'.join(sensors)}&coveragePercent={coveragePercent}&mask=Auto&$limit=None&$filter=Image.Date >= '{start_date}' and Image.Date <= '{end_date}'"
parameters = f"?maps.type={map_type}&Image.Sensor=$in:{'|'.join(sensors)}&coveragePercent={coveragePercent}&mask=Auto&$filter=Image.Date>='{start_date}' and Image.Date<='{end_date}'"
else:
parameters = f"?maps.type={map_type}&coveragePercent={coveragePercent}&mask=Auto&$limit=None&$filter=Image.Date >= '{start_date}' and Image.Date <= '{end_date}'"
parameters = f"?maps.type={map_type}&coveragePercent={coveragePercent}&mask=Auto&$filter=Image.Date>='{start_date}' and Image.Date<='{end_date}'"

fields = f"&$fields=coveragePercent,maps,image.id,image.sensor,image.availableBands,image.spatialResolution,image.date,seasonField.id"
flm_url: str = urljoin(
Expand Down

0 comments on commit bd97ee9

Please sign in to comment.