Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

IRSA Notebooks

Euclid DR1: PHZ Catalogs

Learning Goals

By the end of this tutorial, you will:

Introduction

Euclid launched in July 2023 as a European Space Agency (ESA) mission with involvement by NASA. The primary science goals of Euclid are to better understand the composition and evolution of the dark Universe. The Euclid mission is providing space-based imaging and spectroscopy as well as supporting ground-based imaging to achieve these primary goals. These data are archived by multiple global repositories, including IRSA, where they will support transformational work in many areas of astrophysics.

Euclid Data Release 1 (DR1) comprises about 1900 sq deg of imaging, spectroscopy, and catalogs from the Euclid Wide Survey (EWS), which will eventually cover about 14,000 sq deg, and from the Euclid Deep Survey (EDS), which covers about 53 sq deg in the three Euclid Deep Fields (North, South, and Fornax). DR1 also includes several photometric redshift and instrument calibration fields, such as COSMOS, CDFS, and AEGIS. It follows Quick Release 1 (Q1), which covered about 63 sq deg with a single pass over each of the three Euclid Deep Fields and the dark cloud LDN 1641; all of the DR1 data, including the areas observed in Q1, have been reprocessed with updated pipelines and calibrations.

Among the data products included in DR1 are the catalogs created by the PHZ processing function, which estimates the photometric redshift of every source in the MER catalog from its photometry, and classifies it as a star or a galaxy. In DR1, the photometric redshifts are measured with a nearest-neighbour method (NNPZ), which compares the photometry of each source with that of a reference sample of galaxies with precise redshifts in the COSMOS field. This notebook provides an introduction to the main PHZ catalog, which contains the photometric redshift probability distribution, the unified fluxes, and the classification for each source. We follow a typical path through the catalog: we select galaxies with good photometric redshifts in a redshift range, look at them on a MER mosaic, and compare the photometric redshift of one of them with its spectrum and spectroscopic redshift. The PHZ processing for DR1 is described in detail in Euclid Collaboration: Hartley et al. (2026), and the galaxy physical properties it also provides in Euclid Collaboration: Enia et al. (2026); see the References section below. The release as a whole is described in Euclid Collaboration: Aussel et al. (2026). If you have questions about this notebook, please contact the IRSA helpdesk.

The PHZ catalog tables

Like the MER catalog (see the MER catalogs notebook), the DR1 PHZ catalogs are split by survey:

The PHZ tables have no coordinates; they are joined to the MER catalog of the same survey on object_id. In this notebook we work in the Euclid Deep Field North, so we use the deep survey tables.

Imports

1. Find the PHZ catalog tables at IRSA

The Euclid catalogs at IRSA can be listed with the list_catalogs method; here we filter on the DR1 tables.

