Update disturbance handling for harvest intensity classes#19
Open
erin-glen wants to merge 3 commits intodevelop_harvest_severityfrom
Open
Update disturbance handling for harvest intensity classes#19erin-glen wants to merge 3 commits intodevelop_harvest_severityfrom
erin-glen wants to merge 3 commits intodevelop_harvest_severityfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Motivation
Description
disturbanceLookupinlookups.pyto map codes 1–4 toharvest_0_25_HA,harvest_25_50_HA,harvest_50_75_HA, andharvest_75_100_HAand kept 5/10 for insects/fire.funcs.pyadjusted disturbance tabulation to ensure the new harvest columns exist, refactored NA filling to generically handle all disturbance columns, and updatedundisturbed_HAcalculation to subtract the four harvest buckets.merge_age_factorsto read four harvest emission factor columns and updatedcalculate_forest_removals_and_emissionsto compute annual emissions for each harvest intensity bucket (Annual_Emissions_Harvest_*_CO2).calculate_area,calculate_ghg_flux,summarize_ghg), and included the new columns in the rounding/output logic insave_results.analysis_core.pyto zero out the four harvest columns when recategorizing fire records.Testing
Codex Task