Flexible start year option & tech classes addition#12
Conversation
Co-authored-by: Wesley Cole <49044852+wesleyjcole@users.noreply.github.com>
patrickbrown4
left a comment
There was a problem hiding this comment.
I haven't gone through the whole thing yet and will take a closer look next week, but some initial thoughts in the meantime. Happy to discuss if helpful (including whether to try some of the suggested changes here or in a followup PR). Thanks!
Co-authored-by: Wesley Cole <49044852+wesleyjcole@users.noreply.github.com>
Co-authored-by: Wesley Cole <49044852+wesleyjcole@users.noreply.github.com>
Co-authored-by: Wesley Cole <49044852+wesleyjcole@users.noreply.github.com>
Co-authored-by: Wesley Cole <49044852+wesleyjcole@users.noreply.github.com>
Co-authored-by: Wesley Cole <49044852+wesleyjcole@users.noreply.github.com>
Co-authored-by: Wesley Cole <49044852+wesleyjcole@users.noreply.github.com>
Co-authored-by: Wesley Cole <49044852+wesleyjcole@users.noreply.github.com>
Co-authored-by: Wesley Cole <49044852+wesleyjcole@users.noreply.github.com>
Co-authored-by: Wesley Cole <49044852+wesleyjcole@users.noreply.github.com>
Co-authored-by: Wesley Cole <49044852+wesleyjcole@users.noreply.github.com>
Co-authored-by: Wesley Cole <49044852+wesleyjcole@users.noreply.github.com>
Co-authored-by: Wesley Cole <49044852+wesleyjcole@users.noreply.github.com>
| break ; | ||
| ) ; | ||
| ) ; | ||
| *Currently only geothermal and dr_shed have supply curve capacities that change over time |
There was a problem hiding this comment.
@Yunzhi-Chen I ran into an issue with geothermal prescribed build in this PR so this PR includes a geothermal fix here as well. Do you think your PR (#94) fixes this/does something similar?
There was a problem hiding this comment.
Given that we are moving existing site processing downstream into ReEDS, do we still need the related logic in get_supply_curve_and_preprocess (line 410, starting with if existing_sites is not None:)? It seems like this could also be removed, at which would we could drop all existing_sites flags throughout the code and the config jsons. I'm not sure if this is still being used somewhere else though, and if we do drop we should probably move the longitude check introduced in PR #120 (#120) into ReEDS.
Summary
This PR:
startyearswitch and instead establishesstartyearbased onyearsetTechnical details
These changes are made in this PR:
process_unitdata.py: Readunitdata.csvfrominputs_caseand process it to assign sc_point_pids, capacity factors/mean temps to pv, wind, and geothermal units. This file is run immediately aftercopy_files.py. This allows us to remove all the mapping of NEMS units tosc_point_pidsin theReEDS_input_processing repo.WriteHintage.py: Allow start year to be flexible instead of 2010.writecapdat.py: Add mappings to solar, wind, geothermal resource class are based on the resource quality (capacity factors for wind and solar and temperature for geothermal) of the technology as it comes from reV.c_supplymodel.gmspcatset is removed from the model: The equationseq_force_prescription_powerandeq_force_prescription_energy, along with the variablesEXTRA_PRESCRIPandEXTRA_PRESCRIP_ENERGY, are currently indexed bypcat. Since the prescribed generator classes and vintages are now defined inwritecap.py, thepcatindex is no longer needed in these equations or variables. Accordingly, the equations are revised so that the investment (INV) of prescribed generators—indexed by (i, newv, r, t)—is equal to the sum of the prescribed build values and the additional prescribed investments (EXTRA_PRESCRIP) for those same (i, newv, r, t) combinations.eq_cap_new_noretandeq_cap_energy_new_noret. Although this implementation follows the same logic asm_capacity_exog, it explicitly captures prescribed generator builds in the INV variables in the current version of the model.hourlize:exog_cap_{tech}.csvfiles as they are no longer needed.geothermal_classification.csvis not generated inhourlizebut taken from https://pages.github.nrel.gov/ReEDS/ReEDS-2.0/model_documentation.html#technical-resource-potential.Issues resolved
Known incompatibilities
Relevant sources or documentation
Validation, testing, and comparison report(s)
Pending
Checklist for author
Details to double-check
hourlize/resource.pywas rerun to regenerate the existing/prescribed VRE capacity dataGeneral information to guide review
Did you use LLM tools (chatbot or copilot) in the preparation of this PR? If so, describe how
No
Tag points of contact here if you would like additional review of the relevant parts of the model