Release: classify NTx35/NTx40/NDD across hazards (#79 Part A)#121
Merged
Conversation
#79 Part A) (#120) Single-crop hazards.py previously classified only precipitation, TAVG, NDWS, and NDWL0 in its CROP HAZARD ASSESSMENT and BASELINE LTM tables. The ensemble classified those plus NTx35/NTx40 but not NDD. - Add dry_days_hazard() + NDD_SEVERITY (15/20/25, generic) in hazards.py. - hazards.py: classify NTx35/NTx40 (crop-specific) and NDD in both the per-season assessment and the Baseline LTM, and print them in both the per-season and LTM Hazard Assessment tables. - ensemble_hazards.py: classify NDD (heat indices were already wired), add it to the majority-vote aggregation and both printouts. Completes Part A of issue #79: every architecture hazard variable that has a defined threshold now carries a severity status. Min Tmin / Max Tmax remain context values (shown in stats; no severity threshold).
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.
Summary
Promotes Part A of issue #79 (#120) from
stagingtomain.Classifies NTx35/NTx40 (crop-specific bands) and NDD (generic 15/20/25) in both the single-crop
hazards.py(per-season + Baseline LTM) and the NEX-GDDP ensemble Hazard Assessment tables. Addsdry_days_hazard()+NDD_SEVERITYin hazards.py and wires NDD into the ensemble aggregation/printouts.Min Tmin / Max Tmax remain context values (no severity threshold). Parts B and C of #79 remain open.