Datasets:
Rewrite dataset card from measured image statistics
Browse filesCorrects the field of view (narrow ~10.4x8.3 deg, not all-sky), documents
the verified mask polarity, the per-campaign differences, and the three
caveats that measurement turned up: cloud-dominated masks, sub-second
gaps between subset frames, and synthetic/real separability.
6 unmodified lines7891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111127 unmodified lines1201211221231241251261271281291301311321331341351361371381391401411428 unmodified lines1511521531541551561571586 unmodified lines- astronomy- atmospheric-science- infrared- thermal-imaging- clouds- all-sky- fitssize_categories:- 10K<n<100Kpretty_name: IRIS-CloudDeep infrared all-sky cloud images---# IRIS-CloudDeepGround-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/ {} +```## UsageEverything, ~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/*' --include 'classification/*' --include 'manifests/*'``````pythonfrom huggingface_hub import snapshot_downloadpath = 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 fitswith 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) float64mask = 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 np7 unmodified linesimage = 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 includedThe 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).8 unmodified lines}```Code: <https://github.com/ASKabalan/infrared-cloud-detection>## LicenceThe data in this repository is released under CC BY 4.0. Please cite the paper above if you use it.6 unmodified lines7891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411427 unmodified lines1501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861878 unmodified lines1961971981992002012022036 unmodified lines- astronomy- atmospheric-science- infrared- lwir- thermal-imaging- clouds- remote-sensing- fitssize_categories:- 10K<n<100Kpretty_name: IRIS-CloudDeep LWIR sky/cloud images---# IRIS-CloudDeepGround-based long-wave infrared (LWIR) images of the night sky, with the binary ground-truth masks and clear/cloud labels used to train the models in [IRIS-CloudDeep](https://github.com/ASKabalan/infrared-cloud-detection).An uncooled FLIR Tau2 microbolometer (640×512, 17 μm pitch, 8–14 μm band, 9 Hz) recorded two night-time campaigns in 2023 from 43.6° N, 3.8° E. A 60 mm f/1.25 germanium lens gives a **narrow** field of view of roughly **10.4° × 8.3°** (≈58″ per pixel) — these are not all-sky images. The camera sits on the equatorial mount beside the StarDICE photometric telescope and watches the same line of sight, so the question the data is meant to answer is whether cloud is crossing the telescope's field, not what the whole sky is doing.Pixel values are raw 14-bit ADU with `TLINEAR` disabled, so they are uncalibrated detector counts rather than radiance or brightness temperature. Every loader in the reference code divides by `2**14`. **Warmer is brighter, and cloud is warmer than clear sky** — the dark patches in the images below are clear sky, not cloud.**31,352 FITS files, ~18 GB.**## What is in it| Path | Files | Size | Contents ||---|---:|---:|---|| `raw/DATASET_1/` | 18,748 | 12 GB | Complete campaign of 2023-01-23, 640×512 `int16` || `raw/DATASET_2/` | 4,746 | 3.0 GB | Complete campaign of 2023-03-30, same format || `segmentation/DS1_MASKED_SUBSET/` | 2,951 | 600 MB | 160×128 image **+ ground-truth mask**, from `DATASET_1` || `segmentation/DS2_MASKED_SUBSET/` | 1,494 | 304 MB | Same, 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 CSV | 1 MB | Provenance: every derived file → its source raw frame |### The two campaigns are not interchangeable| | `DATASET_1` | `DATASET_2` ||---|---|---|| Date (UTC, from `DATE-OBS`) | 2023-01-23 22:01:54 → 23:04:29 | 2023-03-30 21:27:43 → 21:51:18 || Span / frames | 62.8 min / 18,748 | 23.7 min / 4,746 || Detector temperature (`FPA-TEMP`) | −1.0 … −0.2 °C | +11.2 … +11.5 °C || Ambient (`AMB-TEMP`) | −1.26 … +0.01 °C | +11.95 … +12.60 °C || Frame mean ADU | 1001 ± 155 | 1135 ± 106 || Within-frame σ (contrast) | 74 ADU | 25 ADU |The January night was ~12 °C colder, and its frames carry roughly three times the internal contrast. The two ADU distributions barely overlap (centre panel below), so a model fitted on one campaign will not transfer to the other without per-frame normalisation. `DATASET_2`'s low contrast also means its Otsu-derived masks are separating a much weaker gradient than `DATASET_1`'s.Constant across both campaigns: `GAIN='high'`, `TLINEAR='disabled'`, `SHU-MODE='user'`, `FFCMODE='external'`, `STACKED=1`, `XPMODE='CMOS 14 bits'`, `CAMERA='FLIR TAU2'`, `FOCAL=60`, `APERTURE=1.25`, `PXSIZE=17`. Flat-field correction runs about every 30 s against an external calibration source.## File formats**`raw/` and `classification/`** — one HDU:```HDU 0 640 × 512 int16 (big-endian) raw ADU```Real-camera frames carry the full instrument state in the header: `DATE-OBS`, `FPA-TEMP`, `AMB-TEMP`, `BB-TEMP`, `GAIN`, `TLINEAR`, `SHU-MODE`, `SHU-TEMP`, `FFCMODE`, `FFC-TIME`, `FFCFRAME`, `XPMODE`, `STACKED`, `CAMERA`, `LENS`, `FOCAL`, `APERTURE`, `PXSIZE`, `LATOBS`, `LONGOBS`, `TARGET`, `OBSERVER`. Synthetic frames instead carry their generation parameters: `IMGTYPE='SIMCLEAR'`, `START`, `STOP`, `HORIZ`, `BIASLVL`, `READLVL`, `FPNLVL`, `SKYNOISE`, `BADPXCOL`, `NARCIS`, `NARINT`, `RADIUS`, `CENTER_X`, `CENTER_Y`, `SMOOTH`, `AUGMENT`, `INDEX`.**`segmentation/`** — two HDUs:```HDU 0 160 × 128 float64 image, 4×4 block-averaged from the raw frameHDU 1 160 × 128 int16 mask, values are exactly {0, 1}, header IMGTYPE = 'GROUND-TRUTH'````1` is cloud and `0` is clear sky. Verified rather than assumed: across 600 sampled frames containing both classes, the mean ADU under `mask == 1` exceeds that under `mask == 0` in **100 %** of frames (DS1 1024 vs 901; DS2 1152 vs 1105).Masks are not hand-drawn. They come from Otsu thresholding an `astropy` `LogStretch(a=1e5)` + `ZScaleInterval(contrast=0.9)` rendering of the frame (`utilities/mask_generator.py`), followed by visual inspection to discard frames with tree branches or buildings intruding at the corners. Treat them as a strong automatic baseline, not as human annotation.### Directory sharding on `raw/`Both raw campaigns are split into per-minute subdirectories keyed on the timestamp already in each filename — 59 for `DATASET_1`, 24 for `DATASET_2` — because 18,748 files in one folder is more than the Hub browses comfortably:```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 nothing depends on this. Flatten with `find raw/DATASET_1 -name '*.fits' -exec mv -t DATASET_1_flat/ {} +`.## Read before you train**The segmentation masks are cloud-dominated, and there are no near-clear frames.** Median cloud fraction is 0.92 in DS1 and 0.96 in DS2; the mean is 0.85 and 0.90. About 11 % of DS1 frames and 12 % of DS2 frames are more than 99 % cloud, and **no frame in either subset falls below ~45 % cloud**. Pixel accuracy is close to meaningless here — a model predicting "cloud everywhere" scores ~0.87. Report IoU on the clear-sky class, or a class-balanced loss.**Consecutive frames are near-duplicates, so a random split leaks.** The raw cameras run at an effective 5.0 Hz (`DATASET_1`) and 3.3 Hz (`DATASET_2`). After subsetting, consecutive selected frames are still only **0.66 s apart in DS1 and 0.32 s in DS2** (median; minimum 0.16 s and 0.21 s). Only 8 % of DS1 gaps and 4 % of DS2 gaps exceed 2 s. Clouds do not move appreciably in a third of a second, so an i.i.d. shuffle puts visually identical frames on both sides of the split. Split on time — hold out a contiguous block of minutes — if you want an honest generalisation estimate. `manifests/` carries the timestamps needed to do this.**The classification labels are separable without looking at clouds.** `SIM_CLEAR` is synthetic, and its within-frame standard deviation clusters at 15–25 ADU while real cloudy frames span 20–280 ADU (right panel above). The synthetic frames also show visible column-wise fixed-pattern noise and a central radial "narcissus" blob that no real frame reproduces the same way. A classifier can reach high accuracy by learning *synthetic versus real* instead of *clear versus cloudy*. The synthetic images exist because genuinely cloud-free frames were scarce in these two campaigns; treat classification scores on this split as an upper bound and validate on real clear-sky data before believing them.**Neither task ships a held-out test set.** The reference notebooks split 80/20 at load time and use the same 20 % for early stopping and for reported metrics.## UsageThe files are FITS, not a `datasets`-loadable format. Read them with `astropy` or `fitsio`.Only what the models train on (~3 GB, skipping the raw campaigns):```bashhf download ASKabalan/IRIS-CloudDeep --type dataset --local-dir data/ \--include 'segmentation/*' --include 'classification/*' --include 'manifests/*'```Everything, raw campaigns included:```bashhf download ASKabalan/IRIS-CloudDeep --type dataset --local-dir data/``````pythonfrom huggingface_hub import snapshot_downloadsnapshot_download("ASKabalan/IRIS-CloudDeep", repo_type="dataset", local_dir="data",allow_patterns=["segmentation/*", "classification/*", "manifests/*"])```A segmentation sample, the way the reference UNet reads it:```pythonfrom astropy.io import fitswith 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, in [0, 1]mask = hdul[1].data # (128, 160), 1 = cloud```A classification sample. The raw 640×512 frame is block-averaged to 128×160 at load time; nothing is stored pre-binned:```pythonimport numpy as np7 unmodified linesimage = rebin(fits.getdata("data/classification/CLOUD/2023_01_23_22_01_58_500596_flux.fits")) / 2**14```A time-aware split, which is what the leakage note above argues for:```pythonimport glob, refrom datetime import datetimedef stamp(path): # DS1 filenames: 2023_01_23_22_01_54_569098_masked.fitsm = re.search(r"(\d{4})_(\d\d)_(\d\d)_(\d\d)_(\d\d)_(\d\d)_(\d{6})", path)return datetime(*map(int, m.groups()))files = sorted(glob.glob("data/segmentation/DS1_MASKED_SUBSET/*.fits"), key=stamp)cut = int(0.8 * len(files))train, held_out = files[:cut], files[cut:] # contiguous in time, no shared minute```## Provenance`manifests/ds1_masked_subset.csv` and `ds2_masked_subset.csv` map each processed file to the raw frame it came from; `manifests/classification_labels.csv` gives the label of every classification file and, for the cloudy ones, its path under `raw/`.The segmentation subsets are 2,951 of 18,748 frames and 1,494 of 4,746, sampled **without a recorded seed**, so the selection cannot be regenerated — those CSVs are the only record of it.`classification/CLOUD` duplicates 1,413 frames already present under `raw/`, byte for byte (938 from `DATASET_1`, 475 from `DATASET_2`). It is kept as its own directory because the reference classifier globs it directly.`classification/SIM_CLEAR` was produced by `utilities/synthetic_image.py`, which models a 2D horizontal sky gradient (downwelling radiance rising toward high zenith angle) plus read noise, fixed-pattern noise, bad pixel columns, sky noise and the narcissus effect. Parameters are recorded per file in the header, but the random draws were unseeded, so these exact realisations cannot be reproduced.## Public sky-image datasets are not includedThe 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 under 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 labelled cloud / clear / undefined.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).8 unmodified lines}```Camera control software: <https://github.com/Kelian98/tau2_thermalcapture>. Models and training code: <https://github.com/ASKabalan/infrared-cloud-detection>.## LicenceCC BY 4.0. Please cite the paper above if you use this data.
README.md+93-48