windkit.vector_map.vector_map_to_mapfile

windkit.vector_map.vector_map_to_mapfile(gdf, filename, lctable=None, header='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.

  • header (str) – Header 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”.