Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR is in response to #80 to add grid gross loss calculations to the project
The brief summary:
src.grid_gross_loss
where GGL is calculatedHow does eGRID Calculate GGL?
GGL = Losses / (Disposition - Exports - Direct Use)
, where:How does this PR calculate GGL?
GGL = Losses / Disposition
. I don't subtract out direct use (called "consumed by respondent without charge" in EIA-861) due to the note above, and I don't subtract out exports, because there is not a clear reason upon examining the data why this should be exlcluded from total disposition (although this is something that we should look into). I'm wondering if the total state export data in the state electricity profile is different from the "exchange energy delivered" data in EIA-861, and thus there might be a reason to treat it differently.Why are our calculations so different from eGRID?
GGL = Total Energy Losses / (Total Disposition - Exchange Energy Delivered - Consumed by Respondent without Charge)
) I still only arrive at a national average value of 2.8%.TODO
gridemissions
(likeconsumed_ef / (1 - GGL)
), or if these values could be integrated into the consumed emissions calculation itself (see Account for transmission losses / Grid Gross Loss #80)