# SSL4EO-L: Landsat Self-Supervised Pretraining Dataset (TM, ETM+, OLI/TIRS, 5M patches)

## Facts

- Provider: Stewart, Lehmann, Corley, Wang et al. (TorchGeo; UIUC, TUM, Microsoft AI for Good)
- License: CC0-1.0 (https://arxiv.org/html/2306.09424)
- Size: 47 files
- Format: CSV (in sampled files)
- Stored at: Hugging Face, https://huggingface.co/datasets/torchgeo/ssl4eo_l
- Access: public, readable without an account
- DOI: https://doi.org/10.48550/arXiv.2306.09424
- Category: Earth Observation & Geospatial
- Source: https://torchgeo.readthedocs.io/
- Page: https://scigantic.com/archive/9969205b-b917-5a8a-956a-5ef6abaa7577
- Keywords: Earth Observation & Geospatial, satellite imagery, CSV, Hugging Face

## About

SSL4EO-L is the first large self-supervised pretraining corpus for the Landsat family, released with the NeurIPS 2023 Datasets and Benchmarks paper by Stewart et al. Patches are sampled around the 10,000 most populous cities with a 50 km Gaussian, non-overlapping, at 250,000 locations, each imaged in four seasons, giving 1 million unlabeled 264x264 pixel patches (7.92 km at 30 m) per sensor and product and 5 million in total. Thermal and panchromatic bands are resampled to 30 m so every patch is one multi-band file. Five products are provided as separate top-level folders: tm_toa (Landsat 4/5 TM top of atmosphere), etm_toa and etm_sr (Landsat 7 ETM+ TOA and surface reflectance), oli_tirs_toa and oli_sr (Landsat 8/9 OLI/TIRS), plus sampled_locations.csv with the patch centres. Data were exported from Google Earth Engine; about 1.7 TB. Load with torchgeo.datasets.SSL4EOL. The paper states that all datasets it creates are released under CC0 1.0 and that the source USGS Landsat data are public domain; cite Stewart et al. 2023.

## Load the data

```python
import pandas as pd
df = pd.read_csv("hf://datasets/torchgeo/ssl4eo_l/sampled_locations.csv")
df.head()
```

## Data structure

File types in sampled files: CSV

Example file: `sampled_locations.csv`

## Open it

- In a hosted notebook with the data mounted: https://scigantic.com/archive/9969205b-b917-5a8a-956a-5ef6abaa7577
- Full record as JSON (schema card included): https://api.scigantic.com/api/archives/9969205b-b917-5a8a-956a-5ef6abaa7577
- Over MCP: `get_schema_card` with id `9969205b-b917-5a8a-956a-5ef6abaa7577` at https://api.scigantic.com/mcp

## Related topics

- [Earth Observation & Geospatial datasets](https://scigantic.com/topics/earth-observation-and-geospatial)
- [CSV datasets](https://scigantic.com/topics/csv)
- [Satellite imagery datasets](https://scigantic.com/topics/satellite-imagery)