{'euclid.euclid_dr1_objectid_tileid': 'Euclid DR1 Object ID to Tile ID Association Table', 'euclid.observation_euclid_dr1': 'Euclid DR1 CAOM Observation Table', 'euclid.plane_euclid_dr1': 'Euclid DR1 CAOM Plane Table', 'euclid.artifact_euclid_dr1': 'Euclid DR1 CAOM Artifact Table', 'euclid_dr1_mer_catalogue_wide_survey': 'Euclid DR1 MER Catalog - Wide Survey', 'euclid_dr1_mer_catalogue_deep_survey': 'Euclid DR1 MER Catalog - Deep Survey', 'euclid_dr1_mer_catalogue_wide_mode': 'Euclid DR1 MER Catalog - Wide Mode', 'euclid_dr1_mer_catalogue_deep_mode': 'Euclid DR1 MER Catalog - Deep Mode', 'euclid_dr1_mer_catalogue_deep_survey_photometry': 'Euclid DR1 MER Deep Survey Photometry Catalog', 'euclid_dr1_mer_catalogue_deep_mode_photometry': 'Euclid DR1 MER Deep Mode Photometry Catalog', 'euclid_dr1_phz_classification_wide': 'Euclid DR1 PHZ Classification Catalog - Wide', 'euclid_dr1_phz_classification_deep_survey': 'Euclid DR1 PHZ Classification Catalog - Deep Survey', 'euclid_dr1_phz_photo_z_wide': 'Euclid DR1 PHZ Photo-z Catalog - Wide', 'euclid_dr1_phz_photo_z_deep_survey': 'Euclid DR1 PHZ Photo-z Catalog - Deep Survey', 'euclid_dr1_spectro_line_features_spe_line_features_wide_survey': 'Euclid DR1 SPE Lines Catalog - Spectral Line Features - Wide Survey', 'euclid_dr1_spectro_line_features_spe_line_features_deep': 'Euclid DR1 SPE Lines Catalog - Spectral Line Features - Deep', 'euclid_dr1_spectro_z_spe_classification_wide_survey': 'Euclid DR1 SPE Redshift Catalog - Classification - Wide Survey', 'euclid_dr1_spectro_z_spe_classification_deep': 'Euclid DR1 SPE Redshift Catalog - Classification - Deep', 'euclid_dr1_spectro_z_spe_galaxy_candidates_wide_survey': 'Euclid DR1 SPE Redshift Catalog - Galaxy Candidates, Wide Survey', 'euclid_dr1_spectro_z_spe_galaxy_candidates_deep': 'Euclid DR1 SPE Redshift Catalog - Galaxy Candidates, Deep Survey', 'euclid_dr1_spectro_z_spe_quality_wide_survey': 'Euclid DR1 SPE Redshift Catalog - Quality - Wide Survey', 'euclid_dr1_spectro_z_spe_quality_deep': 'Euclid DR1 SPE Redshift Catalog - Quality - Deep'}

Learn some information about the photo-z catalog

Let’s look at the number of columns and their descriptions:

48 columns
{'object_id': 'Identifier assigned to a detected source by the Euclid MER processing pipeline. The identifier is not guaranteed to be unique.', 'phz_median': 'The median of the PHZ PDF', 'phz_70_int_1': 'The smallest PHZ PDF interval containing 70% of the probability - lower value', 'phz_70_int_2': 'The smallest PHZ PDF interval containing 70% of the probability - upper value', 'phz_90_int_1': 'The smallest PHZ PDF interval containing 90% of the probability - lower value', 'phz_90_int_2': 'The smallest PHZ PDF interval containing 90% of the probability - upper value', 'phz_95_int_1': 'The smallest PHZ PDF interval containing 95% of the probability - lower value', 'phz_95_int_2': 'The smallest PHZ PDF interval containing 95% of the probability - upper value', 'phz_mode_1': 'The first mode of the PHZ PDF', 'phz_mode_1_area': 'The total area of the first mode', 'phz_mode_2': 'The second mode of the PHZ PDF', 'phz_mode_2_area': 'The total area of the second mode', 'bias_id': 'The identifier to be used for retrieving the bias correction shift from the bias correction map', 'tom_bin_id': 'The identifier of the tomographic bin the source belongs to (Equipopulated-bins)', 'alt_tom_bin_id': 'The identifier of the alternate tomographic bin the source belongs to (Equidistant-bins)', 'pos_tom_bin_id': 'The identifier of the photometric clustering tomographic bin the source belongs to (Equipopulated-bins)', 'flag_som_tomobin': 'Flag telling if the source belong to a combination of SOM cell and Tom. bin which can be calibrated (=1) or not (=0).', 'flag_som_alt_tomobin': 'Flag telling if the source belong to a combination of SOM cell and Alt Tom. bin which can be calibrated (=1) or not (=0).', 'flag_som_pos_tomobin': 'Flag telling if the source belong to a combination of SOM cell and POS Tom. bin which can be calibrated (=1) or not (=0).', 'flux_u_ext_decam_unif': 'Unified flux recomputed after correction from galactic extinction and filter shifts', 'flux_g_ext_decam_unif': '', 'flux_r_ext_decam_unif': '', 'flux_i_ext_decam_unif': '', 'flux_z_ext_decam_unif': '', 'flux_vis_unif': '', 'flux_y_unif': '', 'flux_j_unif': '', 'flux_h_unif': '', 'fluxerr_u_ext_decam_unif': '', 'fluxerr_g_ext_decam_unif': '', 'fluxerr_r_ext_decam_unif': '', 'fluxerr_i_ext_decam_unif': '', 'fluxerr_z_ext_decam_unif': '', 'fluxerr_vis_unif': '', 'fluxerr_y_unif': '', 'fluxerr_j_unif': '', 'fluxerr_h_unif': '', 'photometric_system': 'Encode the Photometric band configuration (indicating also the number of missing columns)', 'phz_classification': 'Classification flag: 1 if the source is accepted as star, 2 if it is accepted as a galaxy, 4 if it is accepted as a QSO, 8 if the source is acce...', 'phz_flags': 'An integer containing the flags of the PHZ processing. Meaning: 0 => OK, 1 => NNPZ flag: no close neighbor, 10 not VIS detected, 11 missing band, 12 t...', 'phz_weight': 'Probability to be a usable source at VIS MAG=23.5', 'ie_cuts_weights_1': 'Vector of probability to be a usable source for VIS MAG cut 20.25', 'ie_cuts_weights_2': 'Vector of probability to be a usable source for VIS MAG cut 21.25', 'ie_cuts_weights_3': 'Vector of probability to be a usable source for VIS MAG cut 22.25', 'ie_cuts_weights_4': 'Vector of probability to be a usable source for VIS MAG cut 24.5', 'best_chi2': 'Chi2 of the best fit model or the closest neighbor', 'basic_download_data_oid': '', 'cntr': 'unique entry counter (key) number'}

