Open Access
Issue
A&A
Volume 707, March 2026
Article Number A226
Number of page(s) 13
Section Astronomical instrumentation
DOI https://doi.org/10.1051/0004-6361/202555106
Published online 17 March 2026

© The Authors 2026

Licence Creative CommonsOpen Access article, published by EDP Sciences, under the terms of the Creative Commons Attribution License (https://creativecommons.org/licenses/by/4.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

This article is published in open access under the Subscribe to Open model.

Open Access funding provided by Max Planck Society.

1 Introduction

Euclid was launched in July 2023 and started its nominal observations, the Euclid Wide Survey (EWS), in February 2024. An overview of the mission, including early results from the Performance Verification (PV), is given in Euclid Collaboration: Mellier et al. (2025). Euclid’s two instruments, the optical imager VIS and the Near-Infrared Spectrometer and Photometer (NISP), are described in detail respectively in Euclid Collaboration: Cropper et al. (2025) and Euclid Collaboration: Jahnke et al. (2025). Both instruments can observe the sky simultaneously by means of a dichroic beamsplitter. The VIS optical path is purely reflective, whereas NISP implements the dichroic in transmission and carries three filters and four lenses in its fore-optics. For Euclid to achieve its demanding scientific goals, the accurate masking of unwanted optical features is essential for uncontaminated source photometry.

The NISP delivers photometry in three bands (YE, JE, HE) to an average 5σ point-source depth of about 24.4 (Euclid Collaboration: Jahnke et al. 2025) in the EWS. In Fig. 1, we show the nominal light path through the NISP optical elements. Although the optics of Euclid have a complex interference coating layout for passband-forming and optical optimisation, several parasitic reflections are still seen within the photometric (NISP-P) data. In this paper we describe and model the two most common parasitic reflections in detail, the NISP dichroic and filter ghosts.

The two features are caused by an internal double-reflection inside the respective optical element. The added optical path length – two times the traversed element thickness in combination with the respective refractive index – results in a defocused image of the ghosts on the focal plane array (FPA). The considerable oblique angles of incidence (AOIs) in Euclid’s telescopic off-axis design (Racca et al. 2016) are naturally responsible for the displacement of the dichroic ghosts from their source stars in the FPA (see Fig. 1; bottom). As these offsets are related to the incoming AOIs, we see variations across the FPA. We note here that VIS also has a dichroic ghost that is described in Euclid Collaboration: Cropper et al. (2025) and Euclid Collaboration: McCracken et al. (2026). However, the incoming AOIs are almost normal to the filter surface, so the displacement of the filter ghosts from their source stars arises mostly from the internal reflection off the spherically convex surface of the entrance side of the filter (Euclid Collaboration: Jahnke et al. 2025).

Other unwanted effects not discussed in detail in this paper include persistence arcs from the filter wheel, arc-like reflections from bright stars likely caused by the NISP lenses, and glints from out-of-field bright stars. Brief descriptions and examples are shown in Figs. 19–21 of Euclid Collaboration: Jahnke et al. (2025).

In Sect. 2, we describe the data used to characterise the dichroic and filter ghosts, while the detection algorithms are described in Sect. 3. We describe the characteristic of the dichroic and filter ghosts in Sects. 4 and 5, respectively. Finally, we conclude in Sect. 6. All magnitudes in this paper, unless stated otherwise, are in the AB system and all object magnitudes used for the ghost relations that are beyond the NISP saturation limit are transformed from Gaia as in Euclid Collaboration: Polenta et al. (2026). On-sky sizes in figures are reported using a pixel scale of 0.3″ pixel−1 (Euclid Collaboration: Jahnke et al. 2025).

2 Data

To model the NISP dichroic and filter ghosts, we looked at processed NISP-P data from PV, with the most current version of the near-infrared (NIR) processing function (PF) (see Euclid Collaboration: Polenta et al. 2026 for details) at the time of data extraction. In order to have bright stars in multiple positions on the detector to fully cover the FPA, we chose observations with a large number of widely dithered exposures. This includes (i) the self-calibration field (Euclid Collaboration: Mellier et al. 2025) near the north ecliptic pole consisting of 60 dithers within a 1 radius; (ii) observations of the Hubble Space Telescope CALSPEC white dwarf GRW+70 5824 (Bohlin et al. 2020) used for spectrophotometric calibration (Euclid Collaboration: Copin et al. 2026), placing the star at five positions on each detector; and (iii) the survey validation observations, which consisted of visits of multiple different fields, including the Chandra Deep Field South (CDFS; Giacconi et al. 2001), COSMOS (Scoville et al. 2007), the Euclid Deep Field North (EDF-N; Euclid Collaboration: Mellier et al. 2025), GOODS-N (Giavalisco et al. 2004), and the Euclid Deep Field South (EDF-S; Euclid Collaboration: Mellier et al. 2025).

This resulted in a total of 3270 images available for ghost detection, which contain 6023 instances where a suitably bright star falls onto the detectors.

Thumbnail: Fig. 1 Refer to the following caption and surrounding text. Fig. 1

<mono>Zemax</mono> ray tracing. Top panel: nominal light path through the NISP optical elements. We note that the dichroic is actually a part of the telescope and not of the NISP. The different colours show the light paths for three different sources in the field of view. For details of the optical layout and components (see Euclid Collaboration: Jahnke et al. 2025). Bottom panel: selecting the middle (green) rays of the top panel, we show how the light is internally reflected inside the dichroic to produce a ghost that is offset from the source position. A similar double reflection happens in the filter to produce the filter ghost (suppressed in this plot for clarity).

3 Detection

During the NISP ground test campaign (which was performed on the NISP flight model, and thus excludes the dichroic; see Euclid Collaboration: Gillard et al. 2026 for full details), a number of tests were undertaken inside a vacuum chamber to verify NISP’s optical performance. One such test provided a rough estimate of filter ghost images within NISP. All measurements were compared with Zemax simulations to validate and clarify the output data from the NISP system. This included a model of the dichroic ghost to estimate the expected shape and offsets of the dichroic ghosts. The main purpose of these dichroic ghost simulations was to enable the inclusion of realistic dichroic ghosts in the NISP simulations and to prepare the processing pipelines for ghost masking. These simulations provided a good estimate for the dichroic ghost, but were not built to produce reliable models for direct comparison with real data.

Therefore, initial flight masking models for both the dichroic ghosts and the filter ghosts were manually rebuilt using a limited number of self-calibration observations. Initially, for each observation each of the 16 H2RG detectors was treated separately, and the position of the bright star along with the positions of the resulting dichroic and filter ghosts within the detector were recorded. The offsets between the position of the bright star in FPA coordinates (where the NISP pixel pitch is 18 µm in both direction; Euclid Collaboration: Jahnke et al. 2025) and the positions of the dichroic and filter ghosts were then used to build the initial 2D models to describe the ghost positions.

Next, a code to automatically find and determine the positions and other characteristics of the ghosts was used on all the available data. These characteristics were used to build a new ghost model. As better methods were developed and tested, this code was run multiple times, refining both the detection algorithm and the ghost model, which served as the initial guess for predicting ghost positions at each iteration. In this way, the model can be easily updated in the future once more data are available. As the model is built on FPA coordinates, it is independent of the detector positions and the gaps within the FPA footprint. Thus, the code was also updated to work on bright star and ghost pairs that span across different detectors. From the data, it was found that only brighter stars with YE, JE, HE <10 produce dichroic and filter ghosts of concern that must be masked out. Next, we describe the detection algorithm.

First, in order to find bright near-infrared stars in the footprint, for each observation, all stars with J2MASS,Vega < 8 and within 0.5 radius are queried from 2MASS (Skrutskie et al. 2006). For each star that falls onto a detector, the position of the star in pixel coordinates is determined using a 2D Gaussian centroid and is converted into FPA coordinates. Due to the saturated nature of these stars in the Euclid data, the final magnitudes were obtained by transforming their Gaia magnitudes to the Euclid system (to be consistent with the NIR PF, see Euclid Collaboration: Polenta et al. 2026). Then, using the initial guess for the ghost position, 60 × 60 pixel (80 × 80 pixel) cutouts are created for the dichroic (filter) ghost. A 2D background for the cutouts is calculated by interpolating over a low-resolution background map. This low-resolution background map is created from the median within 10 × 10 super pixels (resulting in 6 × 6 and 8 × 8 maps for the dichroic and filter ghost cutouts, respectively); then a 3 × 3 pixel sliding 2D median filter is applied to suppress local under- and overestimations. After background subtraction, astronomical sources with a minimum size of four pixels and with a signal exceeding a threshold based on the background root mean square (RMS) (×2 for the dichroic and ×18 for the filter ghosts) are subtracted from the data by replacing the pixel values with the median background subtracted value.

To determine the positions and radii of the ghosts, we first renormalise the cutouts using a 10%, 90% clipping to boost the contrast. We then perform edge detection using the Canny filter (Canny 1986) implemented in the <mono>skimage</mono> Python package (van der Walt et al. 2014). Afterwards, a circular Hough transformation (Illingworth & Kittler 1987) is used to detect circular shapes in the edge image. The final radius of the ghosts and the corresponding central position are extracted from the Hough transformation, and converted to FPA coordinates for use in determining the models.

Due to the relatively constant radius of the dichroic ghost (see Sect. 4), the circular Hough transformation easily extracts the correct radius when using an initial estimate of 15–36 pixels (see Fig. 2). The filter ghosts are different, though. The thin ring present in them is highly field-dependent in shape and size (see Sect. 5), and results in both an inner and outer radius in the Canny edge image. Therefore, the true radius of the filter ghosts are harder to automatically determine with a fixed radius range. To counter this, a Gaussian profile was fitted to the total radial profile of the filter ghost cutouts, excluding the central region containing the cusp (see Fig. 3). The mean of the fitted Gaussian then provided an estimate of the radius for each filter ghost. These radius measurements were then used to build a simple model of the filter-ghost radius as a function of FPA position and then reincorporated into the code to allow a dynamic range for the Hough transformation. The initial radius range for the filter ghost is thus from rmod − 10 to rmod + 5 pixels, where rmod is the estimated radius from the simple model.

Another complication arises from the non-circular (elliptical) shape of the filter ghost. Therefore, we use an ellipse Hough transformation (Xie & Ji 2002) to look for the ring. The results are then filtered by the minimum values (20 pixels) and maximum values (30 pixels for the minor axis and 35 pixels for major axis) seen for the radii, as well as by a ratio of 1.3 between the minor and major axis, before finding the highest peak determined from the edge image. While the offsets of the filter ghost do not depend on the wavelength, the shape and brightness are wavelength dependent. Therefore, each filter needs to be treated separately in this analysis. Only the more compact filter ghosts in the YE band data were easily detectable in an automatic way.

Thus, the offsets of the filter ghost were only measured for the YE band on the individual data, while the shape (radius and orientation) of each filter was found separately on the stacked data (see Sect. 5).

Thumbnail: Fig. 2 Refer to the following caption and surrounding text. Fig. 2

Example of a dichroic ghost (left, 60 × 60 pixel – 18″ × 18″– cutout) and the automatic detection of the shape (red dashed line) based on edge detection using a circular Hough transformation (right). Also shown is the final model (cyan solid line) used for Q1 based on the detection values and the radius derived based on the magnitude of the source star (see Sect. 4).

Thumbnail: Fig. 3 Refer to the following caption and surrounding text. Fig. 3

Examples of filter ghosts near the FPA centre (bottom row) and near a corner (top row), highlighting the large field dependence. The left column shows an 80 × 80 pixel (24″ × 24″) cutout along with the automatic detection of the shape (red dashed line). Also shown is the final model (cyan solid line) used for Q1 based on the detection values, and the radius derived based on the magnitude of the source star (see Sect. 5). The middle column shows the total radial profile of the filter ghost cutout, and the Gaussian fit used as an initial guess for the detection radius. In the right column we display the edge image created from the Canny filter and the automatic detection of the shape (red dashed line) based on an elliptical Hough transformation.

Thumbnail: Fig. 4 Refer to the following caption and surrounding text. Fig. 4

Shape of the dichroic ghost (left panel) and filter ghost (right panel) as a function of field position. For the dichroic ghosts, the images are made from a median combination of 60 × 60 pixel (18″ × 18″) cutouts based on a 20-fold binning on the FPA, restricted to a single magnitude bin in HE band. For the filter ghosts, the images are made from a median combination of 80 × 80 pixel (24″ × 24″) cutouts on a 20-fold binning on the FPA, restricted to a single magnitude bin in the YE band. The number of cutouts used to create each median is given in the top right of each median cutout. For the blank square we could not find suitable stars within that region of the FPA. The artefacts, such as arcs, streaks, or circular residuals resulting from inadequate masking in the individual images, are caused by having data from few ghosts.

Thumbnail: Fig. 5 Refer to the following caption and surrounding text. Fig. 5

Quiver plots showing the offset in millimetres from the source star to the dichroic (left) and filter ghost (right) across the FPA, i.e. −pOffset. The matrices used to describe these models are given in Appendices A and B.

4 Dichroic ghost

Here we describe the general characteristics of the NISP-P dichroic ghost. The shape of the dichroic ghost is characterised by a doubled-ringed doughnut with an off-centre hole that is due to Euclid’s off-axis design. The general shape and size of the dichroic ghost changes very little as a function of FPA position (see Fig. 4; left).

4.1 Offsets

The offsets (defined as the difference between the centre of the circular fit determined for the dichroic ghost and the central position of the source star, in millimetres) on the YMOSA- and ZMOSA-axes for the dichroic ghost are both well described by third-order polynomials in the form of pOffset(YMOSA,ZMOSA)=i,jci,jYMOSAiZMOSAjMathematical equation: ${p_{{\rm{Offset}}}}\left( {{Y_{{\rm{MOSA}}}},{Z_{{\rm{MOSA}}}}} \right) = \mathop \sum \limits_{i,j} {c_{i,j}} * Y_{{\rm{MOSA}}}^i * Z_{{\rm{MOSA}}}^j$(1)

where pOffset provides the offset between the central positions of the dichroic ghost and the bright star pair in a given axis and ci,j is the matrix describing the coefficients of the polynomial for the offset in that axis. These matrices for the model used for Euclid’s first Quick Data Release (Q1) are given in Appendix A. As described in the Introduction, the displacement of the dichroic ghost on the FPA arises from the oblique AOIs from Euclid’s off-axis design. The total offset between the source star and the dichroic ghost is in the range 3–6 mm (167–335 pixels; see Fig. 5; left). The larger component on the YMOSA-axis is always positive when moving from the source star to the dichroic ghost position, while the offset in the ZMOSA-axis is smaller, but ranges from negative to positive. The RMS for the Q1 model is 0.082 mm (4.6 pixels).

Thumbnail: Fig. 6 Refer to the following caption and surrounding text. Fig. 6

Appearance of the dichroic ghost (top row) and filter ghost (bottom row) as a function of source-star brightness. For the dichroic ghosts, the images are made from a median combination of 60 × 60 pixel (18″ × 18″) cutouts, restricted to one region of the FPA for the HE band. For the filter ghosts, the images are made from a median combination of 80 × 80 pixel (24″ × 24″) cutouts, restricted to the central region of the FPA for the YE band. The number of cutouts used to create each median is given in the top right of each median cutout.

4.2 Magnitude relations

Due to slight differences in the internal structure, the dichroic ghosts cannot be modelled and subtracted, and thus must be masked to avoid contamination of photometric measurements. To meet the top level requirement of a relative photometric error below 1.5% (Euclid Collaboration: Mellier et al. 2025), the detection-chain error must be smaller than 1% (Euclid Collaboration: Schirmer et. al. 2014). Using the error estimates from Euclid Collaboration: Schirmer et. al. (2014) and the targeted 5σ point-source depth in the EWS, it was calculated that this requirement equates to a maximum contribution from a ghost of 0.0866 e pixel−1.

To determine the radius within which we need to mask the dichroic ghosts, Rmask, we need to determine at which radius its flux falls below the maximum contribution allowed from ghosts set by the requirement. Since the surface brightness of the dichroic ghost is dependent on the magnitude of the source star (see Fig. 6; top), as well as the wavelength it is observed in (see Fig. 7; top), each filter was treated separately while combining ghosts from source stars with similar magnitudes. For each dichroic ghost, we constructed 100 radial profiles starting from the centre position of the dichroic ghost and spread over the entire circumference to a radius of 50 pixels. A sigma-clipped median of these radial profiles was then calculated for multiple dichroic ghosts with similar source-star magnitudes to create a smooth radial profile. After subtracting any residual background, which was calculated from the median of the radial profile at a radius greater than 30 pixels, the radius at which the flux fell below the requirement was recorded. All measurements were then used to fit a power law, in the form of Rmask=R0mΓ,Mathematical equation: ${R_{{\rm{mask}}}} = {R_0}{m^{\rm{\Gamma }}},$(2)

where R0 describes a radius in pixels and m the source-star magnitude. The coefficients found and used for Q1 are given in Table 1. The relation for each filter is shown in Fig. 8 (left). These relations were used to compute the radius of the dichroic-ghost mask based on the magnitude of the source star.

To determine the minimum brightness of a source star that would create a dichroic ghost that requires masking (mmin), we computed the surface brightness of the dichroic-ghost profiles calculated in the previous step. All flux within the previously calculated radius was included. A straight line was then fit to the mean flux per pixel in the dichroic ghost versus the flux from the source star. The magnitude of the source star at which the dichroic-ghost flux reached the requirement was then assigned as the mmin for the respective filter. The values used for Q1 are given in Table 1. These relations, as a function of source-star magnitude, are shown in Fig. 9 (left).

The NISP ground tests initially estimated the ratio of the peak flux in the source star to the peak surface brightness of filter ghosts to be 8 × 10−8. Using the NISP-P model PSF and zero points from Euclid Collaboration: Jahnke et al. (2025), we estimate the peak flux from the magnitude of the source star and find dichroic ghost ratios of 5.8 × 10−9, 5.7 × 10−9, and 8.3 × 10−9 for YE, JE, and HE respectively. These are an order of magnitude below the initial estimates, exceeding the predictions and highlighting the optical performance of NISP.

Thumbnail: Fig. 7 Refer to the following caption and surrounding text. Fig. 7

Shape of the dichroic ghost (top row) and filter ghost (middle and bottom rows) as a function of waveband. For the dichroic ghosts, the images are made from a median combination of 60 × 60 pixel (18″ × 18″) cutouts, restricted to one region of the FPA and a single magnitude bin. For the filter ghosts, since there is a dependence of the shape on the FPA position, the images are made from a median combination of 80 × 80 pixel (24″ × 24″) cutouts, restricted to either the central region (middle) or a corner region (bottom) of the FPA and a single magnitude bin. The number of cutouts used to create each median is given in the top right of each median cutout.

Table 1

Q1 ghost masking parameters.

Thumbnail: Fig. 8 Refer to the following caption and surrounding text. Fig. 8

Radius-magnitude relation, given by the coefficients in Table 1, for each filter for the dichroic ghost (left) and filter ghost (right; see Sects. 4.2 and 5.2).

5 Filter ghost

Here we describe the general characteristics of the NISP-P filter ghost. The shape of the filter ghost varies greatly depending on the position on the FPA (see Fig. 4; right). The variations show a radially symmetric pattern, with the centre of the variations offset from the centre of the FPA at roughly YMOSA = −10 mm. The general shape consists of a thin ring and a central cusp. For small offsets from the pattern centre or off-centre FPA position, the ring is circular in shape and the cusp is point-like, while larger radial offsets result in the elongation of the ring and the central cusp. Along the central YMOSA- and ZMOSA-axis, the elongation of the ring is small while the central cusp changes into a four-point star-like shape with a radial axis and an axis perpendicular to the radial component. Towards the corners, the elongation is more pronounced, resulting in an oval shape, while the central cusp elongates much more in the plane perpendicular to the radial axis, thus becoming one-sided and resulting in a bird-shaped feature. These changes are the result of the geometric distortion introduced by the spherically convex surface of the entrance side of the filters. The curvature results in slightly different path lengths for the light during the second internal reflection, thus affecting the final image of the filter ghost. The size of the filter ghost and the sharpness of the ring and central cusp are also dependent on wavelength; the redder filters produce a more out-of-focus image (see Fig. 7; middle and bottom). This is due to the different filter thicknesses, which in turn result in slightly different path lengths, and thus focal points on the detector. Internal structures within the filter ghosts (multiple thin concentric rings) are seen only for the brightest stars up to YE, JE, HE > 4 (brighter stars are avoided by the survey, Euclid Collaboration: Mellier et al. 2025).

Spatial variation of the ratio of the major to minor axis of the filter ghost, which describes the elongation, is modelled by a second-order polynomial, pRadius in the same form as Eq. (1). The model shows the off-centre radially dependent pattern, where the filter ghost appears circular towards the centre of the pattern and more elongated, up to a ratio of 1.22, towards the corners (see Fig. 10; left). The orientation (in radians) of the elongation is also modelled by a second-order polynomial, pOrientation, of the same form. There is no rotational preference (set to 0) along the central axes, where the shape is more circular (see Fig. 10; right). Diagonal symmetry, i.e. between opposite corners, is seen with increasing negative rotation to the bottom left and increasing positive rotation towards the bottom right. The rotation is measured in radians from the YMOSA-axis in a clockwise direction, with a maximum of just over 1 radian (about 60) seen in both directions. The matrices containing the coefficients for these two models used for Q1 are given in Appendix B. The RMS for the ratio and orientation Q1 models is 0.23 and 0.63 radians respectively.

Thumbnail: Fig. 9 Refer to the following caption and surrounding text. Fig. 9

Mean flux per pixel in the dichroic (left) and filter (right) ghost, calculated from the smoothed radial profiles as described in Sects. 4.2 and 5.2. The minimum brightness for masking is thus determined for each filter by the requirement that the ghost must contribute less than 0.0866 e pixel−1.

Thumbnail: Fig. 10 Refer to the following caption and surrounding text. Fig. 10

Filter ghost shape and orientation. Left: model of the filter ghost’s major-to-minor axis ratio, i.e. the elongation. Right: model of the orientation of the filter ghost in radians, measured clockwise from the YMOSA-axis. The matrices used to describe these models are given in Appendix B.

5.1 Offsets

The offsets (defined as the difference between the centre of the elliptical fit determined for the filter ghost and the central position of the source star, in millimetres) on the YMOSA- and ZMOSA-axes for the filter ghost are also both well described by third-order polynomials in the same form as Eq. (1). The matrices for the model used for Q1 are given in Appendix B. Similar to the shape variations, the offset for the filter ghost from the source star greatly varies across the FPA, ranging between 1 mm (56 pixels) and 17 mm (949 pixels), with the same off-centre radially symmetric pattern (see Fig. 5; right). Near the pattern centre–off-centre FPA position, the offset is as small as a few millimetres, while at greater radial positions the offsets are as large as 17 mm. The offset to the filter ghost from the source star is always positioned towards the pattern centre–off-centre FPA position. Again, these variations are due to the spherically convex surface of the entrance side of the filter. The curvature results in slightly different AOIs for the light during the second internal reflection, while the concave shape (as see from within the filter) results in the light path bending inwards, changing the offset of the filter ghost in a radially dependent way. The RMS for the Q1 model is 0.045 mm (2.5 pixels).

5.2 Magnitude relations

The surface brightness of the filter ghost is also dependent on the magnitude of the source star (see Fig. 6; bottom), and on the wavelength it is observed in (see Fig. 7; middle and bottom). Thus, to determine Rmask for the filter ghosts, we followed the same approach as done for the dichroic ghost described in Sect. 4.2; however, given that the radius and elongation of the filter ghosts depends not only on the wavelength, but also on the position on the FPA, only filter ghosts from the central region, where the shape is circular, are used to determine the radius-magnitude relation. The coefficients found and used for Q1 for Eq. (2) are given in Table 1. The relation for each filter is shown in Fig. 8 (right). These relations are used to compute the minor axis of the filter-ghost mask based on the magnitude of the source star. The major axis of the filter-ghost mask, which depends on the position on the FPA, is then obtained using the ratio model described in Sect. 5. The details on how this is done are described in Appendix B.

To determine mmin for the filter ghost we follow the same approach as done for the dichroic ghost described in Sect. 4.2, again restricting the calculation to the central regions where the filter ghost is circular in shape. The values used for Q1 are given in Table 1, with the data and fits shown in Fig. 9 (right).

Calculating the same ratios of source-star peak flux to ghost brightness for the filter ghosts as was done for the dichroic ghosts in Sect. 4.2, we find similar values for the filter ghost, with ratios of 1.3 × 10−8, 8.5 × 10−9, and 4.6 × 10−9 for YE, JE, and HE, respectively.

6 Discussion

As the data used to calculate these ghost models were from PV, they occurred before the first partial decontamination in March 2024. This decontamination was initiated after a noticeable throughput change, and resulted in two rounds of partial decontamination by warming up specific mirror surfaces during the subsequent period of heavy ice contamination between April and June 2024. An analysis of the dichroic ghost using data just before and after the March 2024 decontamination was performed as a sanity check to ensure no significant shifts in the ghost position occurred due to the decontamination, possibly due to changes in the alignment of the optics. No significant shifts between the data before and after the decontamination were found for the dichroic ghost. An analysis of the throughput of the dichroic and filter ghosts within NISP-P due to ice contamination was not conducted within the scope of this project and will be discussed elsewhere.

In this paper, we describe the characteristics and detection of the dichroic and filter ghosts in NISP-P images. For the detection, we developed an algorithm to automatically find and measure the positions of the dichroic and filter ghosts on NISP-P data. We presented the models used to describe the offsets, the radius, the shape, and the brightness of the dichroic and filters ghosts. The values found from selected PV data for the coefficients used in the models are given in Table 1, Appendices A and B.

From these data, we find a small range of offsets (3–6 mm or 167–335 pixels) for the dichroic ghosts, with a much larger range of 1–17 mm (56–949 pixels) for the filter ghosts. The shape of the dichroic ghosts is mostly circular and changes very little across the FPA or between filters. The radius of the circular dichroic-ghost mask ranges from 21 to 34 pixels based purely on the magnitude of the source star. The shape of the filter ghosts, however, depends greatly on their position on the FPA and on the filter of the observation. The shape is elliptical in nature, and thus requires an elliptical mask; the minor axis ranges from 23 to 45 pixels based on the magnitude of the source star, and the major axis up to 1.22 times greater than the minor axis depending on the position on the FPA. The surface brightness of both the dichroic and filter ghosts are roughly an order of magnitude below the initial exceptions from the NISP ground tests; where only stars with magnitudes <9–11 produce ghosts needing to be masked, which highlights the on-sky performance of NISP. On average, the dichroic ghosts are fainter than the filter ghosts in the same filter, but different relations between the surface brightness with respects to the wavelength are observed.

These models are used to mask affected pixels, where only ghosts resulting from stars are considered; while extended sources which are brighter than the magnitude limit and their respective ghosts are not considered, in the Q1 data release. While a description of how to use the matrices presented in this paper correctly, with examples using Python, is provided in Appendices A and B, the details of the ghost-masking routine within the NIR PF is described in Euclid Collaboration: Polenta et al. (2026). The further use of these masks during the stacking and catalogue creation is described in Euclid Collaboration: Romelli et al. (2026). For the Q1 data release, we find the total area lost due to masking of ghosts, persistence arcs, saturated stars, cosmic rays, dead pixels, and detector gaps is ∼4%. This percentage ranges between 2 and 10% over the Q1 footprint with varying stellar density. Even for the highest stellar density regions, this number falls below the error budget of 12% for area lost due to these effects in order for Euclid to comply with the science goals of the mission. As the survey continues, and more data become available, the models will be recomputed to update these parameters. However, we do not expect significant changes in the models over the lifetime of the mission resulting from optic shifts or ageing damage due to changes in the optics’ coatings. While the persistence arcs from the filter wheel are masked in the Q1 data (Euclid Collaboration: Polenta et al. 2026), further work to mask the other unwanted optical effects seen within the NISP-P data, such as the arc-like reflections from the NISP lenses and glints from out-of-field bright stars, is only planned for future data releases.

Acknowledgements

The authors at MPIA acknowledge funding by the German Space Agency DLR under grant number 50 QE 2303. We thank Pierre-Antoine Frugier for providing useful comments to improve the publication. The plots in this publication were prepared with <mono>Matplotlib</mono> (Hunter 2007). The Euclid Consortium acknowledges the European Space Agency and a number of agencies and institutes that have supported the development of Euclid, in particular the Agenzia Spaziale Italiana, the Austrian Forschungsförderungsgesellschaft funded through BMK, the Belgian Science Policy, the Canadian Euclid Consortium, the Deutsches Zentrum für Luft- und Raumfahrt, the DTU Space and the Niels Bohr Institute in Denmark, the French Centre National d’Etudes Spatiales, the Fundação para a Ciência e a Tecnologia, the Hungarian Academy of Sciences, the Ministerio de Ciencia, Innovación y Universidades, the National Aeronautics and Space Administration, the National Astronomical Observatory of Japan, the Netherlandse Onderzoekschool Voor Astronomie, the Norwegian Space Agency, the Research Council of Finland, the Romanian Space Agency, the State Secretariat for Education, Research, and Innovation (SERI) at the Swiss Space Office (SSO), and the United Kingdom Space Agency. A complete and detailed list is available on the Euclid web site (www.euclid-ec.org).

References

  1. Bohlin, R. C., Hubeny, I., & Rauch, T. 2020, AJ, 160, 21 [Google Scholar]
  2. Canny, J. 1986, IEEE Trans. Pattern Anal. Mach. Intell., PAMI-8, 679 [Google Scholar]
  3. Euclid Collaboration (Schirmer, M., et al.) 2014, Calibration Concept Document Part B (CalCD-B), Euclid Collaboration Document, EUCL-MPIA-RD-1-001 issue 3.1, 2014 September 1 [Google Scholar]
  4. Euclid Collaboration (Mellier, Y., et al.) 2025, A&A, 697, A1 [Google Scholar]
  5. Euclid Collaboration (Cropper, M. S., et al.) 2025, A&A, 697, A2 [Google Scholar]
  6. Euclid Collaboration (Jahnke, K., et al.) 2025, A&A, 697, A3 [Google Scholar]
  7. Euclid Collaboration (Copin, Y., et al.) 2026, A&A, in press, https://doi.org/10.1051/0004-6361/202554627 [Google Scholar]
  8. Euclid Collaboration (Gillard W., et al.) 2026, A&A, 707, A227 [Google Scholar]
  9. Euclid Collaboration (McCracken, H. J., et al.) 2026, A&A, in press, https://doi.org/10.1051/0004-6361/20255459 [Google Scholar]
  10. Euclid Collaboration (Polenta, G., et al.) 2026, A&A, in press, https://doi.org/10.1051/0004-6361/202554657 [Google Scholar]
  11. Euclid Collaboration (Romelli, E., et al.) 2026, A&A, in press, https://doi.org/10.1051/0004-6361/202554586 [Google Scholar]
  12. Giacconi, R., Rosati, P., Tozzi, P., et al. 2001, ApJ, 551, 624 [Google Scholar]
  13. Giavalisco, M., Ferguson, H. C., Koekemoer, A. M., et al. 2004, ApJ, 600, L93 [NASA ADS] [CrossRef] [Google Scholar]
  14. Hunter, J. D. 2007, Comput. Sci. Eng., 9, 90 [NASA ADS] [CrossRef] [Google Scholar]
  15. Illingworth, J., & Kittler, J. 1987, IEEE Trans. Pattern Anal. Mach. Intell., PAMI-9, 690 [Google Scholar]
  16. Racca, G. D., Laureijs, R., Stagnaro, L., et al. 2016, SPIE Conf. Ser., 9904, 99040O [NASA ADS] [Google Scholar]
  17. Scoville, N., Aussel, H., Brusa, M., et al. 2007, ApJS, 172, 1 [Google Scholar]
  18. Skrutskie, M. F., Cutri, R. M., Stiening, R., et al. 2006, AJ, 131, 1163 [NASA ADS] [CrossRef] [Google Scholar]
  19. van derWalt, S., Schönberger, J. L., Nunez-Iglesias, J., et al. 2014, PeerJ, 2, e453 [Google Scholar]
  20. Xie, Y., & Ji, Q. 2002, in 2002 International Conference on Pattern Recognition, 2, 957 [Google Scholar]

Appendix A Dichroic ghost

The third-order polynomials used to describe the dichroic ghost offsets (from the dichroic ghost position to the source-star position) are given by Eq. (1). The matrices containing the coefficients for the dichroic ghost offset in each axis, used for the Q1 models, are OffsetYMOSA=(4.758059084.08494811×1041.68202062×1061.41684848×102+1.26835014×1071.07871607×1082.42159141×106+2.76254122×108+5.34023160×1011)Mathematical equation: ${\rm{Offse}}{{\rm{t}}_{{Y_{{\rm{MOSA}}}}}} = \left( {\matrix{ { - 4.75805908} \hfill & { - 4.08494811 \times {{10}^{ - 4}}} \hfill & { - 1.68202062 \times {{10}^{ - 6}}} \hfill \cr { - 1.41684848 \times {{10}^{ - 2}}} \hfill & { + 1.26835014 \times {{10}^{ - 7}}} \hfill & { - 1.07871607 \times {{10}^{ - 8}}} \hfill \cr { - 2.42159141 \times {{10}^{ - 6}}} \hfill & { + 2.76254122 \times {{10}^{ - 8}}} \hfill & { + 5.34023160 \times {{10}^{ - 11}}} \hfill \cr } } \right)$(A.1) andMathematical equation: ${\rm{and}}$(A.2) OffsetZMOSA=(1.67583495×1011.42131358×102+1.63649376×1073.01789225×1053.30794149×106+1.93109689×109+1.67513242×1075.36299455×1095.05874463×1011).Mathematical equation: ${\rm{Offse}}{{\rm{t}}_{{{\rm{Z}}_{{\rm{MOSA}}}}}} = \left( {\matrix{ { - 1.67583495 \times {{10}^{ - 1}}} & { - 1.42131358 \times {{10}^{ - 2}}} & { + 1.63649376 \times {{10}^{ - 7}}} \cr { - 3.01789225 \times {{10}^{ - 5}}} & { - 3.30794149 \times {{10}^{ - 6}}} & { + 1.93109689 \times {{10}^{ - 9}}} \cr { + 1.67513242 \times {{10}^{ - 7}}} & { - 5.36299455 \times {{10}^{ - 9}}} & { - 5.05874463 \times {{10}^{ - 11}}} \cr } } \right).$(A.3)

From these, the position of the dichroic ghost on the FPA (in millimetres) is given by (YMOSA,ZMOSA)dichroic=(YMOSA,ZMOSA)star(pOffsetMOSA(YMOSA,ZMOSA),pOffsetMOSA(YMOSA,ZMOSA).)Mathematical equation: ${\left( {{Y_{{\rm{MOSA}}}},{Z_{{\rm{MOSA}}}}} \right)_{{\rm{dichroic}}}} = {\left( {{Y_{{\rm{MOSA}}}},{Z_{{\rm{MOSA}}}}} \right)_{{\rm{star}}}} - \left( {{p_{{\rm{Offse}}{{\rm{t}}_{{\rm{MOSA}}}}}}\left( {{Y_{{\rm{MOSA}}}},{Z_{{\rm{MOSA}}}}} \right),{p_{{\rm{Offse}}{{\rm{t}}_{{\rm{MOSA}}}}}}\left( {{Y_{{\rm{MOSA}}}},{Z_{{\rm{MOSA}}}}} \right).} \right)$(A.4)

The offsets themselves can be easily calculated in Python using the polyval2d function within numpy.polynomial.polynomial: pOffsetYMOSA(YMOSA,ZMOSA)=numpy.polynomial.polynomial.polyval2d(YMOSA,ZMOSA,OffsetYMOSA).Mathematical equation: ${p_{{\rm{Offse}}{{\rm{t}}_{{Y_{{\rm{MOSA}}}}}}}}\left( {{Y_{{\rm{MOSA}}}},{Z_{{\rm{MOSA}}}}} \right) = {\rm{numpy}}{\rm{.polynomial}}{\rm{.polynomial}}{\rm{.polyval2d}}\left( {{Y_{{\rm{MOSA}}}},{Z_{{\rm{MOSA}}}},{\rm{Offse}}{{\rm{t}}_{{Y_{{\rm{MOSA}}}}}}} \right).$(A.5)

Appendix B Filter ghost

Similarly, the third-order polynomials used to describe the filter ghost offsets (from the filter ghost position to the source-star position) are also given by Eq. (1), and can thus be calculated in the same way as the dichroic ghosts described in Appendix A. The matrices containing the coefficients for the filter ghost offset in each axis, used for the Q1 models, are OffsetYMOSA=(+1.104505333.37612818×104+3.49727260×106+1.42692340×1016.90666206×107+1.41823342×107+1.56788085×1053.31387125×1089.04039067×1010)andMathematical equation: ${\rm{Offse}}{{\rm{t}}_{{Y_{{\rm{MOSA}}}}}} = \left( {\matrix{ { + 1.10450533} \hfill & { - 3.37612818 \times {{10}^{ - 4}}} \hfill & { + 3.49727260 \times {{10}^{ - 6}}} \hfill \cr { + 1.42692340 \times {{10}^{ - 1}}} \hfill & { - 6.90666206 \times {{10}^{ - 7}}} \hfill & { + 1.41823342 \times {{10}^{ - 7}}} \hfill \cr { + 1.56788085 \times {{10}^{ - 5}}} \hfill & { - 3.31387125 \times {{10}^{ - 8}}} \hfill & { - 9.04039067 \times {{10}^{ - 10}}} \hfill \cr } } \right){\rm{and}}$(B.1) OffsetZMOSA=(2.62240029×102+1.42325301×101+1.93865598×1063.99084565×105+1.32211002×105+1.07744649×108+2.56165095×106+9.63337612×1088.67659173×1010).Mathematical equation: ${\rm{Offse}}{{\rm{t}}_{{{\rm{Z}}_{{\rm{MOSA}}}}}} = \left( {\matrix{ { - 2.62240029 \times {{10}^{ - 2}}} & { + 1.42325301 \times {{10}^{ - 1}}} & { + 1.93865598 \times {{10}^{ - 6}}} \cr { - 3.99084565 \times {{10}^{ - 5}}} & { + 1.32211002 \times {{10}^{ - 5}}} & { + 1.07744649 \times {{10}^{ - 8}}} \cr { + 2.56165095 \times {{10}^{ - 6}}} & { + 9.63337612 \times {{10}^{ - 8}}} & { - 8.67659173 \times {{10}^{ - 10}}} \cr } } \right).$(B.2)

(B.3)

In addition to the offset, the ratio between the major and minor axis (i.e. the elongation) of the filter ghost, as well as the orientation of the ellipse describing the generic shape of the filter ghost also depends on the position on the FPA. The second-order polynomials used to describe these relations are also in the same form as Eq. (1), and can thus also be calculated using the same method in Python i.e. similarly to Eq. (A.5). The matrices containing the coefficients used to describe the elongation (radiusratio) and orientation relations, used for the Q1 models, are radiusratio=(+1.06612159+1.47073999×104+1.54457330×105+2.35145940×104+2.77414315×1060+5.35342973×10600), andMathematical equation: ${\rm{radiu}}{{\rm{s}}_{{\rm{ratio}}}} = \left( {\matrix{ { + 1.06612159} & { + 1.47073999 \times {{10}^{ - 4}}} & { + 1.54457330 \times {{10}^{ - 5}}} \cr { + 2.35145940 \times {{10}^{ - 4}}} & { + 2.77414315 \times {{10}^{ - 6}}} & 0 \cr { + 5.35342973 \times {{10}^{ - 6}}} & 0 & 0 \cr } } \right){\rm{, and}}$(B.4) orientation=(2.01850578×1021.63892790×103+3.96230948×1063.39665214×1051.70575549×1040+2.59390644×10600).Mathematical equation: ${\rm{orientation}} = \left( {\matrix{ { - 2.01850578 \times {{10}^{ - 2}}} & { - 1.63892790 \times {{10}^{ - 3}}} & { + 3.96230948 \times {{10}^{ - 6}}} \cr { - 3.39665214 \times {{10}^{ - 5}}} & { - 1.70575549 \times {{10}^{ - 4}}} & 0 \cr { + 2.59390644 \times {{10}^{ - 6}}} & 0 & 0 \cr } } \right){\rm{.}}$(B.5)

The minor axis of the filter-ghost mask (RmaskminMathematical equation: ${R_{{\rm{mas}}{{\rm{k}}_{{\rm{min}}}}}}$) is described by Eq. (2), and is thus calculated the same way as the dichroic-ghost mask radius with the values given in Table 1. The major axis of the filter-ghost mask (using Python methods) is then calculated by Rmaskmaj=Rmaskminnumpy.polynomial.polynomial.polyval2d(YMOSA,ZMOSA,radiusratio),Mathematical equation: ${R_{{\rm{mas}}{{\rm{k}}_{{\rm{maj}}}}}} = {R_{{\rm{mas}}{{\rm{k}}_{{\rm{min}}}}}} * {\rm{numpy}}{\rm{.polynomial}}{\rm{.polynomial}}{\rm{.polyval2d}}\left( {{Y_{{\rm{MOSA}}}},{Z_{{\rm{MOSA}}}},{\rm{radiu}}{{\rm{s}}_{{\rm{ratio}}}}} \right),$(B.6)

while the orientation of RmaskmajMathematical equation: ${R_{{\rm{mas}}{{\rm{k}}_{{\rm{maj}}}}}}$, moving clockwise from the YMOSA-axis in radians, is given by Rmaskorientation=numpy.polynomial.polynomial.polyval2d(YMOSA,ZMOSA,orientation).Mathematical equation: ${R_{{\rm{mas}}{{\rm{k}}_{{\rm{orientation}}}}}} = {\rm{numpy}}{\rm{.polynomial}}{\rm{.polynomial}}{\rm{.polyval2d}}\left( {{Y_{{\rm{MOSA}}}},{Z_{{\rm{MOSA}}}},{\rm{orientation}}} \right).$(B.7)

All Tables

Table 1

Q1 ghost masking parameters.

All Figures

Thumbnail: Fig. 1 Refer to the following caption and surrounding text. Fig. 1

<mono>Zemax</mono> ray tracing. Top panel: nominal light path through the NISP optical elements. We note that the dichroic is actually a part of the telescope and not of the NISP. The different colours show the light paths for three different sources in the field of view. For details of the optical layout and components (see Euclid Collaboration: Jahnke et al. 2025). Bottom panel: selecting the middle (green) rays of the top panel, we show how the light is internally reflected inside the dichroic to produce a ghost that is offset from the source position. A similar double reflection happens in the filter to produce the filter ghost (suppressed in this plot for clarity).

In the text
Thumbnail: Fig. 2 Refer to the following caption and surrounding text. Fig. 2

Example of a dichroic ghost (left, 60 × 60 pixel – 18″ × 18″– cutout) and the automatic detection of the shape (red dashed line) based on edge detection using a circular Hough transformation (right). Also shown is the final model (cyan solid line) used for Q1 based on the detection values and the radius derived based on the magnitude of the source star (see Sect. 4).

In the text
Thumbnail: Fig. 3 Refer to the following caption and surrounding text. Fig. 3

Examples of filter ghosts near the FPA centre (bottom row) and near a corner (top row), highlighting the large field dependence. The left column shows an 80 × 80 pixel (24″ × 24″) cutout along with the automatic detection of the shape (red dashed line). Also shown is the final model (cyan solid line) used for Q1 based on the detection values, and the radius derived based on the magnitude of the source star (see Sect. 5). The middle column shows the total radial profile of the filter ghost cutout, and the Gaussian fit used as an initial guess for the detection radius. In the right column we display the edge image created from the Canny filter and the automatic detection of the shape (red dashed line) based on an elliptical Hough transformation.

In the text
Thumbnail: Fig. 4 Refer to the following caption and surrounding text. Fig. 4

Shape of the dichroic ghost (left panel) and filter ghost (right panel) as a function of field position. For the dichroic ghosts, the images are made from a median combination of 60 × 60 pixel (18″ × 18″) cutouts based on a 20-fold binning on the FPA, restricted to a single magnitude bin in HE band. For the filter ghosts, the images are made from a median combination of 80 × 80 pixel (24″ × 24″) cutouts on a 20-fold binning on the FPA, restricted to a single magnitude bin in the YE band. The number of cutouts used to create each median is given in the top right of each median cutout. For the blank square we could not find suitable stars within that region of the FPA. The artefacts, such as arcs, streaks, or circular residuals resulting from inadequate masking in the individual images, are caused by having data from few ghosts.

In the text
Thumbnail: Fig. 5 Refer to the following caption and surrounding text. Fig. 5

Quiver plots showing the offset in millimetres from the source star to the dichroic (left) and filter ghost (right) across the FPA, i.e. −pOffset. The matrices used to describe these models are given in Appendices A and B.

In the text
Thumbnail: Fig. 6 Refer to the following caption and surrounding text. Fig. 6

Appearance of the dichroic ghost (top row) and filter ghost (bottom row) as a function of source-star brightness. For the dichroic ghosts, the images are made from a median combination of 60 × 60 pixel (18″ × 18″) cutouts, restricted to one region of the FPA for the HE band. For the filter ghosts, the images are made from a median combination of 80 × 80 pixel (24″ × 24″) cutouts, restricted to the central region of the FPA for the YE band. The number of cutouts used to create each median is given in the top right of each median cutout.

In the text
Thumbnail: Fig. 7 Refer to the following caption and surrounding text. Fig. 7

Shape of the dichroic ghost (top row) and filter ghost (middle and bottom rows) as a function of waveband. For the dichroic ghosts, the images are made from a median combination of 60 × 60 pixel (18″ × 18″) cutouts, restricted to one region of the FPA and a single magnitude bin. For the filter ghosts, since there is a dependence of the shape on the FPA position, the images are made from a median combination of 80 × 80 pixel (24″ × 24″) cutouts, restricted to either the central region (middle) or a corner region (bottom) of the FPA and a single magnitude bin. The number of cutouts used to create each median is given in the top right of each median cutout.

In the text
Thumbnail: Fig. 8 Refer to the following caption and surrounding text. Fig. 8

Radius-magnitude relation, given by the coefficients in Table 1, for each filter for the dichroic ghost (left) and filter ghost (right; see Sects. 4.2 and 5.2).

In the text
Thumbnail: Fig. 9 Refer to the following caption and surrounding text. Fig. 9

Mean flux per pixel in the dichroic (left) and filter (right) ghost, calculated from the smoothed radial profiles as described in Sects. 4.2 and 5.2. The minimum brightness for masking is thus determined for each filter by the requirement that the ghost must contribute less than 0.0866 e pixel−1.

In the text
Thumbnail: Fig. 10 Refer to the following caption and surrounding text. Fig. 10

Filter ghost shape and orientation. Left: model of the filter ghost’s major-to-minor axis ratio, i.e. the elongation. Right: model of the orientation of the filter ghost in radians, measured clockwise from the YMOSA-axis. The matrices used to describe these models are given in Appendix B.

In the text

Current usage metrics show cumulative count of Article Views (full-text article views including HTML views, PDF and ePub downloads, according to the available data) and Abstracts Views on Vision4Press platform.

Data correspond to usage on the plateform after 2015. The current usage metrics is available 48-96 hours after online publication and is updated daily on week days.

Initial download of the metrics may take a while.