File size: 6,704 Bytes
0bddb4d
 
a4f5a8d
 
 
 
 
 
 
 
 
 
 
0bddb4d
1ee440f
 
 
 
a4f5a8d
1ee440f
 
 
 
 
 
 
 
 
 
 
 
 
 
a4f5a8d
 
 
 
 
 
 
 
1ee440f
 
 
 
 
 
a4f5a8d
1ee440f
 
 
 
a4f5a8d
1ee440f
a4f5a8d
1ee440f
 
 
a4f5a8d
1ee440f
 
 
 
 
 
 
 
 
 
 
 
 
a4f5a8d
1ee440f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a4f5a8d
1ee440f
a4f5a8d
1ee440f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a4f5a8d
1ee440f
a4f5a8d
1ee440f
a4f5a8d
1ee440f
 
 
 
 
 
 
 
 
a4f5a8d
 
 
1ee440f
a4f5a8d
1ee440f
 
 
 
 
 
 
 
 
 
 
a4f5a8d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
---
license: mit
task_categories:
- image-to-image
tags:
- image
- image restoration
- super-resolution
- Sentinel-2
- multi-date
pretty_name: ' opensr_multidate'
size_categories:
- 1K<n<10K
---


# OpenSR — Multi-Date Sentinel-2 Extension

