# So2Sat LCZ42 v4: Local Climate Zone Classification from Sentinel-1 and Sentinel-2

## Facts

- Provider: Xiao Xiang Zhu et al., Technical University of Munich (TUM) / DLR
- License: CC-BY-SA-4.0 (https://mediatum.ub.tum.de/1836598)
- Size: 10 files
- Format: HDF5 (in sampled files)
- Stored at: Hugging Face, https://huggingface.co/datasets/zhu-xlab/So2Sat-LCZ42
- Access: public, readable without an account
- Category: Earth Observation & Geospatial
- Source: https://doi.org/10.1109/MGRS.2020.2964708
- Page: https://scigantic.com/archive/efc9dca2-951f-5af3-99a1-54e4c966fc07
- Keywords: Earth Observation & Geospatial, satellite imagery, benchmark, HDF5, Hugging Face

## About

Benchmark for classifying Local Climate Zones (LCZ), the 17-class urban and natural land scheme used in urban climate research, from co-registered Sentinel-1 SAR and Sentinel-2 multispectral image patches. Patches are 32 x 32 pixels with 8 Sentinel-1 channels and 10 Sentinel-2 bands, labelled by hand. This copy of version 4 pairs the culture-10 split with geolocation: training covers 42 cities worldwide, validation the western half and testing the eastern half of 10 further cities spanning 10 cultural zones. The listing (measured 2026-11-14) shows a v4/ folder with training.h5.gz (about 16 GB), validation.h5.gz and testing.h5.gz (about 1.1 GB each), matching *_geo.h5 files with UTM coordinates, EPSG codes and world-file parameters, and read_file.py; about 18.2 GB in all. Gunzip, then read the sen1, sen2 and one-hot label arrays with h5py and numpy; the zhu-xlab GitHub repository has a notebook to write GeoTIFFs. TUM mediaTUM publishes version 4 under CC-BY-SA-4.0; cite Zhu et al., IEEE GRSM 2020.

## Load the data

```python
from huggingface_hub import hf_hub_download
path = hf_hub_download(repo_id="zhu-xlab/So2Sat-LCZ42", filename="v4/testing_geo.h5", repo_type="dataset")
print(path)
```

## Data structure

File types in sampled files: HDF5

Example file: `v4/testing_geo.h5`

## Open it

- In a hosted notebook with the data mounted: https://scigantic.com/archive/efc9dca2-951f-5af3-99a1-54e4c966fc07
- Full record as JSON (schema card included): https://api.scigantic.com/api/archives/efc9dca2-951f-5af3-99a1-54e4c966fc07
- Over MCP: `get_schema_card` with id `efc9dca2-951f-5af3-99a1-54e4c966fc07` at https://api.scigantic.com/mcp

## Related topics

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