Repository navigation
GloCAB, ECAAS Kenya and Zambia; India, Rwanda and South Africa fixes - #351
Conversation
|
Woops, this was meant to approve fiboa/fiboa.github.io#37 - I haven't looked at this PR yet. |
There was a problem hiding this comment.
🟡 Changes recommended
Changes are required because the conversion test omits several promised mapped fields, allowing schema or column regressions to pass undetected.
1 open issue
What changed in this PR
Adds new GloCAB and ECAAS research dataset converters while updating existing India, Rwanda, South Africa Fusion, and AI4SF converters for catalog publication and validation.
Changes:
- Added GloCAB yearly variants and Kenya/Zambia ECAAS converters with source attributes, HCAT mappings, dates, and fixtures.
- Updated India 10K source handling and metadata, Rwanda’s public source, AI4SF determination method, and South Africa Fusion HCAT support.
- Expanded conversion tests, research-value checks, SPDX license validation, and changelog entries.
| File | Description |
|---|---|
| tests/test_research_values.py | Updated as part of this pull request. |
| tests/test_converters.py | Updated as part of this pull request. |
| tests/test_convert.py | Updated as part of this pull request. |
| tests/data-files/convert/zm_ecaas/ecaas_zambia_geojson.geojson | Updated as part of this pull request. |
| tests/data-files/convert/zm_ecaas/crop.csv | Updated as part of this pull request. |
| tests/data-files/convert/za_fusion/crop.csv | Updated as part of this pull request. |
| tests/data-files/convert/ke_ecaas/ecaas_geojson_kenya.geojson | Updated as part of this pull request. |
| tests/data-files/convert/ke_ecaas/crop.csv | Updated as part of this pull request. |
| tests/data-files/convert/india_10k/india_10k_fields.prj | Updated as part of this pull request. |
| tests/data-files/convert/india_10k/india_10k_fields.cpg | Updated as part of this pull request. |
| fiboa_cli/datasets/zm_ecaas.py | Updated as part of this pull request. |
| fiboa_cli/datasets/za_fusion.py | Updated as part of this pull request. |
| fiboa_cli/datasets/rw_rwanda.py | Updated as part of this pull request. |
| fiboa_cli/datasets/ke_ecaas.py | Updated as part of this pull request. |
| fiboa_cli/datasets/india_10k.py | Updated as part of this pull request. |
| fiboa_cli/datasets/glocab.py | Updated as part of this pull request. |
| fiboa_cli/datasets/commons/ecaas.py | Updated as part of this pull request. |
| fiboa_cli/datasets/ai4sf.py | Updated as part of this pull request. |
| CHANGELOG.md | Updated as part of this pull request. |
Review effort: Lite
ivorbosloper
left a comment
There was a problem hiding this comment.
Looks very well, tested and with a fix
|
Thanks, looks good! Two of the overrides work around vecorel-cli gaps, which I've fixed in vecorel/cli#66:
I'm working to get vecorel-cli updated so that we can simplify this PR. One question on GloCAB: it's one dataset, but the converter splits it into five yearly editions by mapping date. Since every field already carries its region's mapping month in Minor: |
|
Thanks @m-mohr!
One vecorel-cli thing turned up while rebuilding: |
|
Thanks @hannah-rae! a1562d2 looks good, and keeping I'll release vecorel-cli in the next few days, with #66 and a stable column order (columns will keep the order of the column mapping; the same set-based pattern is also in |
m-mohr
left a comment
There was a problem hiding this comment.
@hannah-rae I noticed one more thing: Could we keep the India converter's id as in_10k? Converter ids concistently use the ISO country code as prefix, and the id becomes the collection id of already published data. What's the reason for renaming it?
…uth Africa converters Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
a1562d2 to
7defa27
Compare
|
vecorel-cli 0.4.3 is released and fiboa-cli The only open point is the India converter's id: could we keep it as |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Agreed, reverted to |

Converters for the research datasets of fieldsoftheworld/harmonized-field-data-catalog#32, and fixes to the existing ones that catalog will publish.
Depends on fiboa/fiboa.github.io#37.
za_fusion,ke_ecaasandzm_ecaasread crop tables that PR adds. Merge it first.New converters
glocabThe University of Maryland's 190,832 hand-digitised GloCAB boundaries, covering 22 regions in Brazil, Canada, Russia, Ukraine and the USA.
determination:datetime.no_areamarks polygons that enclose several fields too small to identify.CropTypeis kept aspredominant_crop. It is the region's predominant crop, the same for every field in a region, so it is not presented ascrop:name.ke_ecaas,zm_ecaasCrop-cut farm polygons from Pula's Bird's-Eye project (ECAAS): 1,349 plots in Kenya and 2,711 in Zambia.
crop:namenext to HCAT. A downstream language model will be trained on them.Changes
za_fusion: maps its five classes to HCAT with acrop:code_list. Before this, its output did not validate (crop:code_listmissing).india_10k:india_10k, matching the module name (it wasin_10k).rw_rwanda: reads the openly published polygons on Source Cooperative instead of requiring-i.ai4sf:determination:methodis nowmanual; the paper says the fields were digitised by hand.GPL-2.0-or-laterpasses.Checks
ftw/*-mlfiles: India 6,495/1,510/2,008 and Rwanda 1,223/309.🤖 Generated with Claude Code