environmentaltools.download.download_image_with_geemap

environmentaltools.download.download_image_with_geemap(image: ee.Image, output_file: Path, study_area: ee.Geometry, scale: int = 10) bool[source]

Download Earth Engine image to GeoTIFF using geemap.

Uses geemap’s download function to export an Earth Engine image to a local file. Validates that the downloaded file exists and has reasonable size.

Parameters:
  • image (ee.Image) – Earth Engine image to download.

  • output_file (Path) – Output file path for the GeoTIFF.

  • study_area (ee.Geometry) – Study area for clipping the image.

  • scale (int, optional) – Spatial resolution in meters. Defaults to 10 (Sentinel-2 native resolution).

Returns:

True if download successful and validated, False otherwise.

Return type:

bool

Example

>>> img = ee.Image("COPERNICUS/S2_HARMONIZED/20200601T105619_20200601T110145_T30STG")
>>> area = ee.Geometry.Point([-6.0, 36.8]).buffer(10000)
>>> success = download_image_with_geemap(img, Path("output.tif"), area)