Datasets:
|
Download data/README.md from AlecAlameddine/protostar-climate: direct link, hf CLI and curl.
- Browser
- Download file 4.84 kB
-
https://huggingface.co/datasets/AlecAlameddine/protostar-climate/resolve/main/data/README.md
- Command line
-
hf download hf://datasets/AlecAlameddine/protostar-climate/data/README.md
-
curl -L -o README.md https://huggingface.co/datasets/AlecAlameddine/protostar-climate/resolve/main/data/README.md
4.84 kB
| # Data card: `data/` | |
| The data the code in `code/` reads, exactly as used. Together with `code/` it reproduces | |
| `submission.csv` (`make all`). Nothing here is dated after 2018-12-31; the loaders assert it. | |
| ## Files | |
| | File | What it holds | Source | License | Years covered | How we prepared it | Used for | | |
| |---|---|---|---|---|---|---| | |
| | `raw/annual_indices.parquet` | One row per city and year: yearly averages, totals, extremes, `cdd`, and `Miss *` counts of missing days (28,052 rows, 210 cities) | [Challenge dataset](https://huggingface.co/datasets/CMU-OSPO/protostar-climate-train-to-2018), subset `annual_indices`, commit `bbbdebdab2a18e00f97ef87bd3f35a71e222180b` | CC0-1.0 | 1851–2018 | **Unmodified copy** (sha256 `0b5f5fa9…e411`, pinned in `code/protostar/common.py`). In memory: ±inf → missing; a year is valid for a metric if each variable it uses misses ≤ 10 days (`code/protostar/data.py`) | **Forecast input** (the only one), backtests, audit | | |
| | `raw/city_info.parquet` | Stations joined for each city and the period used from each (461 rows) | Same dataset, subset `city_info`, same commit | CC0-1.0 | station dates 1851–2018 | Unmodified copy (sha256 `6b71424c…955d`) | Audit only (station names); the city list for `check_submission.py` | | |
| | `raw/coverage_and_stations.parquet` | Per city and year: days with both temperatures, station segment, station changes (28,052 rows) | Same dataset, subset `coverage_and_stations`, same commit | CC0-1.0 | 1851–2018 | Unmodified copy (sha256 `d52dfcac…07e6`) | Audit only (station-change analysis) | | |
| | `external/ghcnd/<ID>.csv` (35 files) | Daily `tmax`, `tmin` (°F) and `prcp` (inches) for the 35 cities with ≥ 3 invalid years in 1989–2018: 366,245 station-days, columns `station,date,tmax,tmin,prcp` | NOAA GHCN-Daily through the [NCEI Access Data Service](https://www.ncei.noaa.gov/access/services/data/v1) (`dataset=daily-summaries`, `units=standard`), station = the city's `ID`; retrieved 2026-11-10 | U.S. Government work, public domain; cite Menne et al. (2012), doi:10.7289/V5D21VHZ | 1975-01-01 to **2018-12-31** (every request carries `endDate=2018-12-31`; checked before writing and on every read) | Values with a GHCN-D quality flag dropped (listed in `QC_DROPPED.csv`); otherwise as returned | **Analysis only**: cross-check, gap-fill experiment, validation of the fallback (`code/protostar/ghcnd.py`). Not read by the forecasting code | | |
| | `external/ghcnd/MANIFEST.csv` | Per station: request URL, retrieval time, rows, first/last date, sha256 | Written by `ghcnd.py` at download | — | — | — | Integrity and data-rule check on every read | | |
| | `external/ghcnd/QC_DROPPED.csv` | The 1,455 quality-flagged values removed from the extract | Same service (`includeAttributes=true`) | as above | 1975–2018 | — | Analysis only | | |
| Station latitude/longitude (used to find each city's nearest cities) are the `Lat`/`Lon` columns | |
| of `annual_indices`; no geocoding service or other location source was used. | |
| ## Not uploaded (download instead) | |
| | Source | Exact version | How to download | Why not uploaded | | |
| |---|---|---|---| | |
| | Challenge dataset, subset `daily` (10,245,754 rows: daily `tmax`, `tmin`, `prcp`, 1851–2018) | commit `bbbdebdab2a18e00f97ef87bd3f35a71e222180b`, sha256 `1a857910…4361` | `python code/fetch_data.py` (downloads to `data/raw/daily.parquet` and checks the sha256) | 49 MB copy of the organizers' own file; used only by the audit to recompute the yearly values (not a forecast input) | | |
| ## How the files fit together | |
| - **Join key:** `ID` (the city's current GHCN station ID) = `city_id` in `submission.csv`. | |
| - **Units:** °F, inches, °F-days, as published; no conversions. | |
| - **Known limitations:** 9 city–metrics have fewer than 10 valid years in 1989–2018 (no baseline, | |
| not scored); 32 documented station changes fall in 1989–2018 and can shift a record; years | |
| with 1–10 missing days pass the validity rule but their totals (precipitation, CDD) read | |
| slightly low. Details and counts: `reports/audit/AUDIT.md`. NOAA's file under a city's `ID` | |
| covers only the latest station of the city's threaded record and, at 11 of 35 stations, holds | |
| other observations than the challenge record in some years: `reports/ghcnd/GHCND.md`. | |
| ## Data rule check | |
| - [x] Every file marked "Forecast input" is weather data up to 2018-12-31, or data that does not respond to the weather. (The only forecast input is `raw/annual_indices.parquet`.) | |
| - [x] Files with 2019–2025 data that responds to the weather are marked "Analysis only" and are not read by the forecasting code. (There are none: no file here contains any data after 2018-12-31.) | |
| - [x] Enforced in code: `code/protostar/data.py::assert_no_leak` runs in every loader and in `predict()`; `python -m protostar.tests` includes the leak and no-peeking tests. | |