windkit.vector_map.vector_map_to_mapfile
- windkit.vector_map.vector_map_to_mapfile(gdf, filename, lctable=None, desc='WindKit', mode='w')[source]
Write vector_map in GeoDataFrame format to WAsP mapfile format.
- Parameters:
gdf (geopandas.GeoDataFrame) – Elevation or roughness change vector_map.
filename (pathlib.Path or str) – Path to output file.
lctable (LandCoverTable) – Landcover table to map landcover and roughness / displacements. Defaults to None.
desc (str) – Description string added to the file (cannot be empty when reading with map editor). Defaults to “WindKit”
mode (str("w" or "a")) – Write or append mode. Defaults to “w”.