Shower and Snowball Artifacts
Data artifacts known as snowballs (in the near-IR) and showers (in the mid-IR) are caused by large cosmic ray impacts that affect hundreds of pixels (M. Regan 2023).
On this page
The vast majority of cosmic ray impacts directly affect only one or 2 pixels. However, snowballs and showers affecting hundreds of pixels are often seen in the data as well. In the near-IR detectors snowballs tend to be circular, while in the mid-IR detectors showers often have elongated and irregular shapes.
A very rough estimate of the rate is around one snowball every 20 s in each 2K × 2K near-infrared detector, with approximately a factor of 2 lower rate of occurrence for shower events in the mid-IR. This frequency is highly variable however, with some observations affected by large numbers of such artifacts and other observations nearly completely unaffected. While similar events were seen in the near-IR detectors on the ground, the typical frequency was an order of magnitude lower and the amount of charge deposited was also significantly smaller.
Words in bold are GUI menus/
panels or data software packages;
bold italics are buttons in GUI
tools or package parameters.
Starting with jwst pipeline build 9.0 (Fall 2022) the jump step in the pipeline has been capable of detecting and flagging pixels affected by both showers and snowballs, and the algorithms for doing so have been continuously improved since. As of build 10.2 (Spring 2024) snowballs in the near-IR detectors can be almost entirely removed, and the pipeline does so by default for NIRCam, NIRSpec, and some NIRISS observing modes. Showers in the mid-IR can be improved (although not removed entirely), which is done automatically for some MIRI imaging modes. Users can toggle this step for themselves in offline reprocessing using the find_showers (mid-IR) and expand_large_events (near-IR) parameters respectively (see the ReadTheDocs Jump Detection page.)
Snowballs
In the near-IR, snowball artifacts are produced by extremely energetic cosmic rays that saturate the detector and affect the slopes of neighboring pixels. Figure 1 shows a close-up of a slope image (generated in stage 1 detector processing) centered on the location of a very large snowball. This slope image is from a long NIRSpec dark exposure and is very sensitive to any perturbation in the calculated slope. Thus, this is a worst case example; images with significant background rates will see much smaller effects.
Figure 1. Cutout of a slope image centered on the location of a very large snowball
Alternating light and dark regions are caused by various effects. See text below for details.
- The central region inside the white circle indicates pixels that saturated when the particle hits the detector (allowing ramp fitting to fit only groups observed prior to the hit).
- The white ring of pixels just outside of the saturated pixels represents pixels that saw a discontinuity in the count rate when the event occurred but did not saturate. The discontinuity was flagged as a "jump" by the pipeline and was not included in the slope calculation. They show the excess slope due to charge spilling from the saturated region in subsequent groups of the integration.
- The large darker region outside the white ring is caused by pixels that were flagged as a jump when the snowball occurred but then had below average count rates because photoelectrons were temporarily trapped by small defects in the detector pixels.
- Finally, the outer white halo represent pixels that saw an increase in the accumulated charge when the snowball event occurred but were uncorrected because the increase was below the pipeline's detection threshold.
Although the halo regions are clearly indicated in dark exposures, they can sometimes be difficult to see in images with significant astrophysical or other backgrounds.
As indicated by Figure 2, the majority of snowballs are relatively small, affecting up to about 100 pixels. There is a long tail to the distribution though, with some snowballs impacting nearly a thousand or more pixels.
Figure 2. An initial look at snowballs sizes
This histogram provides a first look at the size distribution of typical snowball events from data obtained in-flight for the NIR detectors.
Ongoing work will address further remaining issues, including the relatively uncommon case of non-circular snowballs likely arising from cosmic rays with more elongated paths through the detector.
Figure 3. Snowball correction in the JWST pipeline
This figure illustrates the typical snowball correction in the default JWST science calibration pipeline. In build 10.0 (left panels) no correction was made automatically, and data products thus showed significant snowball artifacts. Improvements to the algorithm in build 10.1 allowed removal of most of the outer halos of snowballs (middle panels), while further improvements to the detection and masking algorithms allowed build 10.2 to almost entirely remove snowball artifacts from the data (right panels). The data shown are deep NIRSpec MSA observations from PID 2123, focusing on a zoomed-in view of a large snowball (top panels) and a wider view of multiple snowball artifacts (bottom panels). Green pixels represent bad pixels flagged by the pipeline for which no data is available.
Showers
In the mid-IR, shower artifacts are thought to result from large clusters of energetic particles produced by cosmic rays. Unlike traditional cosmic rays, which affect a small number of pixels and produce a nearly delta function jump in the ramp for a given pixel, these cosmic ray showers can affect hundred of pixels (see Figure 1), release charge slowly over a period of many seconds, and can produce latents visible in the next integration (and in some cases are produced by initial events that occurred while the detector was in idle mode before a given exposure began). Like snowballs in the near-IR, showers can be strongly time variable and likely depend on the solar weather. Unlike snowballs however, shower artifacts typically have irregular, extended shapes and are significantly more challenging to detect and flag in the jwst pipeline.
Shower artifacts in MIRI MRS data
Cosmic ray shower artifacts typically have count rates in the range of 0.03 to 0.5 DN/s/pixel. They are thus most noticeable in MIRI MRS observations of faint targets (particularly in channels 1 and 2), where they can produce a mottled pattern across the detector that changes from exposure to exposure.
The jwst calibration pipeline is able to detect and correct some of these shower artifacts in the data by flagging the affected groups in the ramp using the find_showers parameter in the jump step of the calwebb_detector1 pipeline. However, this still leaves significant structure remaining that can limit the performance of the MRS in the faint-source regime. As of build 11.3 an additional optional correction is available by using the clean_showers flag in the straylight step of the calwebb_spec2 pipeline. As illustrated in Figures 4 and 5, this optional correction can significantly improve performance for faint sources.
Figure 4. Mid-IR showers in the MIRI MRS
Click on the figure for a larger view
Images of a MIRI MRS exposure using the short-wavelength detector covering Channels 1 and 2. The vertical illuminated rectangles are produced by the zodiacal background in Channel 2. Left: Uncorrected rate file showing strong cosmic ray showers (blotchy patterns across the image). Middle: Showers removed using the find_showers parameter in the jump step. Right: Showers removed using the clean_showers parameter in the straylight step available in the build 11.3 pipeline.
Figure 5. Impact of showers in the MRS on science spectra
Click on the figure for a larger view
Example of a faint MRS source severely affected by cosmic ray showers (gravitationally lensed PAH emission from the TEMPLATES program; Spilker et al. 2023). The left-hand panels show the source morphology and extracted spectrum using the build 11.1 pipeline; strong vertical striping is apparent in the data cube and artifacts in the extracted spectrum dwarf the true source emission. The right-hand panels show the same morphology and spectrum with the clean_showers algorithm applied in the build 11.3 pipeline; artifacts are significantly reduced and make the astrophysical emission obvious in the extracted spectrum.
Shower artifacts in MIRI Imaging data
As illustrated in Figure 6, cosmic ray showers can also be observing in MIRI imaging data. The most obvious such cases occur when using the F560W filter as the zodiacal background is low at these wavelengths and detector effects more noticeable. At longer wavelengths where the background is higher the low count rate of showers tends to be less noticeable in comparison. Generally, such artifacts can be reasonably well removed through a combination of the find_showers parameter in the jump step along with the outlier_detection step when combining multiple dithered exposures.
Figure 6. Mid-IR showers in the MIRI imager
Click on the figure for a larger view
Images of a calibration star from commissioning activity PID 1023 - Observations 13 (left) and 14 (right), part of a dithered sequence. The right image shows the appearance of cosmic shower artifacts in the detector image—an elongated structure in the center right of the image as well as several more spherical “showers" that are not part of the sky image towards the upper left and lower right of the image. The high power cosmic ray also pulls up the value of the entire row in which it hit the detector. Images are taken at 5.6 μm and processed through calwebb_detector1 with flux units of DN/s. © Dicken et al. 2024.
References
Regan, M. 2023, JWST-STScI-008545
Detection and Flagging of Showers and Snowballs in JWST
Dicken, D. et al. 2024, A&A, 689, 5
JWST MIRI flight performance: Imaging
Spilker, J. et al. 2023, Nature, 618, 708
Spatial variations in aromatic hydrocarbon emission in a dust-rich galaxy