Mapping¶
For this module, you need to have the optional dependendency pyflow_acdc[mapping] installed.
Interactive map¶
- plot_folium(grid, text='inPu', name='grid_map', tiles='CartoDB Positron', polygon=None, ant_path='None', clustering=True, coloring=None)¶
Creates an interactive map visualization using Folium.
Parameter
Type
Description
Default
gridGrid
Grid to visualize
Required
textstr
Hover text format (‘data’,’inPu’ or ‘abs’)
‘inPu’
namestr
Output file name
‘grid_map’
tilesstr
“OpenStreetMap”,”CartoDB Positron”,”Cartodb dark_matter” or None
“CartoDB Positron”
ant_pathstr
Animated paths
‘ALl’, ‘Reduced’ or ‘None’
clusteringbool
Enable marker clustering
True
Features:
Interactive map with zoom/pan
Voltage level filtering
Component type layers:
MVAC Lines (<110kV)
HVAC Lines (<300kV)
EHVAC Lines (<500kV)
UHVAC Lines
DC Lines
Converters
Transformers
Generators by type
Marker clustering for generators
Hover information for components
Optional animated power flows:
‘All’, all lines higher than 110kV
‘Reduced’, only HVDC lines
‘None’, no animated power flows
Example
import pyflow_acdc as pyf grid,res = pyf.NS_MTDC() pyf.OPF_ACDC(grid) pyf.plot_folium(grid)
Example with animated power flows
import pyflow_acdc as pyf grid,res = pyf.NS_MTDC() pyf.OPF_ACDC(grid) pyf.plot_folium(grid,ant_path='All')