NREL / HOPP

https://hopp.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
25 stars 46 forks source link

Cambium Call #375

Open kbrunik opened 1 month ago

kbrunik commented 1 month ago

Extension of Cambium Call

I would like to extend the options in SiteInfo to call Cambium and set the End use cost``$/MWh``total_cost_enduse column as the self.elec_prices parameter.

Right now prices are set through loading in "grid_resource_file" in the YAML inputs and calling ElectricityPrices to set it. Otherwise if no price file is loaded it set by default using the "dispatch_factors_ts.csv" and the ppa_price parameter.

There might be some unit issues in doing this? The units aren't particularly clear in the way things are set right now, it would be great to clean up the docstrings and make it all more explicit.

Feature add

Ability to call the Cambium API, set the elec_prices from the API call in SiteInfo as the site is instantiated for a hybrid simulation.

Example

Create an example showing how to use the Cambium API call to set grid price.

dakotaramos commented 1 month ago

I'm coding up pytests for the Cambium API today so hopefully I can submit the PR for GREET and Cambium data in HOPP today/tomorrow.

dakotaramos commented 3 weeks ago

Just a note, now that @kbrunik has added some additional details, the current cambium API can pull projections for data from 2025-2050 in 5 year intervals, so 1) if you need this for years prior this wont fit your needs and 2) for years between the 5 year intervals you'll need to interpolate data (we currently interpolate data on the GreenHEART side of things in the LCA calculations once I git that PR in).