Dataset Viewer
Auto-converted to Parquet Duplicate
object_id
stringlengths
11
14
ra
float32
0.01
360
dec
float32
-18.76
31
healpix
float32
12k
32.4k
gz10_label
int32
0
9
gz10_class_name
stringclasses
10 values
FLUX_G
float32
-0.13
39.2k
FLUX_I
float32
3.75
138k
FLUX_R
float32
1.79
91.7k
FLUX_W1
float32
-133.73
35.1k
FLUX_W2
float32
-116.68
33.1k
FLUX_Z
float32
3.71
180k
SERSIC
float32
0.5
6
SHAPE_E1
float32
-0.83
0.87
SHAPE_E2
float32
-0.79
0.85
SHAPE_R
float32
0.01
65.6
image_pixels_raw
listlengths
102k
102k
1887p220-1469
188.666733
22.031277
15,366
3
In-between Round Smooth Galaxies
321.512878
752.966675
583.991333
798.727173
557.325195
868.780212
2.04354
0.127732
-0.151951
3.218337
[0.005199970677495003,0.0013863564236089587,0.0009743814007379115,0.00030940258875489235,0.005110383(...TRUNCATED)
3408p005-8189
340.959503
0.585662
24,434
7
Unbarred Loose Spiral Galaxies
202.252197
387.155457
314.205017
254.78714
166.493088
420.036041
1.733862
0.11837
0.075926
6.14697
[0.00025260154507122934,0.0008717100135982037,-0.0015723281539976597,0.0016778184799477458,0.0009931(...TRUNCATED)
1228p205-6114
122.923233
20.398893
15,831
7
Unbarred Loose Spiral Galaxies
105.85154
245.623688
185.678101
198.055603
133.728439
291.291046
0.765975
-0.196998
0.057106
5.606399
[-0.0017493026098236442,-0.0011293133720755577,-0.002268355805426836,-0.003957289271056652,-0.000459(...TRUNCATED)
1411p012-6077
141.123489
1.212054
24,036
8
Edge-on Galaxies without Bulge
313.841125
756.562378
565.167908
618.232605
366.012115
907.486023
1.150407
-0.338473
0.463187
10.287305
[-0.0012174503644928336,-0.0010355942649766803,0.0009199287742376328,0.0030970696825534105,0.0009057(...TRUNCATED)
1232p140-1817
123.174057
13.921368
18,648
3
In-between Round Smooth Galaxies
72.014626
354.853271
228.065811
560.707275
392.980591
469.885284
4
-0.11195
-0.202212
4.961426
[0.0031825017649680376,0.009237860329449177,0.01435124222189188,0.0016683689318597317,0.005306005943(...TRUNCATED)
1490p280-978
148.966629
28.11058
13,034
7
Unbarred Loose Spiral Galaxies
284.30069
726.655518
538.524902
583.284058
374.807556
877.919067
1.772064
0.028696
0.118226
9.561731
[0.00023661376326344907,-0.0008663699263706803,0.0030866251327097416,0.002077750861644745,0.00052757(...TRUNCATED)
1647p197-3987
164.811752
19.764242
16,117
6
Unbarred Tight Spiral Galaxies
98.610603
279.543884
199.846695
262.518585
156.931137
347.707794
4
0.031387
-0.089361
8.178549
[-0.0033627236261963844,-0.0017299160826951265,0.0022693900391459465,0.001809511799365282,-0.0050654(...TRUNCATED)
1560p055-3640
156.037689
5.415491
22,255
6
Unbarred Tight Spiral Galaxies
193.041733
445.812531
342.16275
363.559784
229.305725
520.453552
1
0
0
6.618767
[0.0020105589646846056,-0.00012617793981917202,-0.0033631310798227787,-0.006634635850787163,-0.00221(...TRUNCATED)
3401m007-5325
340.13678
-0.771673
24,946
4
Cigar Shaped Smooth Galaxies
31.835676
103.862289
72.525826
140.223618
87.383514
133.484467
1.090783
0.038074
-0.502168
1.57489
[-0.00026270770467817783,0.0020018750801682472,0.0006456804694607854,0.00018247126718051732,-0.00017(...TRUNCATED)
1605p212-507
160.470612
21.252556
15,602
5
Barred Spiral Galaxies
1,642.817383
4,604.9375
3,283.62915
4,825.468262
3,355.025635
5,738.611816
5.204309
0.31802
-0.092007
20.910511
[0.009057561866939068,0.008866196498274803,0.0038818679749965668,0.014075231738388538,0.010438302531(...TRUNCATED)
End of preview. Expand in Data Studio

Galaxy Zoo 10 × Legacy Survey DR9

Dataset Summary

This dataset contains 7,864 galaxies from the Galaxy Zoo 10 morphology catalogue, cross-matched with Legacy Survey DR9 imaging.

Each sample includes:

  • A 4-channel 160×160 pixel image (Legacy Survey grz + WISE W1), stored as raw calibrated flux (nanomaggies). Normalization is left to the training pipeline.
  • 10-class morphology label (gz10_label, gz10_class_name)
  • Photometric scalars: flux densities (g, r, i, z, W1, W2), Sérsic index, shape parameters

Data Source

Field Value
Imaging Legacy Survey DR9 (grz) + WISE W1
Labels Galaxy Zoo 10 morphology classification
Original file crossmatch_legacy_gz10.h5
ETL date 2026-05-21

Dataset Structure

Splits

Split Samples
train 6,291
validation 786
test 787
total 7,864

Class Distribution (training set)

Label Class Name Train Count
0 Disturbed Galaxies 378
1 Merging Galaxies 696
2 Round Smooth Galaxies 1,186
3 In-between Round Smooth Galaxies 504
4 Cigar Shaped Smooth Galaxies 83
5 Barred Spiral Galaxies 691
6 Unbarred Tight Spiral Galaxies 751
7 Unbarred Loose Spiral Galaxies 690
8 Edge-on Galaxies without Bulge 385
9 Edge-on Galaxies with Bulge 927

Features

Column Type Description
object_id string Unique galaxy identifier
ra / dec float32 Sky coordinates (degrees, J2000)
healpix float32 HEALPix pixel index (Nside=64)
gz10_label int32 Morphology class (0–9)
gz10_class_name string Human-readable class name
FLUX_G/R/I/Z/W1/W2 float32 Flux densities (nanomaggies)
SERSIC float32 Sérsic index
SHAPE_E1/E2 float32 Ellipticity components
SHAPE_R float32 Effective radius (arcsec)
image_pixels_raw list[float32] (102400,) Raw image (4×160×160 flat, nanomaggies). Normalize in your training pipeline.

Image shape and channel metadata is in image_shape.json.

Loading the Dataset

from datasets import load_dataset
import numpy as np

BASE = "/mnt/si0009256k6u/ckdata/aiready/galaxyzoo/hf_dataset"
# specify cache_dir to avoid rebuilding Arrow cache on every run
ds = load_dataset("parquet", data_dir=BASE, cache_dir="/tmp/gz10_cache")

sample = ds["train"][0]
print(sample["gz10_class_name"])   # e.g. "Round Smooth Galaxies"
print(sample["gz10_label"])         # 0–9

# Reconstruct raw image array (4, 160, 160)
img = np.array(sample["image_pixels_raw"], dtype=np.float32).reshape(4, 160, 160)

# Example: per-channel asinh stretch in the training pipeline
img_norm = np.arcsinh(img / 0.1) / np.arcsinh(1.0 / 0.1)   # softscale

PyTorch DataLoader

import torch

shape = (4, 160, 160)

ds["train"].set_format("torch", columns=["image_pixels_raw", "gz10_label"])
loader = torch.utils.data.DataLoader(ds["train"], batch_size=32, shuffle=True)

for batch in loader:
    x = batch["image_pixels_norm"].reshape(-1, *shape)  # (32, 4, 160, 160)
    y = batch["gz10_label"]                              # (32,)
    break

Quality Filtering

The ETL pipeline applied:

  1. Valid label — gz10_label ∈ [0, 9]
  2. Finite scalar features — all FLUX/SHAPE/SERSIC fields must be finite
  3. Non-zero image — reject all-zero image arrays

Citation

@article{leung2019galaxyzoo,
  title={Predicting Multidimensional Stellar Chemical Abundances from Photometry},
  author={Leung, Henry W. and Bovy, Jo},
  year={2019}
}

@article{dey2019legacysurvey,
  title={Overview of the DESI Legacy Imaging Surveys},
  author={Dey, Arjun and others},
  journal={The Astronomical Journal},
  year={2019}
}
Downloads last month
46