Skip to content

[Bug] Climate Adjustment Factors to Hydropower not Reflected in PRAS data #131

Description

@jvcarag

Summary

The hydropower capacity factor (CF) data ingested by PRAS does not include climate-based adjustments applied to hydropower when GSw_ClimateHydro == 1. This is because PRAS uses the monthly-indexed hydcf.csv input file for hydropower CFs, which is a precursor to the rep/stress-period-indexed cf_hyd.csv file that the adjustment factors are applied to:

PRAS ingesting hydcf.csv:

function get_hydro_data(data::ReEDSdatapaths)
filepath_cf = joinpath(data.ReEDSfilepath, "inputs_case", "hydcf.csv")
hydcf = DataFrames.DataFrame(CSV.File(filepath_cf))

Place where climate adjustments to hydropower CF are applied in ReEDS:

* Written by reeds/input_processing/hourly_writetimeseries.py
$onempty
parameter cf_hyd(i,allszn,r,allt) "--fraction-- hydro capacity factors by season and year"
/
$offlisting
$ondelim
$include inputs_case%ds%%temporal_inputs%%ds%cf_hyd.csv
$include inputs_case%ds%stress%stress_year%%ds%cf_hyd.csv
$offdelim
$onlisting
/ ;
$offempty
$ifthen.climatehydro %GSw_ClimateHydro% == 1
* Written by climateprep.py
table climate_hydro_seasonal(r,allszn,allt) "annual/seasonal nondispatchable hydropower availability"
$offlisting
$ondelim
$include inputs_case%ds%%temporal_inputs%%ds%climate_hydadjsea.csv
$offdelim
$onlisting
;
* adjust cf_hyd based on annual/seasonal climate multipliers
* non-dispatchable hydro gets new seasonal profiles as well as annually-varying CF
* dispatchable hydro keeps the original seasonal profiles; only annual CF changes. Reflects the assumption
* that reservoirs will be utilized in the same seasonal pattern even if seasonal inflows change.
cf_hyd(i,szn,r,t)$[hydro_nd(i)$(yeart(t)>=Sw_ClimateStartYear)] =
sum{allt$att(allt,t), cf_hyd(i,szn,r,t) * climate_hydro_seasonal(r,szn,allt) } ;
cf_hyd(i,szn,r,t)$[hydro_d(i)$(yeart(t)>=Sw_ClimateStartYear)] =
sum{allt$att(allt,t), cf_hyd(i,szn,r,t) * climate_hydro_annual(r,allt) } ;
$endif.climatehydro

Suggested Fix

Since climate adjustment factors are first read into the model at monthly resolution, they can be applied to hydcf.csv in the hydcf.py input processing script. PR #129 will address this Issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions