easysnowdata.topography.get_copernicus_dem#

easysnowdata.topography.get_copernicus_dem(bbox_input: GeoDataFrame | tuple | BaseGeometry | None = None, resolution: int = 30, **kwargs) DataArray[source]#

Deprecated since version 0.1.0: easysnowdata.topography.get_copernicus_dem is deprecated since easysnowdata 0.1.0 and will be removed in 0.3.0. Use easysnowdata.terrain.dem.load instead.

Fetch the Copernicus Global DEM for a bounding box.

Deprecated since version 0.1.0: Use easysnowdata.terrain.dem.load(), which takes any AOI form, offers the unsigned AWS route (source="earth-search") and masks the -32767 sentinel to NaN by default.

Parameters:
  • bbox_input (geopandas.GeoDataFrame or tuple or shapely.geometry, optional) – Spatial extent. Tuple should be (xmin, ymin, xmax, ymax) in EPSG:4326. Defaults to global extent if None.

  • resolution (int, optional) – DEM resolution in metres. Either 30 or 90. Default is 30.

  • **kwargs – Additional keyword arguments passed to easysnowdata.terrain.dem.load() (and on to odc.stac.load).

Returns:

xarray.DataArray – Elevation DataArray in metres (EPSG:4326).

Raises:

ValueError – If resolution is not 30 or 90.

Notes

Data citation:

European Space Agency, Sinergise (2021). Copernicus Global Digital Elevation Model. Distributed by OpenTopography. https://doi.org/10.5069/G9028PQB