Datasets:
PASTIS-1m: 1 m crop labels for PASTIS
PASTIS-1m adds 1 m semantic labels to PASTIS.
PASTIS gives its labels at 10 m, the resolution of Sentinel-2, but it makes them from vector parcels: the 2019 French Registre Parcellaire Graphique (RPG). We rasterize the same RPG parcels at 1 m, on a grid that is aligned with the 10 m Sentinel-2 grid.
We made PASTIS-1m for the paper MOSS: Generative Super-Resolved Semantic Segmentation from Satellite Image Time Series (paper: arXiv link coming soon; code: link coming soon; see Citation). For future work, we also provide the radar (Sentinel-1) time series of PASTIS-R and the SPOT 6-7 images of PASTIS-HD. If you use them, please cite the corresponding papers (see Citation).
The labels of test patch 40470 (1.28 km Γ 1.28 km): the original PASTIS labels at 10 m and the PASTIS-1m labels at 1 m.
Content
PASTIS provides semantic segmentation labels for crop mapping on 2,433 patches of 1.28 km Γ 1.28 km in France, in 5 folds. In MOSS, we train on folds 1 to 3, validate on fold 4 and test on fold 5. Each patch has:
- PASTIS-1m labels (added):
TARGET_1M/HRMASK_<id>.npy,(1280, 1280)uint16, 1 m. - PASTIS labels:
ANNOTATIONS/TARGET_<id>.npy,(3, 128, 128)uint8, 10 m; channel 0 is the semantic class.ANNOTATIONS/ParcelIDs_<id>.npygives the RPG parcel ID of each 10 m pixel. - Sentinel-2:
DATA_S2/S2_<id>.npy,(T, 10, 128, 128)int16, 38 to 61 dates from 2018-09 to 2019-10, bands B2, B3, B4, B5, B6, B7, B8, B8A, B11 and B12 (PASTIS). - Sentinel-1:
DATA_S1A/S1A_<id>.npyandDATA_S1D/S1D_<id>.npy,(T, 3, 128, 128)float16, about 70 ascending and 70 descending dates, VV, VH and VV/VH (PASTIS-R). - SPOT 6-7:
DATA_SPOT/PASTIS_SPOT6_RVB_1M00_2019/SPOT6_RVB_1M00_2019_<id>.tif,(3, 1280, 1280)uint8, RGB image of 2019 resampled from 1.5 m to 1 m, on the same grid as the PASTIS-1m labels (PASTIS-HD).
The 20 classes of PASTIS and PASTIS-1m
| Value | Class |
|---|---|
| 0 | Background |
| 1 | Meadow |
| 2 | Soft winter wheat |
| 3 | Corn |
| 4 | Winter barley |
| 5 | Winter rapeseed |
| 6 | Spring barley |
| 7 | Sunflower |
| 8 | Grapevine |
| 9 | Beet |
| 10 | Winter triticale |
| 11 | Winter durum wheat |
| 12 | Fruits, vegetables, flowers |
| 13 | Potatoes |
| 14 | Leguminous fodder |
| 15 | Soybeans |
| 16 | Orchard |
| 17 | Mixed cereal |
| 18 | Sorghum |
| 19 | Void (parcels mostly outside the patch; not evaluated) |
How we made the 1 m labels
For each patch, we get the RPG 2019 parcels from the IGN API Carto and give each parcel its PASTIS class, through the PASTIS parcel IDs. We transform the parcels to the UTM zone of the Sentinel-2 tile and rasterize them on the footprint of the patch at 1 m, so that each 10 m pixel is a block of 10 Γ 10 label pixels.
Missing patch
We could not retrieve the parcels of one training patch (ID 20296, fold 3) because of an error of the RPG API. This
patch has no 1 m label map, and we exclude it. Its time series are in bugged_patch/, not in the DATA_* folders.
As this patch belongs to a training fold, the validation and test folds are the same as in PASTIS.
As in PASTIS-HD, DATA_S2, DATA_S1A and DATA_S1D also contain 35 unlabelled patches that metadata.geojson
does not list. PASTIS-HD does not use them, and loaders that start from metadata.geojson do not read them.
File structure
βββ metadata.geojson # one feature per patch: footprint (EPSG:2154), ID_PATCH, Fold, TILE, dates-S2, dates-S1A, dates-S1D, ...
βββ NORM_S2_patch.json # per-fold band means and standard deviations (PASTIS)
βββ NORM_S1A_patch.json
βββ NORM_S1D_patch.json
βββ DATA_S2/S2_<id>.npy
βββ DATA_S1A/S1A_<id>.npy
βββ DATA_S1D/S1D_<id>.npy
βββ DATA_SPOT/PASTIS_SPOT6_RVB_1M00_2019/SPOT6_RVB_1M00_2019_<id>.tif
βββ ANNOTATIONS/
β βββ TARGET_<id>.npy # PASTIS labels, 10 m
β βββ ParcelIDs_<id>.npy # RPG parcel IDs, 10 m
βββ TARGET_1M/HRMASK_<id>.npy # PASTIS-1m labels, 1 m (added)
βββ bugged_patch/ # time series of patch 20296 (no 1 m labels)
Download
The full dataset is about 94 GB:
| Folder | Content | Size |
|---|---|---|
DATA_S2/ |
Sentinel-2 time series | 38.2 GB |
DATA_S1A/, DATA_S1D/ |
Sentinel-1 time series | 16.9 GB each |
DATA_SPOT/ |
SPOT 6-7 images | 13.3 GB |
TARGET_1M/ |
PASTIS-1m labels, 1 m | 8.0 GB |
ANNOTATIONS/ |
PASTIS labels and parcel IDs, 10 m | 0.3 GB |
To download all of it:
hf download gatienc/PASTIS-1m --repo-type dataset --local-dir PASTIS-1m
To download only a part, give one --include pattern per file or folder. For example, the Sentinel-2 time series
and the 1 m labels (46 GB), the data that MOSS uses:
hf download gatienc/PASTIS-1m --repo-type dataset --local-dir PASTIS-1m \
--include "metadata.geojson" --include "NORM_S2_patch.json" \
--include "DATA_S2/*" --include "TARGET_1M/*"
Add --include "ANNOTATIONS/*" for the 10 m labels, --include "NORM_S1*" --include "DATA_S1*" for Sentinel-1
and --include "DATA_SPOT/*" for SPOT. In Python, give the same patterns to snapshot_download:
from huggingface_hub import snapshot_download
snapshot_download(
"gatienc/PASTIS-1m",
repo_type="dataset",
local_dir="PASTIS-1m",
allow_patterns=["metadata.geojson", "NORM_S2_patch.json", "DATA_S2/*", "TARGET_1M/*"],
)
Usage
import geopandas as gpd
import numpy as np
import rasterio
from huggingface_hub import hf_hub_download
def get(path):
return hf_hub_download("gatienc/PASTIS-1m", path, repo_type="dataset")
patch_id = 40470
s2 = np.load(get(f"DATA_S2/S2_{patch_id}.npy")) # (T, 10, 128, 128) int16
label_10m = np.load(get(f"ANNOTATIONS/TARGET_{patch_id}.npy"))[0] # (128, 128) PASTIS labels
label_1m = np.load(get(f"TARGET_1M/HRMASK_{patch_id}.npy")) # (1280, 1280) PASTIS-1m labels
with rasterio.open(get(f"DATA_SPOT/PASTIS_SPOT6_RVB_1M00_2019/SPOT6_RVB_1M00_2019_{patch_id}.tif")) as src:
spot = src.read() # (3, 1280, 1280) uint8
crs, transform = src.crs, src.transform # also the grid of label_1m
metadata = gpd.read_file(get("metadata.geojson")).set_index("ID_PATCH")
print(metadata.loc[patch_id, "Fold"], s2.shape, label_10m.shape, label_1m.shape, spot.shape, crs)
License
PASTIS-1m is released under the Licence Ouverte / Open Licence 2.0 (Etalab). The 1 m labels are derived from the RPG 2019 of IGN, released under the same license.
- The Sentinel data are "Value-added data processed by the CNES for the Theia www.theia-land.fr data cluster using Copernicus data. The treatments use algorithms developed by Theia's Scientific Expertise Centres."
- The SPOT images are open data from the Couverture France DINAMIS program of the Data Terra DINAMIS initiative.
Citation
If you use the 1 m labels (PASTIS-1m), please cite our paper:
@misc{chenu2026moss,
title = {{MOSS}: Generative Super-Resolved Semantic Segmentation
from Satellite Image Time Series},
author = {Chenu, Gatien and Perron, Yohann and Fayad, Ibrahim
and Ciais, Philippe and Landrieu, Loic},
year = {2026},
note = {arXiv preprint arXiv:XXXX.XXXXX}
}
If you use PASTIS (the Sentinel-2 time series, the 10 m labels or the folds), please cite:
@article{garnot2021panoptic,
title={Panoptic Segmentation of Satellite Image Time Series
with Convolutional Temporal Attention Networks},
author={Sainte Fare Garnot, Vivien and Landrieu, Loic },
journal={ICCV},
year={2021}
}
If you use the radar data (the Sentinel-1 time series of PASTIS-R), please cite:
@article{garnot2021mmfusion,
title = {Multi-modal temporal attention models for crop mapping from satellite time series},
journal = {ISPRS Journal of Photogrammetry and Remote Sensing},
year = {2022},
doi = {https://doi.org/10.1016/j.isprsjprs.2022.03.012},
author = {Vivien {Sainte Fare Garnot} and Loic Landrieu and Nesrine Chehata},
}
If you use the SPOT 6-7 images (PASTIS-HD), please cite:
@article{astruc2024omnisat,
title={Omni{S}at: {S}elf-Supervised Modality Fusion for {E}arth Observation},
author={Astruc, Guillaume and Gonthier, Nicolas and Mallet, Clement and Landrieu, Loic},
journal={ECCV},
year={2024}
}
- Downloads last month
- 845
