CAL: Calibrate reflectivity coverage thresholds in codebook#32
Merged
rcjackson merged 1 commit intoJul 13, 2026
Merged
Conversation
Recalibrated the three quantitative reflectivity-coverage reclassification thresholds in CODEBOOK.md against 1,212 hand-labelled CSAPR2 scenes: - No Precipitation pct_gates_50dBZ 0.002 -> 0.005 percent (old value overrode ~3% of genuine No-Precip scenes; 0.005 clears the full observed No-Precip envelope, max 0.0045) - Stratiform Precipitation pct_gates_50dBZ 0.02 -> 0.035 percent (Youden-optimal cut vs MCS, J=0.72; false overrides 13% -> 6%) - Isolated Convection pct_gates_30dBZ 1.0 -> 1.3 percent (Youden-optimal cut vs MCS, J=0.70; false overrides 16% -> 13%) Net effect: spurious hard-overrides of correctly-labelled scenes drop from 6.8% to 3.5% while catch of genuine mislabels is preserved. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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
Recalibrates the three quantitative reflectivity-coverage reclassification thresholds in
CODEBOOK.md(Section 3.1) against 1,212 hand-labelled CSAPR2 scenes (Bankhead National Forest). These thresholds drive the automatic label overrides applied bycriteria_from_codebook/apply_criteria_to_labels.pct_gates_50dbzpct_gates_50dbzdoes not separate these two classes, so this rule only guards against gross mislabels; raised just above the full observed No-Precip envelope.pct_gates_50dbzpct_gates_30dbzMethod
For the two rules where the source and target classes genuinely separate on the field (Stratiform→MCS, Isolated→MCS), thresholds are set at the Youden-J optimal cut (maximizing true catch − false override). For No-Precip→Isolated Convection the field does not discriminate the classes (Isolated Convection's median 50 dBZ coverage ≈ 0), so the threshold is set just above the observed No-Precip envelope to avoid overriding genuine No-Precip scenes.
Verification
criteria_from_codebook('CODEBOOK.md')parses all three new thresholds with correct reclassify targets.apply_criteria_to_labels: spurious hard-overrides of correctly-labelled scenes drop from 82 (6.8%) → 43 (3.5%).🤖 Generated with Claude Code