Skip to content

BE-WAL: the crops were in the table all along, under their names - #259

Open
ivorbosloper wants to merge 1 commit into
mainfrom
split/be_wal
Open

BE-WAL: the crops were in the table all along, under their names#259
ivorbosloper wants to merge 1 commit into
mainfrom
split/be_wal

Conversation

@ivorbosloper

@ivorbosloper ivorbosloper commented Sep 11, 2026

Copy link
Copy Markdown
Collaborator

23,216 of 341,968 fields (6.79%, 59 codes) carried no HCAT code — Jachère, Luzerne, Trèfles, Triticale d'hiver. It looks like missing mappings; it is not.

be_wal_all_years.csv leaves original_code empty in 208 of its 298 rows and identifies the crop by name there, while the converter matched on the code alone. ec_mapping_name_fallback matches on the name where the code has no row, and only against rows the table itself leaves uncoded, so a deliberately unmapped code stays unmapped. Off by default, on for be_wal — the six other tables checked have no uncoded row.

Names are stripped on both sides ('Luzerne lupuline '), which is the difference between 0.06% and 0.000%. Result: 6.79% → 0.000%, nothing written by hand.

🤖 Generated with Claude Code

https://claude.ai/code/session_01DVx9uQV2QPM8ecPAY3ZjXG

23,216 of the collection's 341,968 fields — 6.79%, over 59 codes — carried no
HCAT code: Jachère, Luzerne, Trèfles, Triticale d'hiver and the cereal mixes
among them. They were not missing from EuroCrops' table. That table leaves
original_code empty in 208 of its 298 rows and identifies the crop by name
there, and the converter matched on the code alone.

`ec_mapping_name_fallback` matches on the crop name where the code has no row,
and only against rows the table itself leaves uncoded, so a code that is
deliberately unmapped stays unmapped. It is off by default and on for be_wal,
the only table known to be keyed this way — checked against de.csv,
de_nrw_2021.csv, be_vlg_2021.csv, si_2021.csv, dk_2019.csv, lv_2021.csv and
fr_2018.csv, none of which has an uncoded row.

Names are stripped on both sides: three Walloon crops are spelled with a
trailing space in the table, which is the difference between 0.06% and 0.000%.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DVx9uQV2QPM8ecPAY3ZjXG
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.

1 participant