deployment-gap-model-education-fund / deployment-gap-model

ETL code for the Deployment Gap Model Education Fund
https://www.deploymentgap.fund/
MIT License
6 stars 2 forks source link

Integrate withdrawn operational projects #315

Closed bendnorman closed 5 months ago

bendnorman commented 6 months ago

This PR:

  1. Integrates withdrawn and operational projects for GS and LBNL in the data warehouse. The iso_projects_*_format tables still only contain active projects.
  2. Creates a change log of projects in the ISO queue called iso_projects_change_log. There is a record for every time a project's status changes. The effective_date column is the date the current status started, and the end_date is the date the project status ended. end_date is null if the record contains the current status for the project.
  3. Create two additional data mart tables called iso_regions_change_log and iso_counties_change_log, which contain a number of projects and total capacity for a given geography, status and resource class over time.