Update README
Browse files
README.md
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc-by-4.0
|
| 3 |
+
---
|
| 4 |
+
|
| 5 |
+
# ACYD: Agricultural Crop Yield Dataset
|
| 6 |
+
|
| 7 |
+
Weekly, admin-2 level covariates for **Argentina, Brazil, and Mexico** (1979–2024), designed for crop yield prediction and benchmarking.
|
| 8 |
+
|
| 9 |
+
**Code & processing pipeline**: https://github.com/Neehan/amazing-crop-yield-datasets
|
| 10 |
+
|
| 11 |
+
The same scripts also support USA — only the `--country` flag changes. USA data is not included in this release but can be reproduced from the GitHub repo.
|
| 12 |
+
|
| 13 |
+
## Files
|
| 14 |
+
|
| 15 |
+
This repository contains three directories per country (`argentina/`, `brazil/`, `mexico/`):
|
| 16 |
+
|
| 17 |
+
- `raw/` — direct pulls from source datasets (AgERA5, ERA5, NOAA AVHRR/VIIRS, SoilGrids, GADM, government yield data)
|
| 18 |
+
- `final/` — processed CSVs ready for ML, one file per variable, aggregated to admin-2 units with cropland-weighted averages on boundaries
|
| 19 |
+
- `gadm/` — GADM administrative boundaries
|
| 20 |
+
|
| 21 |
+
`intermediate/` files are NOT included — they are regenerable from `raw/` via the processing scripts in the GitHub repo.
|
| 22 |
+
|
| 23 |
+
## Variables
|
| 24 |
+
|
| 25 |
+
### Weather
|
| 26 |
+
Temperature 2m max/min · wind speed 10m · reference evapotranspiration (RefET) · vapor pressure · snow water equivalent · solar radiation · precipitation.
|
| 27 |
+
|
| 28 |
+
**Source**: AG-ERA5 (1979–2024), collected daily and averaged weekly. HYDE-3.5 cropland mask applied within admin boundaries per year; values are weighted averages over cropland fraction.
|
| 29 |
+
|
| 30 |
+
### Land Surface
|
| 31 |
+
LAI Low (crops, grass, shrubs) · LAI High (forests, woody vegetation) · NDVI.
|
| 32 |
+
|
| 33 |
+
**Source**:
|
| 34 |
+
- LAI: ERA5 Landscape Reanalysis, weekly average.
|
| 35 |
+
- NDVI: NOAA AVHRR Climate Data Record (1982–2013) and NOAA VIIRS Climate Data Record (2014+).
|
| 36 |
+
|
| 37 |
+
LAI has no missing values. NDVI has missing weeks (especially 1994 and earlier) — kept as NaN.
|
| 38 |
+
|
| 39 |
+
### Soil
|
| 40 |
+
Bulk density · CEC · clay · coarse fragments · nitrogen · organic carbon density · organic carbon content · pH (H₂O) · sand · silt.
|
| 41 |
+
|
| 42 |
+
**Source**: SoilGrids / ISRIC (static, published 2020). Aggregated at admin-2 (no cropland mask).
|
| 43 |
+
|
| 44 |
+
## Crops Covered
|
| 45 |
+
|
| 46 |
+
- **Argentina** (MAGyP): corn, soybean (total + 1st/2nd cycle), sunflower, wheat
|
| 47 |
+
- **Brazil** (IBGE): corn, wheat, soybean, rice, beans, sugarcane, cotton, sunflower, sorghum, oats, barley, rye, triticale, potato, sweet_potato, cassava, tomato, onion, garlic, peanut, tobacco, watermelon, melon, pineapple, castor, jute, flax, ramie, mallow, pea, fava, alfalfa, sugar_cane_forage
|
| 48 |
+
- **Mexico** (SIAP, with `_irrigated` / `_rainfed` variants): corn, soybean, wheat, sorghum, sugarcane, tomato, beans, barley
|
| 49 |
+
|
| 50 |
+
## Geography
|
| 51 |
+
|
| 52 |
+
- **Argentina**: 495 weather depts / 483 land surface / 500 soil / 181–296 yield depts
|
| 53 |
+
- **Brazil**: admin-2 (município) level
|
| 54 |
+
- **Mexico**: admin-2 (municipio) level
|
| 55 |
+
|
| 56 |
+
## Time Span
|
| 57 |
+
|
| 58 |
+
- Weather, LAI: 1979–2024
|
| 59 |
+
- NDVI: 1982–2024
|
| 60 |
+
- Crop yields: 1970–2025 (varies by crop/country)
|
| 61 |
+
- Soil: static (2020)
|
| 62 |
+
|
| 63 |
+
## Reproducing
|
| 64 |
+
|
| 65 |
+
GitHub repo has the full pipeline: download → standardize to NetCDF → spatial aggregation with HYDE cropland mask → admin-2 weekly CSV. Key scripts:
|
| 66 |
+
|
| 67 |
+
- `cli/download_*.py` — download raw data
|
| 68 |
+
- `cli/process_*.py` — produce admin-2 CSVs
|
| 69 |
+
- `process_all_data.sh` — end-to-end pipeline
|
| 70 |
+
|
| 71 |
+
## Licenses
|
| 72 |
+
|
| 73 |
+
Preprocessing code is MIT. Underlying data retains original licenses:
|
| 74 |
+
|
| 75 |
+
- ERA5 / AgERA5: Copernicus (CC BY 4.0 equivalent)
|
| 76 |
+
- NOAA AVHRR / VIIRS NDVI: Public Domain (U.S. Government work)
|
| 77 |
+
- HYDE 3.5 Cropland: CC BY 4.0
|
| 78 |
+
- IBGE (Brazil yields): CC BY 3.0
|
| 79 |
+
- MAGyP (Argentina yields): CC BY 4.0
|
| 80 |
+
- SIAP (Mexico yields): public, check source
|
| 81 |
+
- FAO (if included): CC BY-NC-SA 3.0
|