Skip to content

US-CA SCM: all nine editions, 2014-2024 - #340

Merged
m-mohr merged 3 commits into
mainfrom
us-ca-scm-editions
Oct 7, 2026
Merged

m-mohr merged 3 commits into
mainfrom
us-ca-scm-editions

Conversation

@ivorbosloper

@ivorbosloper ivorbosloper commented Oct 6, 2026 •

Copy link
Copy Markdown
Collaborator

Update us_ca_scm, support 2014-2024. The code includes quite some variability handling because the editions are slightly different.

The crop column differs per schema generation: MAIN_CROP from 2019,
the main-season CROPTYP2 in 2016 and 2018, and in 2014 only a name,
mapped with the name/code pairs of 2016. Provider is DWR, the date
1 July of the edition year.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ivorbosloper
ivorbosloper requested a review from m-mohr October 6, 2026 22:32
@m-mohr

m-mohr commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

@ivorbosloper Changelog is missing. Otherwise seems good.

What's the catch with the hardcoded mapping? Don't we usually use CSV files or so for this?

DWR maps the whole state. Its urban mask (U, or **** in 2020-2022) is
some 2 million ha in county-sized polygons, the largest above the
fiboa area maximum; UL2 and NR are urban landscape and riparian
vegetation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ntry

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ivorbosloper

ivorbosloper commented Oct 7, 2026 •

Copy link
Copy Markdown
Collaborator Author

+Changelog. The 2014 mapping is now a CSV (data-files/us_ca_scm_2014.csv). It cannot come from scm.csv: 2014 uses its own short names ("Grapes", "Idle", "Mixed Pasture") so this is a fix

@m-mohr
m-mohr merged commit 7d2de82 into main Oct 7, 2026
7 checks passed
@m-mohr
m-mohr deleted the us-ca-scm-editions branch October 7, 2026 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants