Skip to content

Commit

Permalink
updated download call
Browse files Browse the repository at this point in the history
commentary
  • Loading branch information
AdrienJaussaudGeosys committed May 30, 2024
1 parent 340052d commit f3a5cac
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions geosyspy/geosys.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,16 +330,17 @@ def get_satellite_coverage_image_references_post(self,

return df, images_references

def download_image(self, image_ref, path: str = ""):
def download_image(self, image_ref, indicator: str = "", path: str = ""):
"""Downloads a satellite image locally
Args:
image_reference (ImageReference): An ImageReference object representing the image to download
indicator (str): the indicator (NDVI...)
path (str): the path to download the image to
"""

response_zipped_tiff = self.__map_product_service.get_zipped_tiff(
image_ref.season_field_id, image_ref.image_id
image_ref.season_field_id, image_ref.image_id, indicator = indicator
)
if path == "":
file_name = image_ref.image_id.replace("|", "_")
Expand Down

0 comments on commit f3a5cac

Please sign in to comment.