Datasets:
Add dataset card
Browse files123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158---license: cc-by-4.0task_categories: - image-segmentation - image-classificationtags: - astronomy - atmospheric-science - infrared - thermal-imaging - clouds - all-sky - fitssize_categories: - 10K<n<100Kpretty_name: IRIS-CloudDeep infrared all-sky cloud images---
# IRIS-CloudDeep
Ground-based long-wave infrared (LWIR) all-sky images of clouds, with the ground-truth masks and labels used to train the cloud classification and segmentation models of [IRIS-CloudDeep](https://github.com/ASKabalan/infrared-cloud-detection).
All images come from an uncooled FLIR TAU2 microbolometer camera (640x512, 17 μm pixels, 60 mm f/1.25 germanium lens) observing the night sky during two 2023 campaigns. Pixel values are raw 14-bit ADU counts, so every loader in the reference code divides by `2**14`.
31,352 FITS files, ~18 GB.
## Contents
| Path | Files | Size | What it is ||---|---|---|---|| `raw/DATASET_1/` | 18,748 | 12 GB | Full campaign of 2023-01-23, 640x512 `int16` ADU || `raw/DATASET_2/` | 4,746 | 3.0 GB | Full campaign of 2023-03-30, same format || `segmentation/DS1_MASKED_SUBSET/` | 2,951 | 600 MB | Rebinned images **with** ground-truth masks, drawn from `DATASET_1` || `segmentation/DS2_MASKED_SUBSET/` | 1,494 | 304 MB | Same, drawn from `DATASET_2` || `classification/CLOUD/` | 1,413 | 889 MB | Cloudy frames, label `1` || `classification/SIM_CLEAR/` | 2,000 | 1.3 GB | Synthetic clear-sky frames, label `0` || `manifests/` | 3 | 1 MB | CSV provenance linking every derived file to its raw frame |
### FITS layout
**`raw/` and `classification/`** — one HDU:
```HDU 0 640 x 512 int16 raw ADU```
Headers of the real-camera frames carry the instrument state: `CAMERA='FLIR TAU2'`, `FOCAL`, `APERTURE`, `PXSIZE`, `FPA-TEMP`, `AMB-TEMP`, `BB-TEMP`, `GAIN`, `SHU-MODE`, `FFCMODE`, `DATE-OBS`, `LATOBS`, `LONGOBS`.
**`segmentation/`** — two HDUs:
```HDU 0 160 x 128 float64 image, rebinned 4x4 from the raw frameHDU 1 160 x 128 int16 binary mask, header IMGTYPE = 'GROUND-TRUTH'```
The masks were produced by Otsu thresholding an `astropy` `LogStretch(a=1e5)` + `ZScaleInterval(contrast=0.9)` rendering of the raw frame (`utilities/mask_generator.py` in the code repo).
### Directory sharding on `raw/`
`raw/DATASET_1` holds 18,748 frames, past what the Hub's file browser handles comfortably, so both raw campaigns are split into per-minute subdirectories keyed on the timestamp already present in each filename — 59 shards for `DATASET_1`, 24 for `DATASET_2`:
```raw/DATASET_1/2023_01_23_22_01/2023_01_23_22_01_54_358322_flux.fitsraw/DATASET_2/2023-03-30T21_27/2023-03-30T21_27_43.435747.fits```
No training code reads the raw pool, so this costs nothing. To flatten after download:
```bashfind raw/DATASET_1 -name '*.fits' -exec mv -t DATASET_1_flat/ {} +```
## Usage
Everything, ~18 GB:
```bashhf download ASKabalan/IRIS-CloudDeep --type dataset --local-dir data/```
Only what the models train on, ~3 GB, skipping the raw pool:
```bashhf download ASKabalan/IRIS-CloudDeep --type dataset --local-dir data/ \ --include 'segmentation/*' 'classification/*' 'manifests/*'```
```pythonfrom huggingface_hub import snapshot_download
path = snapshot_download( "ASKabalan/IRIS-CloudDeep", repo_type="dataset", local_dir="data", allow_patterns=["segmentation/*", "classification/*", "manifests/*"],)```
Reading a segmentation sample the way the reference UNet does:
```pythonfrom astropy.io import fits
with fits.open("data/segmentation/DS1_MASKED_SUBSET/2023_01_23_22_01_54_569098_masked.fits") as hdul: image = hdul[0].data / 2**14 # (128, 160) float64 mask = hdul[1].data # (128, 160) binary```
Reading a classification sample the way the reference VGG-8 does — the raw 640x512 frame is rebinned to 128x160 by 4x4 block averaging at load time, not stored pre-binned:
```pythonimport numpy as npfrom astropy.io import fits
def rebin(arr, new_shape=(128, 160)): shape = (new_shape[0], arr.shape[0] // new_shape[0], new_shape[1], arr.shape[1] // new_shape[1]) return arr.reshape(shape).mean(-1).mean(1)
image = rebin(fits.getdata("data/classification/CLOUD/2023_01_23_22_01_58_500596_flux.fits")) / 2**14```
## Provenance and caveats
**The subsets were sampled without a recorded seed.** `segmentation/DS1_MASKED_SUBSET` is 2,951 of the 18,748 frames in `DATASET_1`, and `DS2_MASKED_SUBSET` is 1,494 of 4,746 — chosen so that frames are not consecutive, since neighbouring frames of a slowly evolving sky are near-duplicates. That selection cannot be regenerated, so `manifests/ds1_masked_subset.csv` and `ds2_masked_subset.csv` map each processed file back to its source frame under `raw/` and are the only record of which frames were used.
**`classification/CLOUD` duplicates 1,413 frames already present in `raw/`** — 938 from `DATASET_1` and 475 from `DATASET_2`, byte for byte. It is kept as its own directory because the reference classifier globs it directly; `manifests/classification_labels.csv` gives the label of every file and, for the cloudy ones, its path under `raw/`.
**`classification/SIM_CLEAR` is synthetic, not observed.** The 2,000 clear-sky negatives were generated by `utilities/synthetic_image.py`, which models the sky gradient, bias level, read noise, fixed-pattern noise, bad pixel columns and the narcissus effect of the real camera. Generation parameters are recorded per file in the FITS header (`IMGTYPE='SIMCLEAR'`, `START`, `STOP`, `BIASLVL`, `READLVL`, `FPNLVL`, `SKYNOISE`, `NARINT`, `RADIUS`, `SMOOTH`, ...), but the random draws were unseeded, so these exact realisations cannot be reproduced.
**No held-out test set is defined here.** The reference notebooks split 80/20 at load time and use the 20 % for both early stopping and reported metrics.
## Public sky-image datasets are not included
The IRIS-CloudDeep paper also fine-tunes on four third-party RGB sky-image databases. They are **not redistributed here**, because their licences do not permit it: SWIMSEG is CC BY-NC 4.0, and HYTA is republished by its host with permission granted to that host rather than transferably. Get them from the original sources:
- **HYTA** — Q. Li, W. Lu, J. Yang, *A Hybrid Thresholding Algorithm for Cloud Detection on Ground-Based Color Images*, J. Atmos. Oceanic Technol., 2011. The 3-level ground truth additionally requires S. Dev, Y. H. Lee, S. Winkler, *Multi-level semantic labelling of sky/cloud images*, IEEE ICIP, 2015.- **SWIMSEG, SWINSEG, SWINYSEG** — Vision and Interaction Group, NUS / ADSC (Soumyabrata Dev, Stefan Winkler et al.). SWIMSEG is CC BY-NC 4.0.- **WSISEG** — 400 whole-sky images with cloud / clear / undefined labels.
To rebuild the grayscale FITS the models consume, run `notebooks/convert_rgb_datasets_to_grayscale.ipynb` then `utilities/public_ds_process.py` from the [code repository](https://github.com/ASKabalan/infrared-cloud-detection).
## Citation
```bibtex@article{sommer_iris_clouddeep, title = {IRIS-CloudDeep: Infrared Radiometric Image classification and Segmentation of Cloud structure using Deep-learning framework for ground-based long-wave infrared thermal camera observations}, author = {Sommer, K{\'e}lian and Kabalan, Wassim and Brunet, Romain},}```
Code: <https://github.com/ASKabalan/infrared-cloud-detection>
## Licence
The data in this repository is released under CC BY 4.0. Please cite the paper above if you use it.README.mdAdded+158