kklmmr commited on
Commit
2d2ccf7
·
verified ·
1 Parent(s): bc8c936

Add files using upload-large-folder tool

Browse files
README.md ADDED
@@ -0,0 +1,131 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ task_categories:
4
+ - image-classification
5
+ - feature-extraction
6
+ language:
7
+ - en
8
+ tags:
9
+ - satellite
10
+ - sentinel-2
11
+ - remote-sensing
12
+ - geospatial
13
+ - satclip
14
+ size_categories:
15
+ - 100K<n<1M
16
+ pretty_name: S2-100K (SatCLIP)
17
+ ---
18
+
19
+ # S2-100K
20
+
21
+ A complete re-host of the **S2-100K** dataset used to train [SatCLIP](https://arxiv.org/abs/2311.17179) (Klemmer et al., 2023).
22
+
23
+ 100,000 globally sampled multi-spectral [Sentinel-2 L2A](https://sentinels.copernicus.eu/web/sentinel/missions/sentinel-2) image patches (256×256 px, 12 bands, uint16), with longitude/latitude coordinates for each patch.
24
+
25
+ ## Why this re-host?
26
+
27
+ The original Microsoft-hosted blob (`https://satclip.blob.core.windows.net/...`) is the canonical source. The only public mirror, [`davanstrien/satclip`](https://huggingface.co/datasets/davanstrien/satclip), is missing some patches ([discussion](https://huggingface.co/datasets/davanstrien/satclip/discussions/3)). This repo is a verified-complete copy: 100,000 / 100,000 patches present, sourced directly from the original Microsoft container.
28
+
29
+ ## File layout
30
+
31
+ ```
32
+ metadata.parquet # fn, lon, lat, patch_idx, shard (100,000 rows)
33
+ index.csv # fn, lon, lat (verbatim from upstream)
34
+ data/shard-00000.tar # patches 0..999
35
+ data/shard-00001.tar # patches 1000..1999
36
+ ...
37
+ data/shard-00099.tar # patches 99000..99999
38
+ satclip.tar # all 100,000 patches in one tar (78 GB) - included as a safety copy
39
+ ```
40
+
41
+ Each shard is a plain (uncompressed) tar containing 1000 `patch_<N>.tif` files. Sharding the original 78 GB tar makes resumable downloads and partial loads practical; the single `satclip.tar` is included as well so users can grab everything at once if they prefer.
42
+
43
+ ## Per-patch format
44
+
45
+ Each `patch_<N>.tif` is a GeoTIFF with:
46
+
47
+ - **Shape:** 256 × 256 pixels
48
+ - **Bands:** 12 (Sentinel-2 L2A: B01, B02, B03, B04, B05, B06, B07, B08, B8A, B09, B11, B12 — B10 is excluded)
49
+ - **dtype:** uint16 (raw reflectance, scale by 10,000 to get [0,1])
50
+ - **CRS:** UTM zone of the source raster (EPSG:326XX / 327XX)
51
+ - **Resolution:** 10 m
52
+
53
+ > **Note:** Pillow / `datasets.Image` cannot decode 12-band uint16 GeoTIFFs. Use `rasterio` (or `tifffile`) to read these files.
54
+
55
+ ## Loading
56
+
57
+ ### Stream a few shards directly
58
+
59
+ ```python
60
+ import io
61
+ import tarfile
62
+
63
+ import rasterio
64
+ from huggingface_hub import hf_hub_download
65
+
66
+ shard_path = hf_hub_download(
67
+ repo_id="kklmmr/s2-100k",
68
+ filename="data/shard-00000.tar",
69
+ repo_type="dataset",
70
+ )
71
+
72
+ with tarfile.open(shard_path) as tar:
73
+ member = tar.getmember("patch_42.tif")
74
+ buf = tar.extractfile(member).read()
75
+
76
+ with rasterio.MemoryFile(buf) as mem, mem.open() as src:
77
+ arr = src.read() # shape: (12, 256, 256), dtype uint16
78
+ bounds = src.bounds # UTM bbox
79
+ crs = src.crs # e.g. EPSG:32610
80
+ ```
81
+
82
+ ### Pair patches with their coordinates
83
+
84
+ ```python
85
+ import pandas as pd
86
+ from huggingface_hub import hf_hub_download
87
+
88
+ meta_path = hf_hub_download(
89
+ repo_id="kklmmr/s2-100k",
90
+ filename="metadata.parquet",
91
+ repo_type="dataset",
92
+ )
93
+ meta = pd.read_parquet(meta_path)
94
+ # columns: fn, lon, lat, patch_idx, shard
95
+ ```
96
+
97
+ ### Download everything
98
+
99
+ ```python
100
+ from huggingface_hub import snapshot_download
101
+
102
+ local_dir = snapshot_download(
103
+ repo_id="kklmmr/s2-100k",
104
+ repo_type="dataset",
105
+ local_dir="./s2-100k",
106
+ )
107
+ ```
108
+
109
+ ## Provenance
110
+
111
+ - **Original dataset:** Sampled and released by the SatCLIP authors (Klemmer et al., 2023).
112
+ - **Original host:** `https://satclip.blob.core.windows.net/$web/satclip/` (Microsoft Azure Blob Storage).
113
+ - **Source code:** [microsoft/satclip](https://github.com/microsoft/satclip).
114
+ - **Paper:** [SatCLIP: Global, General-Purpose Location Embeddings with Satellite Imagery](https://arxiv.org/abs/2311.17179).
115
+
116
+ This repository contains **only the dataset**. The pretrained SatCLIP model checkpoints are available from the original SatCLIP authors.
117
+
118
+ ## License
119
+
120
+ MIT, matching the upstream SatCLIP project.
121
+
122
+ ## Citation
123
+
124
+ ```bibtex
125
+ @article{klemmer2023satclip,
126
+ title={SatCLIP: Global, General-Purpose Location Embeddings with Satellite Imagery},
127
+ author={Klemmer, Konstantin and Rolf, Esther and Robinson, Caleb and Mackey, Lester and Ru{\ss}wurm, Marc},
128
+ journal={arXiv preprint arXiv:2311.17179},
129
+ year={2023}
130
+ }
131
+ ```
data/shard-00000.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cb01fd129d6a2fcbc55d7223dfaff9b503d246ee8142476ac99fdffe67806483
3
+ size 844011520
data/shard-00001.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a5f2868e0d4f38595900ac307a523133d1cbce0deebce818e471d0c6cb2e2ef3
3
+ size 846100480
data/shard-00003.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:58958eb610394fdd4eb07d1a4293492c0248a17bcdda3b1ea501ff1377fd4798
3
+ size 841000960
data/shard-00005.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4743e94afb75919b5fd646fb77da0d6fbcb13f3f23c04e70774e89cebb36beba
3
+ size 836782080
data/shard-00007.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:64057c331ab9eea3d5f70be2818d9411c994d9143b10cfab1ac86ea238b58407
3
+ size 853585920
data/shard-00010.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f335595e5ad398526594cfe8bbef1e4b22c3641b368c45ca99b870bfbe425187
3
+ size 837754880
data/shard-00012.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:445af1bdc9362f9d292ab6c3a6e76868815bc02569d49bf6dc0114f0f6625d99
3
+ size 835235840
data/shard-00014.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d38db3c16ae44ec3c4a6606d9828c9e170a88024435b9b562ef9a0ca46aa08f5
3
+ size 838277120
data/shard-00015.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ad9e98dd725e9f75c591b51bd8dc8bf91a6e54e6fa7b87d2f67e72a08f95e2bb
3
+ size 835584000
data/shard-00017.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4e3eee505c2b488660bc29e07f0017dc34f1100c73d950a5d1721998c02aaaff
3
+ size 842362880
data/shard-00020.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:987f4a6dba06b97e92fa6b2b5419119ff4f8bc9db21d6ada02ece37e1b03867a
3
+ size 830740480
data/shard-00022.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:18e9245983976f8cdb07b4399d1c35b655e1b6a390686c561148aa529094c2a6
3
+ size 829009920
data/shard-00027.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d470ac0f555d6094a2abce3f872f419fd36dccfa84b98b58425e7988250aeb61
3
+ size 844267520
data/shard-00033.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1e93fac73cf045a3639a6e07b338ad114ffe0d0e5a99c64eafc45cbf2b5f4fa7
3
+ size 834375680
data/shard-00037.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3074e6b64ec2804441338197e34f6d5ab0f686b477206f758a9a089701c5338e
3
+ size 841349120
data/shard-00041.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8e9b4004606b5fe471d9bb303a808003eb23eb07b7cf629f61a6ddf9202d3ef6
3
+ size 836464640
data/shard-00044.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2dd38ef17cc87865b2f2464c611c5124041d4e88de93978af0ffedda511416e4
3
+ size 840796160
data/shard-00045.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:387d8a0d58cf7b547390e58ae7f99dc6026f1ea3a5a3be5a0c5f97bea1eacbd7
3
+ size 832010240
data/shard-00046.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:896ad239cefd2bedd18ee7c7a79e2460ef1e45a45ca275ee9dda5104a49d8d79
3
+ size 822937600
data/shard-00049.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:97767af2887bf55f4556b0a6831ee9970160e356bf624f4292bd06d810187b67
3
+ size 826183680
data/shard-00050.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dcb239401ee6de49ffb90a5dfb7af402e083d064da33f1d4a3be5e1df7272c29
3
+ size 847124480
data/shard-00052.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:43e7d9bf55fca15ba9bbcedb3e719ae1940107259b435f023e04f17ca460c422
3
+ size 825374720
data/shard-00053.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8a265893ae686ab3f53c67651d34a3a9207e55caa86c74cb06e5cc32645b46c2
3
+ size 840151040
data/shard-00054.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bb8f439fdfc07be047c47f9dde53f995c4b1a310248a326b9fb9956c0d6fb601
3
+ size 834037760
data/shard-00055.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ad92f0b89a473011180515ba4b0dcd54c6d0a013f2a380a054776024a3c7d5dc
3
+ size 839301120
data/shard-00056.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1ef11335b0bd56dcf2a713d44b7353dc318ce0b84b5cc0fa021e0d3993924d5a
3
+ size 837898240
data/shard-00059.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2f9fb081facf25eb878670fb3a7f09745912aeec2e8bc9bc4c46c9d480ef3b5e
3
+ size 820858880
data/shard-00061.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d254fdce3132ce261c1b92cc3429fa3b1d914e50ea12e7e171e589e1e65e7fe8
3
+ size 829122560
data/shard-00062.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1f461602b2b30e08921850005cd2fa3408d52ce822175deb365ec4e52e0e0036
3
+ size 838799360
data/shard-00063.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:39f3db0d30f15d832942eebb403f306c17a7a1ea0efc6b0adf5d53c2cfb4ee89
3
+ size 849070080
data/shard-00068.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:af08764fcb5d6e2c185699f63c76285031133357f423fff0c5c66ab5f0a3b64a
3
+ size 842526720
data/shard-00069.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:da5876b3e4d8522a09719badb34383ee33df7b9601d047dd7d8adbc06b5300b3
3
+ size 833536000
data/shard-00072.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d23bbbbcefec4433da9b8d13b8c9413a84b6851d9cc08181e0a8d6a5ff643f37
3
+ size 845506560
data/shard-00074.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:78fde7ab39cf7088c34b7f611887d2bf6badaf4003cca1792850cae5863ec983
3
+ size 837099520
data/shard-00077.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7ff872bbf174d27b5836f5eba2f02a8e4d17273026b531e0665e4aff859aafad
3
+ size 850155520
data/shard-00078.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:92f487738a43bf95413825195cf2db52b472ad53834a4a322e6e3a3c0631ad8a
3
+ size 832880640
data/shard-00083.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cea977636060ca3e6987ef333345bf400bbb88f38b822326fa36a58075cad79a
3
+ size 836894720
data/shard-00084.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c82be67fa7f25fd95dab293bc189f043f749743207827fac0b983a2596904a2a
3
+ size 846622720
data/shard-00085.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:162f46b53717f3aa35f38bc16958f0651a0b15c54d3bfac1ca848b496dae6fc0
3
+ size 836096000
data/shard-00086.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:722a62ed406cafbd617640bbc1d3d8f327817a60a47b67c6cc2afee119afd356
3
+ size 827934720
data/shard-00088.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:508c1e12f511a6f5e72b46a36b4e9ac7490ee0b9ee91fd0cce2c691c4f5814d0
3
+ size 845711360
data/shard-00090.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:62be5c9ff02b94defc253bf337e43c479a4277a7be04e55b3085bdab3eecdf94
3
+ size 848107520
data/shard-00091.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3699ea53de10b77d0dc2fef743b307db94a78eedca69c10ca41c416ee2a4d3b5
3
+ size 826777600
data/shard-00092.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6831d4cc4cbbc94663c03701eba5f02b35a9fb84aa9c4f943484831f061c6ceb
3
+ size 815861760
data/shard-00096.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2a83943a99d92b4892e80e43782b1d9ae1c5779a5a274ca0503db9fe06a4d240
3
+ size 840048640
data/shard-00097.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d5f03d2b3194944678475a08676dc7be46b4cd992e085e0d4779ce80935ff480
3
+ size 850391040
data/shard-00098.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1aba1054ed02a5d90bfc8ee6f4a7ee74b43290a9d200904d6b84bda8fe659e2e
3
+ size 854476800
index.csv ADDED
The diff for this file is too large to render. See raw diff
 
metadata.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:38ccfb8158c06f653bd98ce2b58ed7add1365efbb1ee3da412bad9b27a1a249f
3
+ size 3218656