2. Select galaxies between z = 0.85 and 1.85 with good photometric redshifts

We join the PHZ catalog with the MER catalog, which has the coordinates, and select galaxies in a 5 arcmin box around a position in the Euclid Deep Field North, with the following conditions:

In the same query, we also get the best spectroscopic redshift of each galaxy (spe_rank = 0), with its probability spe_z_prob and reliability spe_z_rel, from the DR1 SPE catalog (see the SPE catalogs notebook). We use a left outer join, which keeps the galaxies without a spectroscopic redshift; the condition spe_rank = 0 goes in the ON clause of the join rather than in the WHERE clause, which would drop them.

Found 321 galaxies
Loading...

3. Compare the photometric and spectroscopic redshifts

The Euclid Deep Fields are also covered by NISP slitless spectroscopy, so many of these galaxies have a spectroscopic redshift. The galaxies without one have a masked spe_z:

202 of the 321 galaxies have a spectroscopic redshift

Not all of these spectroscopic redshifts can be trusted: most of the galaxies are faint, and when a single emission line is detected, it can be attributed to the wrong line, which gives a completely wrong redshift. As in the SPE catalogs notebook, we consider a spectroscopic redshift reliable when both its probability and its reliability are high (spe_z_prob > 0.99 and spe_z_rel > 0.05):

73 of the 202 spectroscopic redshifts are reliable

Let’s compare the two redshifts of the galaxies with a reliable spectroscopic redshift:

<Figure size 600x600 with 1 Axes>

Most of the galaxies lie close to the one-to-one line. Let’s quantify this with the usual metrics: the normalized median absolute deviation (NMAD) of (zphot - zspec) / (1 + zspec), and the fraction of outliers, for which this difference is larger than 0.15. We also count how many spectroscopic redshifts fall within the 90% interval of the photometric redshift:

NMAD = 0.038, outlier fraction = 8.2%
63% of the spectroscopic redshifts are within the 90% interval of the photometric redshift

The scatter and outlier fraction are similar to those found by Euclid Collaboration: Hartley et al. (2026) for the whole Euclid Deep Field North. However, far fewer than 90% of the spectroscopic redshifts fall within the 90% interval: the photometric redshift PDFs of the deep fields are too narrow in DR1, because no systematic uncertainty was added to the fluxes in their processing (Euclid Collaboration: Hartley et al. 2026). Keep this in mind when using the PDF intervals, as we did in section 2 to select galaxies with a well-constrained photometric redshift. Try plotting the unreliable spectroscopic redshifts as well: they are scattered over the whole redshift range, because a single detected line attributed to the wrong transition gives a completely wrong redshift.

