Library / Skill
Calculate crop yield gaps between actual and potential or water-limited yields
baltor_crop_yield_gap
Calculate crop yield gaps between actual and potential or water-limited yields for zones of one crop, standardizing yield units and grain moisture, weighting by harvested area and reporting the exploitable gap at a declared attainable fraction.
LICENSE1.0 KBSKILL.md4.8 KBcontracts/input.schema.json4.5 KBcontracts/output.schema.json14.0 KBexamples/example.expected.json3.9 KBexamples/example.input.json1.4 KBreferences/provenance.json5.2 KBscripts/tool.py10.6 KBverification/test_tool.py11.7 KB
Full files in your harness.
What it takes and gives
- Command
python3 -B scripts/tool.py < examples/example.input.json- Input fields
- crop_id, standard_moisture_pct, attainable_fraction, zones
- Test
python3 -B -m unittest discover -s verification -p 'test_*.py' -v- Files
- SKILL.md, contracts/input.schema.json, contracts/output.schema.json, scripts/tool.py
- Placed for
- OpenCode
Limits and scope
- Limits
- This is a supporting calculation for SDG target 2.3 on caller-supplied yields and benchmarks, not a crop model or an official productivity estimate. It does not simulate potential or water-limited yields, choose the attainable fraction, check that zones, years and cultivars match, or convert bushels, which need a crop-specific weight.
Details
- Kind
- Skill
- Licence
- MIT
- Declared effects
- reads files, runs commands
- Placed for
- OpenCode
- Source
- docs/architecture/NORTH-STAR.md
- Size
- 9 files, 57.0 KB
- Identity
baltor_crop_yield_gap- Version
95a3cdceab951c6ac35feed8aedcd7a5a4d544e89e01a63c69d4ea6622d0ae0f
The version is the SHA-256 of the item your harness downloads; every file in it names its own checksum.
Where it is shown
- Calculators for public statisticsDeterministic skills
Related components
Something wrong with this item, its rights or its safety? Report it on the support page, or from your harness after a download.