-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add anaeriobic digestion proxy script #30
base: main
Are you sure you want to change the base?
Conversation
…roxy file for anaerobic digesters
|
||
|
||
total_SCFM = 29877 - 1465 # 1,465 SCFM is from the farm digesters (all have missing lat/long data), which we need to substract from the total in order to get accurate proportions for the WRRF and stand-alone digesters | ||
WRRF = 23587 / total_SCFM # 23,587 SCFM is from WRRF |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these values fixed by facility type? The code below looks to do the the allocation of inventory emissions to the facilities and then normalizes those. In this case think that allocation step isn't necessary, we just normalize the fixed values by facility type. I may be missing something here. Let's talk it through.
# %% Read in the data | ||
|
||
# Read in emi data | ||
anaerobic_digestion_emi = pd.read_csv(emi_data_dir_path / "anaerobic_digestion_emi.csv") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's wrap the entirety of the inputs files and output proxy file into a function so it is clear which files are being used. For the emi file see the other comment on if we need it here or not since allocation happens in the next step.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Chris, looking good. My question is if we have fixed values from the biogas report, I think those should be assigned and normalized by facility type, and we don't need to use the emissions inventory values here, since the allocation by relative amount happens in the next step.
Can we wrap everything into a single function so that it's clear the full list of input and output files for this proxy?
Add anaeriobic digestion script to the proxy scripts to process the proxy file for anaerobic digesters