4. Read in a cutout of the VIS mosaic and overplot the galaxies

We first search for the DR1 MER mosaics that cover our region. The mosaics come in two collections, wide and deep tiles (see the MER mosaics notebook); the Deep Survey catalogs are measured on the deep tiles, so we search the deep collection.

Various image types are returned, so we keep the science images only:

Loading...

We keep the VIS mosaic, which we use for the cutouts and in Firefly below:

The MER mosaics are large, so we read only a 5 x 5 arcmin cutout of the VIS mosaic directly from the cloud, without downloading the full file (see the MER mosaics notebook for more details on the cloud access). The cloud_access column of the SIA result gives the location of the mosaic in the cloud:

's3://nasa-irsa-euclid-dr1/dr1/MER/101834044/VIS/EUC_MER_BGSUB-MOSAIC-VIS_TILE101834044-F20EA5_20250828T043943.523084Z_00.00.fits'
(3000, 3000)

We overplot the galaxies with a reliable spectroscopic redshift, colored by their spectroscopic redshift. In section 5, we look at the spectrum of the brightest of them in the H band, which we mark with a star:

<Figure size 800x700 with 2 Axes>

5. Look at the spectrum and image of one of the brightest galaxies

Here are the five brightest galaxies with a reliable spectroscopic redshift, sorted by their H-band flux:

Loading...

Retrieve the spectra

The DR1 SIR 1D spectra are stored in large FITS files with one extension (HDU) per spectrum. The table euclid.objectid_spectrafile_association_dr1 at IRSA lists, for each object ID, the file (path) and the HDU of each of its spectra. To read a spectrum, we don’t download its whole file: IRSA’s spectrumDM service reads a single HDU of a spectrum file in the cloud and returns it as a VOTable following the IVOA Spectrum Data Model, which astropy can read directly. Its URL is built from the file path and the HDU number (see the SIR 1D spectra notebook):

We find the spectra of the brightest galaxy; if a galaxy has no spectrum listed, we move on to the next brightest one:

Object 2693942861660307299: photometric redshift 0.95, spectroscopic redshift 0.991
Loading...

Each URL returns a VOTable containing the spectrum, which we read into an astropy table:

A galaxy in the Euclid Deep Fields can have spectra from both the red and the blue grism; as in the SIR 1D spectra notebook, we use the MASK column to find the flux bins not to use, and keep the spectrum with the most usable flux bins for each kind of grism:

['Red grism', 'Blue grism']

Plot the spectra

We plot the usable flux bins of the best spectrum of each grism, and mark the strongest emission lines that fall in the wavelength range of the usable flux bins at the spectroscopic redshift, to see how well the photometric redshift agrees with it:

<Figure size 1200x450 with 1 Axes>

This galaxy has spectra from both grisms. At its spectroscopic redshift, which agrees well with the photometric redshift, the Hα line falls at 1.30 micron, where the two grisms overlap, and it is seen in both spectra. This bright galaxy has a strong continuum, and its emission lines are relatively weak: the Hβ and [OIII] lines, near 1 micron in the blue grism spectrum, are not clearly detected.

Look at the galaxy on the VIS mosaic

We haven’t closed the image file above, so we use Cutout2D again to cut out a small region around the galaxy:

<Figure size 640x480 with 1 Axes>

6. Load the image in Firefly for interactive exploration

First we initialize the Firefly client as explained here so that we can send our data to Firefly for visualization.

Loading...

Visualize the FITS image with Firefly

After initializing the client, we can directly use the FITS image file URL to visualize it in Firefly.

Note this can take a while to upload the full MER image.

{'success': True}

Display the table as an overlay on the FITS image

Since our galaxies table is in memory, we write it to an IO stream (file-like object) for visualizing it in Firefly. Besides displaying the table, Firefly will also overlay the positions of the galaxies on the FITS image we visualized earlier. You can click on a table row to inspect the particular galaxy in the image, or click on an overlay marker to inspect the particular galaxy in the table.

{'success': True}

References

About this Notebook

Updated: 2026-11-12

Contact: the IRSA Helpdesk with questions or reporting problems.