windkit.elevation_map_to_file
- windkit.elevation_map_to_file(elevation_map, filename, **kwargs)[source]
Write elevation map to 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”, “ZipExtFile”
- Parameters:
filename (str or pathlib.Path) – Path to file
elevation_map (xarray.DataArray) – Elevation map
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 writer.