etrago_helpers¶
Module for repeated bus insertion tasks
-
copy_and_modify_buses
(from_scn, to_scn, filter_dict)[source]¶ Copy buses from one scenario to a different scenario
Parameters: - from_scn (str) – Source scenario.
- to_scn (str) – Target scenario.
- filter_dict (dict) – Filter buses according the information provided in this dict.
-
copy_and_modify_links
(from_scn, to_scn, carriers, sector)[source]¶ Copy links from one scenario to a different one.
Parameters: - from_scn (str) – Source scenario.
- to_scn (str) – Target scenario.
- carriers (list) – List of store carriers to copy.
- sector (str) – Name of sector (e.g.
'gas'
) to get cost information from.
-
copy_and_modify_stores
(from_scn, to_scn, carriers, sector)[source]¶ Copy stores from one scenario to a different one.
Parameters: - from_scn (str) – Source scenario.
- to_scn (str) – Target scenario.
- carriers (list) – List of store carriers to copy.
- sector (str) – Name of sector (e.g.
'gas'
) to get cost information from.
-
finalize_bus_insertion
(bus_data, carrier, target, scenario='eGon2035')[source]¶ Finalize bus insertion to etrago table
Parameters: - bus_data (geopandas.GeoDataFrame) – GeoDataFrame containing the processed bus data.
- carrier (str) – Name of the carrier.
- target (dict) – Target schema and table information.
- scenario (str, optional) – Name of the scenario The default is ‘eGon2035’.
Returns: bus_data (geopandas.GeoDataFrame) – GeoDataFrame containing the inserted bus data.
-
initialise_bus_insertion
(carrier, target, scenario='eGon2035')[source]¶ Initialise bus insertion to etrago table
Parameters: - carrier (str) – Name of the carrier.
- target (dict) – Target schema and table information.
- scenario (str, optional) – Name of the scenario The default is ‘eGon2035’.
Returns: gdf (geopandas.GeoDataFrame) – Empty GeoDataFrame to store buses to.