Disaggregate data
generic disaggregation development Split steps into:
- ETL
- disagg (also an ETL op)
to be rebalanced with the remind_coupling package
add_possible_techs_to_paidoff(paidoff, tech_groups)
Add possible PyPSA technologies to the paid off capacities DataFrame. The paidoff capacities are grouped in case the Remind-PyPSA tecg mapping is not 1:1 but the network needs to add PyPSA techs. A constraint is added so the paid off caps per group are not exceeded.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
paidoff
|
DataFrame
|
DataFrame with paid off capacities |
required |
Returns: pd.DataFrame: paid off techs with list of PyPSA technologies Example: >> tech_groups PyPSA_tech, group coal CHP, coal coal, coal >> add_possible_techs_to_paidoff(paidoff, tech_groups) >> paidoff tech_group, paid_off_capacity, techs coal, 1000, ['coal CHP', 'coal']
Source code in workflow/scripts/remind_coupling/disaggregate_data.py
disagg_ac_using_ref(data, reference_data, reference_year)
Spatially Disaggregate the load using regional/nodal reference data (e.g. the projections from Hu2013 as in the Zhou et al PyPSA-China version)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
data
|
DataFrame
|
DataFrame containing the load data |
required |
reference_data
|
DataFrame
|
DataFrame containing the reference data |
required |
reference_year
|
int | str
|
Year to use for disaggregation |
required |
Returns: pd.DataFrame: Disaggregated load data (Region x Year)