Skip to content

eo_tools.dem

retrieve_dem(shp, out_file, dem_name='cop-dem-glo-30', upscale_factor=1)

Downloads a DEM for a given geometry from Microsoft Planetary Computer

Parameters:

Name Type Description Default
shp shapely shape

Geometry of the area of interest

required
out_file str

Output file.

required
dem_name str

One of the available collections ('alos-dem', 'cop-dem-glo-30', 'cop-dem-glo-90', 'nasadem'). Defaults to "cop-dem-glo-30".

'cop-dem-glo-30'
tmp_dir str

Temporary directory where the tiles to be merged and cropped will be stored. Defaults to "/tmp".

required
clear_tmp_files bool

Delete original tiles. Set to False if these are to be reused.

required
upscale_factor float

Upsampling factor.

1