Dataset Viewer
Auto-converted to Parquet Duplicate
The dataset viewer is not available for this split.
Parquet error: Scan size limit exceeded: attempted to read 467104094 bytes, limit is 300000000 bytes Make sure that 1. the Parquet files contain a page index to enable random access without loading entire row groups2. otherwise use smaller row-group sizes when serializing the Parquet files
Error code:   TooBigContentError

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

AVIRIS-C California hyperspectral time series, multilabel land cover

Machine-learning-ready hyperspectral time series built from NASA/JPL AVIRIS-Classic L2 surface reflectance over California (flight lines 2008-2020). One sample is a fixed 600 m x 600 m window (32 x 32 pixels of 18.75 m) observed at 14 dates, with 155 cleaned spectral bands (from 224), a per-date quality mask, the acquisition date and flight line of each date, and multilabel land-cover annotations derived from the USDA NASS Cropland Data Layer (CDL): 12 fine classes plus other, given per date (CDL of the date's year) and per window. Raw CDL proportions are shipped as well. Spatial folds of 10 km blocks support leakage-safe cross-validation.

Samples 2034 windows x 14 dates = 28476 window-dates (28245 acquired, 24211 pass QC)
Cube per sample (T, B, H, W) = (14, 155, 32, 32), float16, reflectance 0-1, NaN = no data
Spectral range 434-2437 nm, ~10 nm sampling (see bands.csv)
Labels 13 classes, multilabel (presence = CDL proportion >= 10%), per date and per window
Splits 5 spatial folds (10 km blocks), fold_0=413, fold_1=402, fold_2=405, fold_3=398, fold_4=416 windows
Size 7.1 GB in 10 Parquet shards (zstd)
Region California, USA (none: 1698, Z4_SFBay_JasperRidge: 178, Z2_SantaBarbara: 85, Z3_Irvine: 52, Z5_Sierra_Merced: 21)

1. Structure

.
├── README.md                 # this card
├── bands.csv                 # 224 AVIRIS-C bands: wavelength, FWHM, kept flag, spike statistics
├── classes.csv               # 13 classes: CDL codes, window counts per fold
├── data/
│   └── fold_<k>-<i>-of-<n>.parquet   # one row = one window (cube + labels + per-date metadata)
├── metadata/
│   ├── windows.parquet|csv   # one row per window: location, zone, 10 km block, fold, window labels/proportions
│   ├── dates.parquet|csv     # one row per (window, date): date, flight line, QC flags, per-date labels/proportions
│   ├── cdl_by_year.parquet   # CDL counts of the 40 thematic groups + 13-class proportions per window and year 2008-2021
│   ├── cdl_groups.csv        # the 40 CDL groups, their CDL codes and names, and their class
│   ├── flight_lines.csv      # flight lines used (format, rotation, pixel size, ORNL file URL)
│   └── checks.json           # build checks (label statistics, fold balance, leakage, value ranges, NaN, spikes)
└── scripts/
    ├── load_example.py       # loading with `datasets`, masking, building a PyTorch-ready array
    └── sanity_check.py       # shapes, label counts, Ledoit-Wolf covariance per date (SPD test)

Columns of the main configuration (default, one row per window)

column type description
window_id int64 cell id gy * 20000 + gx on the 600 m grid aligned with the CDL 30 m grid (EPSG:5070)
fold int8 spatial fold 0-4 (10 km blocks)
zone string named box: hold-out boxes Z2_SantaBarbara (34.0-34.8 N, 120.5-119.2 W) and Z4_SFBay_JasperRidge (37.0-37.8 N, 122.6-121.8 W), study boxes Z1_Mojave, Z3_Irvine, Z5_Sierra_Merced, else none
block10km int64 10.2 km block id (a block is never split across folds)
lat, lon float32 window centre (WGS84)
x_min, y_max float64 upper-left corner in EPSG:5070 (window = 600 m, pixel = 18.75 m)
cube float16 (14, 155, 32, 32) reflectance (0-1); NaN = no data; padded dates are all-NaN
dates 14 x string acquisition dates YYYY-MM-DD, sorted; "" = padding (window with < 14 dates)
acquired 14 x bool date present
qc_ok 14 x bool date passes QC (see below)
flight_ids 14 x string AVIRIS-C flight line id (fYYMMDDtNNpNNrNN)
nan_frac 14 x float32 fraction of no-data pixels
n_ok_dates int8 number of QC-ok dates
labels_date int8 (14, 13) per-date multilabel: 1 present, 0 absent, -1 padded date
props_date float32 (14, 13) per-date CDL proportions (CDL year = acquisition year); NaN for padding
labels_window 13 x int8 window-level multilabel (see Labels)
props_window 13 x float32 window-level proportions

Class order everywhere: almond, shrubland, water, evergreen_forest, mixed_forest, grassland_pasture, barren, developed_high, developed_low, developed_medium, developed_open, grapes, other.

2. Acquisition and preprocessing

Imagery. AVIRIS-Classic L2 "calibrated reflectance" flight lines (NASA CMR collection C2711871294-ORNL_CLOUD, ORNL DAAC), 943 flight lines, dates 2008-06-11 to 2020-10-13 (acquisitions per year: 2008: 13, 2013: 5455, 2014: 7128, 2015: 7468, 2016: 1984, 2017: 1361, 2018: 3175, 2019: 924, 2020: 737). Only the pixel rows intersecting each window were read, with HTTP Range requests.

  1. Window grid. 600 m cells of a grid aligned on the native 30 m CDL grid (CONUS Albers, EPSG:5070), so that each window covers exactly 20 x 20 CDL pixels.
  2. Flight line choice. For each date, the flight line whose CMR footprint covers the largest part of the window (>= 85%).
  3. Georeferencing. The (sometimes 20-44 degree rotated) geotransform is read by GDAL from the ENVI header; the native pixels (14.8-17 m) are area-averaged onto the 32 x 32 window grid (rasterio.warp.reproject, average), no-data aware.
  4. Scaling. Integer products (2013-2015, reflectance x 10000) are divided by 10000; float products (2016-2020) are already 0-1. Values are stored as float16.
  5. Dates. Up to 14 dates per window, spread over the available acquisitions (farthest-point selection in time); failed reads were replaced by other dates when possible; windows with fewer dates are NaN-padded (171 windows).
  6. Bands. 155 of 224 bands are kept (see below).

Band cleaning. The base mask removes water-vapour absorption and detector-edge regions (366-414, 1303-1473, 1782-2028, 2447-2496 nm, 166 bands kept). A per-band spike statistic was then measured on the 24211 QC-ok window-dates: for the window-mean spectrum, the isolated-band deviation (peak or dip relative to both neighbours, within contiguous kept runs only), minus its temporal median over the window's dates (removing surface features such as the red edge), counts as a spike when larger than 10% of the band reflectance (floor 0.05). Bands whose spike rate exceeds 20 x the median rate (0.00060) are removed: 424, 938, 947, 1483, 1742, 2038, 2048, 2407, 2417 nm (9 bands, 157 left). Finally the wings of the 940 nm water-vapour feature, which keep atmospheric residuals once 937/947 nm are gone, are removed explicitly (928, 957 nm, range 920-965 nm), leaving 155 bands. Column removed_by of bands.csv gives the reason (base_mask, spike, water_vapour_940). bands.csv gives, for all 224 bands, the median wavelength and FWHM over the flight-line headers, their min/max (wavelengths differ by at most 1.7 nm between flights; bands are not resampled), kept_base, kept, release_index (position in cube, -1 if dropped), spike rates before/after cleaning, the NaN rate and the share of out-of-range values.

Quality control (per date, heuristic, not validated). A date is qc_ok unless: more than 20% no-data pixels (1155 window-dates), probable snow (NDSI(560, 1650 nm) > 0.4 and blue > 0.15, 525), very bright scene (blue > 0.3 and NIR > 0.4, 876), or more than half of the base-mask bands with mean <= 0.0005 (1918). Flags are in metadata/dates.*.

Ground truth. USDA NASS Cropland Data Layer 2008-2021 (30 m), read from Microsoft Planetary Computer (collection usda-cdl). CDL codes are grouped into 40 thematic groups (metadata/cdl_groups.csv), then into 12 fine classes + other. Codes outside the groups (background, clouds/no data, non-ag/undefined) are excluded from the denominator; every (window, year) used has at least 320 of 400 mapped pixels.

3. Labels

  • Per date (labels_date): class present if its proportion in the CDL of the acquisition year is >= 10%. Dates failing QC keep their label (QC concerns the image only).
  • Per window (labels_window): proportions averaged over the distinct CDL years of the window's acquisition dates (each year counted once), thresholded at 10%. This definition is a design choice; alternatives can be rebuilt from props_date or metadata/cdl_by_year.parquet (e.g. union or majority of the per-date labels).
  • Labels per window: 1: 333, 2: 876, 3: 670, 4: 147, 5: 8 (number of classes: windows).
id name description CDL codes fold 0 fold 1 fold 2 fold 3 fold 4 windows window-dates
0 almond Almonds 75 33 33 32 32 32 162 2249
1 shrubland Shrubland 64 152 119 113 119 119 117 587 8219
2 water Water (open water, aquaculture) 83 92 111 39 39 39 39 39 195 2728
3 evergreen_forest Evergreen forest 142 74 82 82 82 82 402 5543
4 mixed_forest Mixed forest 143 38 42 42 42 42 206 2940
5 grassland_pasture Grassland / pasture 58 59 60 176 77 75 74 74 76 376 5446
6 barren Barren 65 131 29 30 30 29 30 148 2108
7 developed_high Developed, high intensity 124 48 50 50 51 50 249 3487
8 developed_low Developed, low intensity 122 134 133 133 134 122 656 9157
9 developed_medium Developed, medium intensity 123 131 125 130 133 132 651 9029
10 developed_open Developed, open space 82 121 116 122 122 117 122 599 8380
11 grapes Grapes (vineyards) 69 39 39 38 39 39 194 2762
12 other Other: all remaining mapped CDL groups (crops, other orchards, deciduous forest, wetlands, snow/ice) 1 2 3 4 5 6 10 11 12 13 14 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 61 63 66 67 68 70 71 72 74 76 77 87 112 141 190 195 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 254 60 58 60 60 60 298 4390

Counts are windows where the class is present at window level, and window-dates (all acquired dates) where it is present at date level.

4. Splits

block10km groups the 600 m windows into 10.2 km x 10.2 km blocks; whole blocks are assigned to 5 folds (greedy, balancing every class and the number of windows). No block and no window is in two folds. Configurations:

  • default: splits fold_0 ... fold_4 (5-fold spatial cross-validation, recommended);
  • train_val_test: train folds 1-3, validation fold 0, test fold 4. It follows the rule used for cross-validation: with fold k as test, fold (k + 1) mod 5 is the validation set and the three others are the training set (here k = 4);
  • windows, dates, cdl_by_year: metadata tables only (no cubes, single split train holding all rows), fast to load.

For a geographic-transfer test, hold out zone == "Z2_SantaBarbara" or "Z4_SFBay_JasperRidge" and train on windows far away (e.g. > 25 km).

5. Loading

from datasets import load_dataset
import numpy as np

ds = load_dataset("musmb/aviris-ca-multilabel", split="fold_0").with_format("numpy")   # or a local path
s = ds[0]
cube = s["cube"]            # (14, 155, 32, 32) reflectance, NaN = no data
ok = s["qc_ok"]             # (14,) bool
y_win = s["labels_window"]  # (13,) multilabel
y_t = s["labels_date"]      # (14, 13), -1 for padded dates
x = cube[ok]                # valid dates only

meta = load_dataset("musmb/aviris-ca-multilabel", "windows", split="train").to_pandas()   # no cubes

Streaming (streaming=True) avoids downloading all shards. Each cube is 4.4 MB as float16; with_format("numpy") returns float32 arrays (9 MB per sample in memory). scripts/load_example.py and scripts/sanity_check.py give complete examples (the latter computes Ledoit-Wolf spectral covariances per date and checks that they are SPD).

6. Known issues

  • Labels come from the CDL, a 30 m classifier product, not from field data; subtypes of developed land and natural vegetation (shrubland, grassland, forests) are noisy, and a 30 m map describes an 18.75 m pixel only approximately. The 10 % threshold makes labels sensitive to small changes: in 766 windows at least one class flips between dates (mostly near-threshold proportions, partly real change).
  • QC thresholds are heuristic. Some QC-ok dates still contain out-of-range values in kept bands (641 window-dates with a value outside [-0.2, 2]; isolated values up to 10^3-10^4, mostly in the SWIR 2100-2400 nm bands, on a few 2014 and 2018 flight lines): see outlier_frac in metadata/dates.* and frac_outside_m0.2_2_qc_ok in bands.csv. Clip (e.g. to [-0.05, 1.5]) or mask such pixels before computing statistics. Slightly negative values (1.2% of the values of kept bands on QC-ok dates) are kept as delivered.
  • Residual date-specific artefacts remain in kept bands at lower rates (spike rate of the kept bands recomputed on the final band set: max 0.027, at 434 nm: 0.027, 2427 nm: 0.012, 2437 nm: 0.012; threshold 0.0120). Moderate spikes remain near 2350-2370 nm (mostly the 2020-10-13 lines). The spike rule depends on its factor: x10: 152 bands; x15: 154 bands; x20: 157 bands; x25: 159 bands; x30: 160 bands (before the explicit 940 nm removal).
  • Wavelength calibration differs slightly between flight lines (<= 1.7 nm); bands are not resampled.
  • Irregular time series: dates are concentrated in 2013-2015, gaps of several years; give the dates to the model. Acquisition geometry, season, atmosphere and native resolution vary.
  • Spatial autocorrelation: windows of neighbouring blocks in different folds can be adjacent (1.0% of windows have a window of another fold at 600 m, 2.8% within 1 km; median distance to the nearest window of another fold 4.8 km). 10 km folds therefore overestimate geographic generalisation (hold-out zones give lower scores in the source benchmark).
  • All windows are in California; transfer elsewhere is untested.
  • Spectral covariance of one date is ill-conditioned (n = 1024 pixels for p = 155 correlated bands): use shrinkage (e.g. Ledoit-Wolf).

7. Licence

This dataset is released under the Creative Commons Attribution 4.0 International licence (CC BY 4.0, see LICENSE.md). It is derived from AVIRIS-Classic L2 reflectance (NASA/JPL, distributed by the ORNL DAAC) and from the USDA NASS Cropland Data Layer; reuse must credit this dataset and these original data providers (see LICENSE.md and section 9).

8. Citation

@misc{aviris_ca_multilabel,
  title  = {AVIRIS-C California hyperspectral time series, multilabel land cover},
  author = {TODO},
  year   = {TODO},
  howpublished = {Hugging Face dataset},
  note   = {TODO: DOI / paper}
}

9. Acknowledgements

  • AVIRIS-Classic data: NASA Jet Propulsion Laboratory, distributed by the ORNL DAAC (NASA Earthdata).
  • USDA National Agricultural Statistics Service Cropland Data Layer, accessed through the Microsoft Planetary Computer.
  • Build code: see the accompanying repository (aviris-ml build), which rebuilds this release from the original archives.
Downloads last month
49