singularity-energy / open-grid-emissions

Tools for producing high-quality hourly generation and emissions data for U.S. electric grids
MIT License
75 stars 5 forks source link

Fix missing fuel codes when calculating CH4 and N2O emissions for CEMS #195

Open grgmiller opened 2 years ago

grgmiller commented 2 years ago

In data_cleaning.clean_cems, when we impute missing CO2 values, we use energy source codes from the power sector data crosswalk, and if missing, we calculate plant-month weighted average emission factors based on EIA-923 data. However, when calculating CH4 and N2O values, we had previously not validated that there were no missing energy source codes, so some of the resulting CH4 and N2O data will be missing.

We need to fix this either by:

  1. Implementing a similar two-step process that we use for CO2
  2. Updating all three methods per https://github.com/singularity-energy/open-grid-emissions/issues/163
  3. Using a different source of data for assigning energy source codes to CEMS data (currently our approach for assigning energy source codes to EIA-923 data is not consistent with how we do it for CEMS data).

I'd like to try and patch this before our initial public release.

grgmiller commented 2 years ago

Currently implemented approach is to use plant_primary_fuel to fill missing fuel codes, but we should refine this in the future.