feat(permanence): CONUS reversal-risk choropleth (stacked on #75)#78
Open
holoros wants to merge 2 commits into
Open
feat(permanence): CONUS reversal-risk choropleth (stacked on #75)#78holoros wants to merge 2 commits into
holoros wants to merge 2 commits into
Conversation
Adds a precompute script (build_permanence_risk.mjs) that summarizes per-state reversal risk from the committed series into a small permanence_risk.json (49 states), and a self-contained CONUS choropleth (PermanenceMap.jsx) that shades each state by how far its disturbance- exposed reserve falls below the passive reserve at horizon. Click a state to load it. Wired into the Permanence tab above the per-state panel. Build verified; values cross-checked (ME 66%, IN 84%, GA 48%).
Stress test found NV's reversal at -179% (disturbance-exposed median above passive) because its forested carbon base is tiny (15 Tg sparse woodland) — the known NV edge case. Precompute now marks states with a small base or negative shortfall reliable:false; the choropleth grays them out instead of mis-coloring them low-risk, and the per-state view shows a 'not characterized' note. NV and RI flagged. Build verified.
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.
What
Follow-up to #75. Adds the CONUS choropleth promised in the roadmap.
scripts/build_permanence_risk.mjsprecomputes a small per-state reversal-risk summary (public/api/permanence_risk.json, 49 states) from the committed series, so the map reads one ~10 KB file instead of loading 48 state series in the browser.src/PermanenceMap.jsxis a self-contained CONUS choropleth (Albers projection mirrored from SVGMap) that shades each state by the disturbance-exposed reserve shortfall vs the passive reserve at horizon; click a state to load it.Base
Stacked on
feat/permanence-reversal-risk(#75) so the diff here is just the map + data. Merge #75 first, then this.Risk
npm run buildpasses; the precompute is reproducible vianode scripts/build_permanence_risk.mjs.Opened for review — not auto-merged.