feat(ecoregion): harvest-probability summarized by EPA L3 ecoregion#79
Open
holoros wants to merge 1 commit into
Open
feat(ecoregion): harvest-probability summarized by EPA L3 ecoregion#79holoros wants to merge 1 commit into
holoros wants to merge 1 commit into
Conversation
Ingests the conus_render harvest-probability rasters (ph_any/clearcut/ partial.tif, ~3.1km Albers) and zonal-averages them by EPA Level III ecoregion (74 ecoregions) into public/api/ecoregion_harvest_summary.json, with a reproducible generator script. New 'Ecoregion harvest' tab: a sortable, filterable table of mean P(any) / P(stand-replacement) / P(partial) per ecoregion with color-coded cells. 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
Ingests the updated CONUS harvest-probability rasters from Cardinal (
conus_render/ph_any|clearcut|partial.tif, single-band float32, ~3.1 km Albers) and summarizes them by EPA Level III ecoregion — the 'summarize by ecoregion' refinement.scripts/build_ecoregion_harvest_summary.pyreprojects the L3 polygons to the raster Albers CRS, rasterizes per ecoregion, and zonal-averages each probability raster. Reproducible; the .tif inputs (~6.8 MB each) stay on Cardinal and are not committed.public/api/ecoregion_harvest_summary.json(13 KB): mean P(any) / P(stand-replacement) / P(partial) for 74 ecoregions.EcoregionHarvest.jsx): a sortable, filterable table with color-coded probability cells.Why this instead of a higher-res raster swap
I checked the source: the harvest-probability rasters are 1600×1057 at ~3.1 km pixels, and the larger PNG in
conus_renderis the same grid/extent (just a heavier render), so swapping it in gives no real resolution gain. The ecoregion zonal summary is the higher-value 'summarize by ecoregion' product you asked for, and it's additive (no canonical raster replaced).Reads
P(any) runs 0.69–0.92 across ecoregions; the informative signal is the stand-replacement vs partial split — e.g. Klamath Mountains 0.88/0.13 (clearcut-dominated) vs Northern Minnesota 0.71/0.65 (mixed selection).
Scope / risk
npm run buildpasses.Opened for review — not auto-merged.