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afa695b
 
 
 
 
 
 
 
 
 
 
ee1bf61
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
---
license: cc-by-sa-4.0
size_categories:
- 1M<n<10M
dataset_info:
- config_name: default
  features:
  - name: image
    dtype: image
  - name: dr8_id
    dtype: string
  - name: galaxy_size
    dtype: int64
  - name: ra
    dtype: float64
  - name: dec
    dtype: float64
  - name: brickid
    dtype: int32
  - name: objid
    dtype: int32
  - name: smooth-or-featured_smooth_fraction
    dtype: float32
  - name: smooth-or-featured_featured-or-disk_fraction
    dtype: float32
  - name: smooth-or-featured_artifact_fraction
    dtype: float32
  - name: disk-edge-on_yes_fraction
    dtype: float32
  - name: disk-edge-on_no_fraction
    dtype: float32
  - name: has-spiral-arms_yes_fraction
    dtype: float32
  - name: has-spiral-arms_no_fraction
    dtype: float32
  - name: bar_strong_fraction
    dtype: float32
  - name: bar_weak_fraction
    dtype: float32
  - name: bar_no_fraction
    dtype: float32
  - name: bulge-size_dominant_fraction
    dtype: float32
  - name: bulge-size_large_fraction
    dtype: float32
  - name: bulge-size_moderate_fraction
    dtype: float32
  - name: bulge-size_small_fraction
    dtype: float32
  - name: bulge-size_none_fraction
    dtype: float32
  - name: how-rounded_round_fraction
    dtype: float32
  - name: how-rounded_in-between_fraction
    dtype: float32
  - name: how-rounded_cigar-shaped_fraction
    dtype: float32
  - name: edge-on-bulge_boxy_fraction
    dtype: float32
  - name: edge-on-bulge_none_fraction
    dtype: float32
  - name: edge-on-bulge_rounded_fraction
    dtype: float32
  - name: spiral-winding_tight_fraction
    dtype: float32
  - name: spiral-winding_medium_fraction
    dtype: float32
  - name: spiral-winding_loose_fraction
    dtype: float32
  - name: spiral-arm-count_1_fraction
    dtype: float32
  - name: spiral-arm-count_2_fraction
    dtype: float32
  - name: spiral-arm-count_3_fraction
    dtype: float32
  - name: spiral-arm-count_4_fraction
    dtype: float32
  - name: spiral-arm-count_more-than-4_fraction
    dtype: float32
  - name: spiral-arm-count_cant-tell_fraction
    dtype: float32
  - name: merging_none_fraction
    dtype: float32
  - name: merging_minor-disturbance_fraction
    dtype: float32
  - name: merging_major-disturbance_fraction
    dtype: float32
  - name: merging_merger_fraction
    dtype: float32
  - name: file_name
    dtype: string
  - name: iauname
    dtype: string
  - name: est_petro_th50
    dtype: float64
  - name: mag_r_desi
    dtype: float32
  - name: mag_g_desi
    dtype: float32
  - name: mag_z_desi
    dtype: float32
  - name: petro_theta
    dtype: float32
  - name: petro_th50
    dtype: float32
  - name: petro_th90
    dtype: float32
  - name: petro_phi50
    dtype: float32
  - name: petro_phi90
    dtype: float32
  - name: petro_ba50
    dtype: float32
  - name: petro_ba90
    dtype: float32
  - name: elpetro_ba
    dtype: float32
  - name: elpetro_phi
    dtype: float32
  - name: elpetro_flux_r
    dtype: float32
  - name: elpetro_theta_r
    dtype: float32
  - name: elpetro_mass
    dtype: float32
  - name: sersic_n
    dtype: float32
  - name: sersic_ba
    dtype: float32
  - name: sersic_phi
    dtype: float32
  - name: elpetro_absmag_f
    dtype: float32
  - name: sersic_nmgy_f
    dtype: float32
  - name: elpetro_absmag_n
    dtype: float32
  - name: sersic_nmgy_n
    dtype: float32
  - name: elpetro_absmag_u
    dtype: float32
  - name: sersic_nmgy_u
    dtype: float32
  - name: elpetro_absmag_g
    dtype: float32
  - name: sersic_nmgy_g
    dtype: float32
  - name: elpetro_absmag_r
    dtype: float32
  - name: sersic_nmgy_r
    dtype: float32
  - name: elpetro_absmag_i
    dtype: float32
  - name: sersic_nmgy_i
    dtype: float32
  - name: elpetro_absmag_z
    dtype: float32
  - name: sersic_nmgy_z
    dtype: float32
  - name: redshift_nsa
    dtype: float32
  - name: mag_f
    dtype: float32
  - name: mag_n
    dtype: float32
  - name: mag_u
    dtype: float32
  - name: mag_g
    dtype: float32
  - name: mag_r
    dtype: float32
  - name: mag_i
    dtype: float32
  - name: mag_z
    dtype: float32
  - name: u_minus_r
    dtype: float32
  - name: elpetro_mass_log
    dtype: float32
  - name: dr7objid_ossy
    dtype: float64
  - name: ra_ossy
    dtype: float64
  - name: dec_ossy
    dtype: float64
  - name: redshift_ossy
    dtype: float64
  - name: log_l_oiii
    dtype: float64
  - name: fwhm
    dtype: float64
  - name: e_fwhm
    dtype: float64
  - name: equiv_width
    dtype: float64
  - name: log_l_ha
    dtype: float64
  - name: log_m_bh
    dtype: float64
  - name: upper_e_log_m_bh
    dtype: float64
  - name: lower_e_log_m_bh
    dtype: float64
  - name: log_bolometric_l
    dtype: float64
  - name: ra_alf
    dtype: float64
  - name: dec_alf
    dtype: float64
  - name: W50
    dtype: float64
  - name: sigW
    dtype: float64
  - name: W20
    dtype: float64
  - name: HIflux
    dtype: float64
  - name: sigflux
    dtype: float64
  - name: SNR
    dtype: float64
  - name: RMS
    dtype: float64
  - name: Dist
    dtype: float64
  - name: sigDist
    dtype: float64
  - name: logMH
    dtype: float64
  - name: siglogMH
    dtype: float64
  - name: ra_jhu
    dtype: float32
  - name: dec_jhu
    dtype: float32
  - name: fibre_sfr_avg
    dtype: float32
  - name: fibre_sfr_entropy
    dtype: float32
  - name: fibre_sfr_median
    dtype: float32
  - name: fibre_sfr_mode
    dtype: float32
  - name: fibre_sfr_p16
    dtype: float32
  - name: fibre_sfr_p2p5
    dtype: float32
  - name: fibre_sfr_p84
    dtype: float32
  - name: fibre_sfr_p97p5
    dtype: float32
  - name: fibre_ssfr_avg
    dtype: float32
  - name: fibre_ssfr_entropy
    dtype: float32
  - name: fibre_ssfr_median
    dtype: float32
  - name: fibre_ssfr_mode
    dtype: float32
  - name: fibre_ssfr_p16
    dtype: float32
  - name: fibre_ssfr_p2p5
    dtype: float32
  - name: fibre_ssfr_p84
    dtype: float32
  - name: fibre_ssfr_p97p5
    dtype: float32
  - name: total_ssfr_avg
    dtype: float32
  - name: total_ssfr_entropy
    dtype: float64
  - name: total_ssfr_flag
    dtype: float64
  - name: total_ssfr_median
    dtype: float32
  - name: total_ssfr_mode
    dtype: float32
  - name: total_ssfr_p16
    dtype: float32
  - name: total_ssfr_p2p5
    dtype: float32
  - name: total_ssfr_p84
    dtype: float32
  - name: total_ssfr_p97p5
    dtype: float32
  - name: total_sfr_avg
    dtype: float32
  - name: total_sfr_entropy
    dtype: float64
  - name: total_sfr_flag
    dtype: float32
  - name: total_sfr_median
    dtype: float32
  - name: total_sfr_mode
    dtype: float32
  - name: total_sfr_p16
    dtype: float32
  - name: total_sfr_p2p5
    dtype: float32
  - name: total_sfr_p84
    dtype: float32
  - name: total_sfr_p97p5
    dtype: float32
  - name: photoz_id
    dtype: float64
  - name: ra_photoz
    dtype: float64
  - name: dec_photoz
    dtype: float64
  - name: photo_z
    dtype: float64
  - name: photo_zerr
    dtype: float64
  - name: spec_z
    dtype: float64
  - name: mag_abs_g_photoz
    dtype: float64
  - name: mag_abs_r_photoz
    dtype: float64
  - name: mag_abs_z_photoz
    dtype: float64
  - name: mass_inf_photoz
    dtype: float64
  - name: mass_med_photoz
    dtype: float64
  - name: mass_sup_photoz
    dtype: float64
  - name: sfr_inf_photoz
    dtype: float64
  - name: sfr_sup_photoz
    dtype: float64
  - name: ssfr_inf_photoz
    dtype: float64
  - name: ssfr_med_photoz
    dtype: float64
  - name: ssfr_sup_photoz
    dtype: float64
  - name: sky_separation_arcsec_from_photoz
    dtype: float64
  - name: redshift
    dtype: float64
  - name: est_petro_th50_kpc
    dtype: float64
  - name: __index_level_0__
    dtype: int64
  splits:
  - name: train
    num_bytes: 766026203199.42
    num_examples: 8474566
  - name: test
    num_bytes: 7814721036.77
    num_examples: 86471
  - name: validation
    num_bytes: 7819945863.13
    num_examples: 86499
  download_size: 779236554227
  dataset_size: 781660870099.3201
