Node
In the TransitionZero platform, all data is indexed to a Node. Each node represents the geographic centroid of a modelled region. Nodes are used to represent useful physical and administrative boundaries and can range from individual physical assets through to entire countries and continents. This flexibility allows TransitionZero users to access data at all levels of aggregation via the TransitionZero platform .
The image shows how nodes represent the geographic centroid of a modeled region. The edges represent where there is interconnection between the nodes. Source: OSeMOSYS Global: An open-source, open data global electricity system model generator
In the physics of systems modelling, Nodes are discrete units around which the continuity of energy and materials is constrained. In other words, at every node in a systems model, the input plus supply to the node must equal the output plus demand.
To access data for nodes, you can use this Jupyter Notebook on Github.
See also: Geometry
Bases: NodeBase
Nodes can be loaded directly with their id:
germany = Node.from_id("DEU")
Source code in tz/client/node.py
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 |
|
assets: AssetCollection
property
An collection of assets located in (or connected to) this node.
children: list[Node]
property
A set of nodes which are the heirarchical children of this node.
geometry: Geometry
property
The node's geometry in WGS84 coordinate reference system.
parents: list[Node]
property
A set of nodes which are the heirarchical ancestors of this node.
from_id(id)
classmethod
Initialise Node from id
as a positional argument
Source code in tz/client/node.py
36 37 38 39 40 |
|
search(alias, threshold=0.5, node_type=None, limit=10, page=0)
classmethod
Search for nodes using an alias.
germany_nodes = Node.search("Germany")
Parameters:
Name | Type | Description | Default |
---|---|---|---|
alias |
str
|
The target alias to search. |
required |
threshold |
float
|
The desired confidence in the search result. |
0.5
|
node_type |
str
|
filter search to a specific node type. |
None
|
limit |
int
|
The maximum number of search results to return per page. |
10
|
page |
int
|
The page number of search results to return. |
0
|
Returns:
Type | Description |
---|---|
list[Node]
|
List[Node]: A list of Node objects. |
Source code in tz/client/node.py
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 |
|