Closed ejsimley closed 2 years ago
We decided to have OpenOA convert power to W if they are not in W in the ENTR warehouse. But ENTR will be responsible for deriving an energy_kwh column using power and the SCADA data frequency. So OpenOA can query the energy column without having to derive it separately.
sql statements are written to calculate energy from power.: https://github.com/entralliance/entr_warehouse/blob/de721fc2cb21eedd71daebd61a88ddab241e4db4/models/marts/exposures/openoa/intermediate/int_openoa_wtg_scada__filtered.sql#L21-L31
Todo:
Thoughts on sequencing work:
convert_power_to_energy
method used heredrop_duplicates
(used here in OpenOA) method as macro & incorporate into OpenOA modelsBased on that plan, here are the generic macros we need:
Data processing steps needed to convert and QC data for OpenOA can be moved to the ENTR warehouse using dbt. Example of current steps can be found here: https://github.com/entralliance/OpenOA/blob/main/examples/project_ENGIE.py
We agreed to start with the simple "power in watts" and "calculate energy" steps starting here: https://github.com/entralliance/OpenOA/blob/89fff3a521413403d8eb349bb65810b7a498f004/examples/project_ENGIE.py#L128