powersimdata.network.constants.region package¶
Subpackages¶
Submodules¶
powersimdata.network.constants.region.division module¶
- class powersimdata.network.constants.region.division.DivisionMapping(zone)[source]¶
Bases:
object
State/Country mapping for grid models.
- Parameters:
zone (pandas.DataFrame) – information on zones of a grid model.
- class powersimdata.network.constants.region.division.EUDivisionMapping(zone)[source]¶
Bases:
DivisionMapping
Country mapping for EU grid models
- Parameters:
zone (pandas.DataFrame) – information on zones of a grid model.
- class powersimdata.network.constants.region.division.USADivisionMapping(zone)[source]¶
Bases:
DivisionMapping
State mapping for USA grid models
- Parameters:
zone (pandas.DataFrame) – information on zones of a grid model.
powersimdata.network.constants.region.geography module¶
- class powersimdata.network.constants.region.geography.EU[source]¶
Bases:
object
Geographical and timezone information for USA grid models
- class powersimdata.network.constants.region.geography.USA[source]¶
Bases:
object
Geographical and timezone information for USA grid models
powersimdata.network.constants.region.interconnect module¶
powersimdata.network.constants.region.loadzone module¶
- class powersimdata.network.constants.region.loadzone.EULoadzoneMapping(zone)[source]¶
Bases:
LoadzoneMapping
Loadzone mapping for EU grid models
- Parameters:
zone (pandas.DataFrame) – information on zones of a grid model.
- class powersimdata.network.constants.region.loadzone.LoadzoneMapping(zone)[source]¶
Bases:
object
Loadzone mapping for grid models
- Parameters:
zone (pandas.DataFrame) – information on zones of a grid model.
- class powersimdata.network.constants.region.loadzone.USALoadzoneMapping(zone)[source]¶
Bases:
LoadzoneMapping
Loadzone mapping for USA grid models
- Parameters:
zone (pandas.DataFrame) – information on zones of a grid model.
powersimdata.network.constants.region.mapping module¶
- class powersimdata.network.constants.region.mapping.EUMapping(model, interconnect, info)[source]¶
Bases:
Mapping
Geographical/time mapping for EU grid models
- Parameters:
model (str) – grid model.
interconnect (list) – interconnect(s)
info (pandas.DataFrame) – information on zones of a grid model.
- class powersimdata.network.constants.region.mapping.Mapping(model, interconnect, info)[source]¶
Bases:
object
Geographical/time mapping for USA grid models
- Parameters:
model (str) – grid model.
interconnect (list) – interconnect(s)
info (pandas.DataFrame) – information on zones of a grid model.
powersimdata.network.constants.region.zones module¶
- powersimdata.network.constants.region.zones.check_zone(model, zone)[source]¶
Validate data frame used in
powersimdata.network.model.ModelImmutables
class.- Parameters:
model (str) – grid model.
zone (pandas.DataFrame) – data frame to be tested.
- Raises:
TypeError – if
zone
is not a pandas.DataFrameValueError – if index name is not ‘zone_id’ if ‘zone_name’, ‘state’/’country’ (model dependent), ‘interconnect’, ‘time_zone’ and ‘abv’ are not in columns.
- powersimdata.network.constants.region.zones.from_csv(model)[source]¶
Returns geographical and timezone information of a grid model from a CSV file.
- Parameters:
model (str) – grid model.
- Returns:
(pandas.DataFrame) – a data frame with loadzone name (‘zone_name’), division name (e.g. ‘state’ name for USA grid models), interconnect name (‘interconnect’), time zone of loadzone (‘time_zone’), division abbreviation (‘abv’) as columns and loadzone id (‘zone_id’) as indices.
- powersimdata.network.constants.region.zones.from_pypsa(model, info)[source]¶
Returns geographical and timezone information of a grid model from a PyPSA Network object.
- Parameters:
model (str) – grid model.
info (pd.DataFrame) – a data frame with loadzone id as index and loadzone name (‘zone_name’) and division abbreviation (‘abv’) as columns.
- Returns:
(pandas.DataFrame) – a data frame with loadzone name (‘zone_name’), division name (e.g. ‘country’ name for EU grid models), interconnect name (‘interconnect’), time zone of loadzone (‘time_zone’), division abbreviation (‘abv’) as columns and loadzone id (‘zone_id’) as indices.