entralliance / entr_runtime

ENTR Alliance is an owner-operator led initiative to create open data stack within the clean energy sector. ENTR is a distribution of existing open-source tools, frameworks, and standards, packaged together to accelerate the transition to clean energy. Join us!
http://www.entralliance.com
MIT License
6 stars 3 forks source link

Move preprocessing steps from OpenOA project prepare to ENTR warehouse #23

Closed ejsimley closed 2 years ago

ejsimley commented 2 years ago

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

ejsimley commented 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.

ejsimley commented 2 years ago

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:

lewisarmistead commented 2 years ago

Thoughts on sequencing work:

Based on that plan, here are the generic macros we need: