examples: ERA LTE Tier-1 integration script (#110)#112
Open
Sammyjoseph999 wants to merge 3 commits into
Open
Conversation
4 tasks
Runnable bridge from the ERA LTEs dataset to the toolkit: reads ERA's shipped unique_ltes.csv registry and runs analyze_climate_statistics with auto season detection per LTE site-period, emitting a tidy per-season climate table. No R needed for this tier. --dry-run / --limit for safe testing. Verified against the real ERA CSV (parses/dedups to 358 site-periods) and ruff clean.
Sammyjoseph999
force-pushed
the
feat/era-lte-tier1-110
branch
from
July 8, 2026 09:28
da1510b to
cfa63b9
Compare
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.
Adds the ERA LTE Tier-1 integration as a runnable, reviewable file (
examples/era_lte_tier1.py) instead of living only in the issue discussion. Relates to #110.What it does
Bridges the ERA LTEs dataset (ERAgriculture/LTEs) to this toolkit with no R required:
data/unique_ltes.csvregistry (LTE.ID, Site.ID, Year.start, Year.end, Latitude, Longitude).analyze_climate_statisticswith auto season detection per site and flattensseason_statisticsinto a tidy per-season climate table (rainfall total, rainy/dry days, mean temp, NDWS, WRSI).--dry-run(list sites, no fetch) and--limit Nfor safe testing.Verification
ruffclean.--dry-runagainst the real ERAunique_ltes.csv: parses/dedups to 358 unique site-periods and lists them correctly. (A full run fetches Earth Engine data per site, so--limitis provided for validation first.)Scope
This is Tier 1 (the pure-Python pass). Tier 2 — the yield comparison — needs a short R export of ERA's season windows + crop/yield from the
industrious_elephant.RDatatables, then feeds the adapter documented on #110. That stays as a workflow step; this PR just lands the runnable Tier-1 entry point underexamples/.