windkit.read_elevation_map#

windkit.read_elevation_map(filename, crs=None, **kwargs)[source]#

Read elevation map from file.

The file can be either a raster file or a vector file.

If the file is a raster file, the following formats are supported:

“grd” and “tif” (geoTIFF).

If the file is a vector file, the following formats are supported:

“gpkg”, “gml”, “map”, “tmp”, “zip”

Parameters:
  • filename (str, pathlib.Path or zipfile.ZipExtFile) – Path to file, or an open member of a zip archive, whose format is taken from its name.

  • crs (int, dict, str or pyproj.crs.CRS, optional) – Value to initialize pyproj.crs.CRS (Default: read from file)

  • **kwargs (dict) – Additonal keyword arguments passed to reader.

Returns:

elevation_map object

Return type:

xarray.DataArray, gpd.GeoDataFrame