configs:
- config_name: default
  data_files:
  - split: train
    path: data/train-*
  - split: test
    path: data/test-*
  - split: validation
    path: data/validation-*
tags:
- astronomy
---
# Galaxies for training astroPT

Here we have ~8.5 million galaxy cutouts from the [DESI legacy survey DR8](https://www.legacysurvey.org/dr8/description/).
The cut outs are 512x512 pixel jpg images centred on the galaxy source.

I've split away 1% of the images into a test set, and 1% into a validation set.
The remaining 98% of the images comprise the training set.

There is also accompanying metadata!
To combine the metadata with the galaxy images you can do (for example):
```python
from datasets import load_dataset, concatenate_datasets

# Load the `galaxies' dataset with metadata
galaxies = load_dataset("Smith42/galaxies", streaming=True)
metadata = load_dataset("Smith42/galaxies_metadata", streaming=True).remove_columns("dr8_id")
combined = concatenate_datasets([galaxies['train'], metadata['train']], axis=1)
```
The metadata is also available in parquet format in the root dir of this repo. 
You can link the metadata with the galaxies via their dr8_id.

## Useful links

Paper here: [https://arxiv.org/abs/2405.14930](https://arxiv.org/abs/2405.14930)

Models here: [https://huggingface.co/Smith42/astroPT](https://huggingface.co/Smith42/astroPT)

And here: [https://huggingface.co/Smith42/astroPT_v2.0](https://huggingface.co/Smith42/astroPT_v2.0)

Code here: [https://github.com/smith42/astroPT](https://github.com/smith42/astroPT)

Upstream catalogue is [on Zenodo](https://zenodo.org/records/8360385) and paper describing the catalogue is available as [Walmsley+2023](https://doi.org/10.1093/mnras/stad2919).

If you find this dataset useful please consider citing the sources below 🚀🚀:

```
@article{ref_dey2019,
	author = {Dey, A. and Schlegel, D. J. and Lang, D. and Blum, R. and Burleigh, K. and Fan, X. and Findlay, J. R. and Finkbeiner, D. and Herrera, D. and Juneau, S. and others},
	title = {{Overview of the DESI Legacy Imaging Surveys}},
	journal = {Astronomical Journal},
	volume = {157},
	number = {5},
	pages = {168},
	year = {2019},
	issn = {1538-3881},
	publisher = {The American Astronomical Society},
	doi = {10.3847/1538-3881/ab089d}
}
```

```
@article{ref_walmsley2023,
	author = {Walmsley, M. and G{\ifmmode\acute{e}\else\'{e}\fi}ron, T. and Kruk, S. and Scaife, A. M. M. and Lintott, C. and Masters, K. L. and Dawson, J. M. and Dickinson, H. and Fortson, L. and Garland, I. L. and others},
	title = {{Galaxy Zoo DESI: Detailed morphology measurements for 8.7M galaxies in the DESI Legacy Imaging Surveys}},
	journal = {Monthly Notices of the Royal Astronomical Society},
	volume = {526},
	number = {3},
	pages = {4768--4786},
	year = {2023},
	issn = {0035-8711},
	publisher = {Oxford Academic},
	doi = {10.1093/mnras/stad2919}
}
```

```
@article{ref_smith2024,
	author = {Smith, M. J. and Roberts, R. J. and Angeloudi, E. and Huertas-Company, M.},
	title = {{AstroPT: Scaling Large Observation Models for Astronomy}},
	journal = {ArXiv e-prints},
	year = {2024},
	eprint = {2405.14930},
	doi = {10.48550/arXiv.2405.14930}
}
```