reemission.postprocessing.visualise

Visualisation of reservoirs and additional layers as a folium interactive map

class reemission.postprocessing.visualise.FoliumLayer[source]

Bases: ABC

classmethod fromfile(file: Path, *args, **kwargs) FoliumLayer[source]

Instantiate from geodata file using geopandas

abstract toFoliumGeoJSON() GeoJson | FeatureGroup[source]
class reemission.postprocessing.visualise.FoliumOutputMapper(layers: ~typing.List[~reemission.postprocessing.visualise.FoliumLayer] | None = None, location: ~typing.List[float] = <factory>, init_zoom: float = 6, show_minimap: bool = False)[source]

Bases: object

__post_init__() None[source]
add_layer(layer: FoliumLayer) None[source]
create_map(dropna: bool = True, v_minmax: Tuple[float, float] | None = None) None[source]
init_zoom: float = 6
layers: List[FoliumLayer] | None = None
location: List[float]
map: Map
map_layers: ClassVar[List[str]] = ['Open Street Map']
remove_layer(layer_classname: str) None[source]
save_map(file_path: Path, show: bool = True) None[source]

Save map to a (.html) file and open in a web-browser (if show == True)

show_minimap: bool = False

Classes

FoliumLayer()

FoliumOutputMapper(layers, location, ...)