This dataset extends the [OpenSR benchmark](https://github.com/ESAOpenSR/opensr-test) by incorporating additional Sentinel-2 acquisitions from the same regions, enabling multi-date super-resolution evaluation alongside the original reference pairs. This dataset is provided in support of the paper **Self-Supervised Multi-Date Multi-Spectral Super-Resolution for Sentinel-2 Imagery** ([project repository](https://github.com/centreborelli/multidate-sentinel2-superresolution)).

## Directory Structure

```text
README.md
opensr_original/
├── naip.pkl
├── spain_crops.pkl
├── spain_urban.pkl
├── spot.pkl
└── venus.pkl
opensr_md_v2/
└── <level>/                       # l1c or l2a
    └── <subset>/                  # naip, spot, venus, etc.
        └── <ROI>/
            ├── ref.txt
            └── <Sentinel-2_product_id>/
                ├── B*.tif
                ├── TCI.tif
                ├── KLD.tif
                ├── ard_properties.json
                └── item_properties.json
```

### Original Benchmark (`opensr_original/`)

The five `.pkl` files contain the original [OpenSR v2 benchmark](https://github.com/ESAOpenSR/opensr-test) subsets: NAIP, Spain Crops, Spain Urban, SPOT, and VENµS.

These files can be loaded using `opensr_test.load`, which provides access to the following components:

- `L1C`: Sentinel-2 Level-1C images.
- `L2A`: Sentinel-2 Level-2A images.
- `HRharm`: harmonized high-resolution reference images.
- `metadata`: sample metadata.

The `metadata["roi"]` field associates each original benchmark sample with its corresponding multi-date acquisitions.

### Multi-Date Extension (`opensr_md_v2/`)

Auxiliary acquisitions are structured according to processing level, benchmark subset, and region of interest (ROI).

- **`l1c/`**: Sentinel-2 Level-1C top-of-atmosphere (TOA) reflectance products.
- **`l2a/`**: Sentinel-2 Level-2A surface reflectance products.
- **`<ROI>/`**: region identifier matching the original OpenSR metadata.
- **`<Sentinel-2_product_id>/`**: acquisition folder identified by the Sentinel-2 product name.
- **`ref.txt`**: identifies the product corresponding to the original benchmark reference acquisition, when available.

For example, `l1c/naip/ROI_00006/ref.txt` contains:

```text
S2A_MSIL1C_20210917T182021_N0500_R127_T11TQK_20230128T023614
```

The product identifier encodes information about the satellite, processing level, sensing time, processing baseline, relative orbit, MGRS tile, and product generation time.

## Spectral Bands and Metadata

Each Sentinel-2 spectral band is stored as a separate GeoTIFF at its native spatial resolution.

| Native resolution | Bands |
|---|---|
| 10 m | B02, B03, B04, B08 |
| 20 m | B05, B06, B07, B8A, B11, B12 |
| 60 m | B01, B09, B10 (L1C only) |

Additional raster files include:

- `TCI.tif`: true-color image composite.
- `KLD.tif`: auxiliary raster provided with the acquisition.

Each acquisition also contains two JSON metadata files:

| File | Description |
|---|---|
| `item_properties.json` | Acquisition time, satellite platform, instrument, cloud cover, MGRS tile, orbit information, processing baseline, and catalog metadata, when available. |
| `ard_properties.json` | Acquisition metadata and additional analysis-ready data properties, including fields such as `ard:cloud_cover` and `ard:processing_baseline`. |

## Loading the Dataset

The [project repository](https://github.com/centreborelli/multidate-sentinel2-superresolution) includes a [multi-date loader](https://github.com/centreborelli/multidate-sentinel2-superresolution/blob/main/data/opensr_multidate.py) utilized in the experiments described in the paper. This loader may also serve as a foundation for custom data-loading pipelines.

The following example demonstrates loading an original OpenSR sample and its corresponding auxiliary Level-2A acquisitions at 10 m and 20 m resolutions.

```python
from pathlib import Path

import opensr_test

from data.opensr_multidate import load_opensr_multidate

root = Path("_data/opensr")
subset = "naip"

# Load the original OpenSR benchmark.
dataset = opensr_test.load(
    subset,
    version="v2",
    force=False,
    model_dir=str(root / "opensr_original"),
)

# Select a reference sample.
index = 0
roi = dataset["metadata"]["roi"].iloc[index]

reference_l2a = dataset["L2A"][index]
reference_hr = dataset["HRharm"][index]

# Load auxiliary acquisitions at 10 m resolution.
# Bands: B04, B03, B02, B08 (red, green, blue, NIR).
aux_10m = load_opensr_multidate(
    root / "opensr_md_v2",
    subset,
    roi,
    mode="l2a",
    selected_bands=[3, 2, 1, 7],
)

# Load auxiliary acquisitions at 20 m resolution.
# Bands: B05, B06, B07, B8A, B11, B12.
aux_20m = load_opensr_multidate(
    root / "opensr_md_v2",
    subset,
    roi,
    mode="l2a",
    selected_bands=[4, 5, 6, 8, 10, 11],
)

print("ROI:", roi)
print("10 m auxiliaries:", None if aux_10m is None else aux_10m.shape)
print("20 m auxiliaries:", None if aux_20m is None else aux_20m.shape)
```
To reproduce the experiments described in the paper, including model inference and evaluation on OpenSR, refer to the [project repository](https://github.com/centreborelli/multidate-sentinel2-superresolution).

## Citation

If you use this code or the associated dataset in your research, please cite our paper:

```
@article{cotrim2026selfsupervised,
  title   = {Self-Supervised Multi-Date Multi-Spectral Super-Resolution for Sentinel-2 Imagery},
  author  = {Cotrim, A. Nogueira and Anger, J. and Facciolo, G. and Santos, C. A. Nogueira and Pedrini, H.},
  journal = {IEEE Transactions on Geoscience and Remote Sensing},
  year    = {2026},
  note    = {Accepted for publication}
}
```

This work builds upon the original OpenSR benchmark. Please also cite the [OpenSR paper](https://doi.org/10.1109/LGRS.2024.3401394).

```
@article{aybar2024comprehensive,
  title   = {A Comprehensive Benchmark for Optical Remote Sensing Image Super-Resolution},
  author  = {Aybar, Cesar and Montero, David and Donike, Simon and Kalaitzis, Freddie and G{\'o}mez-Chova, Luis},
  journal = {IEEE Geoscience and Remote Sensing Letters},
  volume  = {21},
  pages   = {1--5},
  year    = {2024},
  doi     = {10.1109/LGRS.2024.3401394}
}
```

If you use this dataset, please cite both the multi-date extension and the original [OpenSR benchmark](https://github.com/ESAOpenSR/opensr-test).