GIS Module

Visualization of results using Google Earth

Attributes

category_colours : list

list of colour codes (aabbggrr) used for nodes and branches. The second last value is for NaN, and the last value is default colour. So with e.g. 5 colour categories, the list should have 7 elements.

Colour codes are strings on the format aabbggrr (8-digit hex) - alpha, blue, green, red

Example

powergama.GIS.makekml(“output.kml”,grid_data=data,res=res,
nodetype=”nodalprice”,branchtype=”flow”)
powergama.GIS.makekml(kmlfile, grid_data, nodetype=None, branchtype=None, res=None, timeMaxMin=None, title='PowerGAMA Results')

Export KML file for Google Earth plot of data

Colours can be controlled via the module variable “colours”

Parameters:

kmlfile : string

name of KLM file to create

grid_data : powergama.GridData

grid data object

nodetype : string

how to plot nodes - ‘nodalprice’,’powergim_type’

branchtype : string

how to plot branches - ‘flow’,’powergim_type’

res : powergama.Results (optional)

result object (result from powergama simulation)

timeMaxMin : [min,max]

time range used when plotting results from simulation

title : string

title of KML document