Roman WFI Data Pipelines
This article contains a high-level overview of the science data pipelines for Roman Wide Field Instrument (WFI) data processing, including design, philosophy, and installation instructions.
Summary of WFI Data Flows
The distributed ground system for Roman means that different organizations process different data products. This concept is described in more detail in various locations throughout the Data Handbook, but here we provide a high-level summary of the different paths data may take. The three paths are:
- WFI imaging observations excluding the Galactic Bulge Time Domain Survey (GBTDS);
- WFI imaging observations in the GBTDS;
- and WFI spectroscopy observations.
For each path, we provide a figure below showing the flow of data between the Science Operations Center (SOC) at STScI and the Science Support Center (SSC) at IPAC. In the figures, SOC contributions are shown as blue cells, SSC contributions as red cells, and the names of pipelines that are described on this page are bolded.
Figure of WFI Imaging Processing Summary (Excluding GBTDS)
Summary of the processing flow for Roman WFI imaging data excluding the GBTDS. All steps in this flow are performed by the SOC at STScI. Pipeline names are bolded and are described in further detail below. Specifically, these are the Exposure Pipeline and Mosaic Pipeline.
Figure of WFI Imaging GBTDS Processing Summary
Summary of the processing flow for Roman WFI GBTDS imaging data. The SOC at STScI performs the blue-shaded steps in this flow, while the SSC at IPAC performs the red-shaded cells. Pipeline names are bolded and are described in further detail below. Specifically, these are the Exposure Pipeline and Galactic Bulge Survey Pipelines (also referred to as MSOS).
Figure of WFI Spectroscopy Processing Summary
Summary of the processing flow for Roman WFI spectroscopy data. The SOC at STScI performs the blue-shaded steps in this flow, while the SSC at IPAC performs the red-shaded cells. Pipeline names are bolded and are described in further detail below. Specifically, these are the Exposure Pipeline and Spectroscopy Science Data Pipeline.
Overview of WFI Pipelines at STScI
This article references technical information from the STScI data calibration pipeline suite RomanCal. Throughout the text, references to the STScI pipeline suite as a whole are referred to as “RomanCal,” the name of the Python package is stylized as romancal , and individual pipelines within RomanCal are named (e.g., Exposure Pipeline). Technical information sources for RomanCal include:
Several pipelines process WFI imaging observations to create different data products. The SOC at STScI, as part of its WFI science data calibration pipeline suite RomanCal, has developed two pipelines that generate several levels of data products:
- Exposure Pipeline: Processes all WFI data from Level 1 (L1) uncalibrated ramps into Level 2 (L2) calibrated rate images;
- Mosaic Pipeline: Processes one or more L2 products into a rectified, co-added Level 3 (L3) mosaic image.
It is expected that most users will be able to use data products directly from the Roman archive (see Accessing WFI Data article for more information); however, there may be instances when users wish to re-run elements of the WFI science data pipelines or customize the pipeline for particular science use cases.
This article corresponds to romancal version 1.2.0. This software is under development and subject to change; the documentation on this page refers to the most recently validated version of romancal and newer, unvalidated versions may exist.
Installation Instructions
Note that these instructions are provided for anyone wishing to install the STScI Roman data pipelines on a local machine. A version of the pipelines is already installed for users on the Roman Research Nexus. All of the STScI pipelines for Roman are contained in a single Python package called romancal that is publicly developed on GitHub, with released versions available via the Python Package Index (PyPI).
Additional information on how to install specific versions, including the latest development version, can be found on the pipeline installation page of the RomanCal ReadTheDocs documentation. Basic installation on a Unix-based operating system using a conda environment manager (or similar alternative such as mamba) can be accomplished in a bash terminal by typing the following:
$ conda create -n <environment_name> python $ conda activate <environment_name> $ pip install romancal
In the example above, the $ symbol indicates the bash prompt. The variable
environment_name
is at the discretion of the user. By indicating the argument "python" during the environment creation, the latest available version of Python will be installed in the environment along with other necessary tools such as pip.
Installing romancal will install several other dependency packages including but not limited to:
- roman_datamodels
- asdf
- crds
Users will also need access to calibration reference files for some pipeline steps and should see the CRDS for Reference Files article for additional information, including how to set up necessary environment variables.
Pipeline Descriptions
Here, we provide a high-level description of the individual pipelines used to produce Roman WFI data products. Detailed information about each pipeline is provided in separate articles, which are linked below. Users are also advised to consult the WFI Data Levels and Products page for information on the formats and contents of the different WFI data products.
The WFI detectors are an updated version of the detectors used in JWST instruments; therefore, the WFI data pipeline development philosophy starts with the JWST science data pipeline. Deviations from the JWST pipelines occur when the JWST pipeline steps are inappropriate or insufficient for WFI data, or when Roman mission science requirements for precision and/or accuracy necessitate changes to the underlying algorithms.
Both the Exposure and Mosaic Pipelines also include steps to detect sources and create Level 4 (L4) source catalog and segmentation map products from their L2 calibrated rate image and L3 rectified, co-added mosaic outputs, respectively.
Exposure Pipeline
The Exposure Pipeline calibrates all WFI data from L1 uncalibrated ramps into L2 calibrated rate images. The pipeline includes algorithms that correct raw WFI ramps for instrumental effects and collapse them along the time axis into rate images suitable for scientific analysis. The Exposure Pipeline requires at least two science resultants in the L1 ramp (i.e., the length of the L1 data array z-axis must be >= 2) to create a slope image. The WFI L1 and L2 products are stored per detector, and the Exposure Pipeline takes one L1 file at a time as input. The Exposure Pipeline contains steps for the following:
- Data quality initialization
- Correct the 1/f noise induced by the readout electronics
- Correct an exponentially decaying bias level over the first few reads ("dark decay")
- Correct the WFI18 readout transient affecting the first read of WFI18 only
- Correct for classic and integral non-linearity
- Detect jumps in the ramp, and fit a slope per pixel up the ramp to produce a count rate per pixel in units of Data Numbers per second (DN/s)
- Subtract the dark current rate
- Add a coarse WCS model, based on the telescope pointing information, and including the geometric distortion, to transform between pixels and sky coordinates
- Add photometric calibration information to the metadata
- Correct for quantum efficiency variations (flat field; WFI imaging mode external observations only)
- Detect sources in the image and make a source catalog and segmentation map (WFI imaging mode external observations only)
- Match stars to the Gaia astrometric catalog and update the WCS (WFI imaging mode external observations only)
In addition to the calibrations listed above, the pipeline steps also update the data quality and uncertainty arrays as needed. The Exposure Pipeline calibrates Roman WFI data from L1 to L2, but not all steps apply to all data. In particular, the exposure pipeline does not apply the flat field, source detection, or astrometric alignment steps to WFI darks, flats, or spectroscopic mode data. Running the full pipeline on these data types automatically skips these steps, and the metadata will indicate that the steps were skipped. Furthermore, WFI dark observations and data with more than 16 resultants are not automatically processed beyond L1 by the SOC, and therefore there are not L2 or higher products for such observations in the Roman Archive.
Please see the Exposure Pipeline article for more information.
Mosaic Pipeline
The Mosaic Pipeline places one or more L2 rate images onto a rectified frame. If more than one L2 image is input to the Mosaic Pipeline, the output will be the co-addition of all input images matched by position on the sky. The drizzle algorithm is used to combine multiple images. The Mosaic Pipeline contains steps for the following:
- Convert pixel values from instrumental count rates to physical surface brightness units of megaJanskys per steradian (MJy/sr)
- Apply a background matching correction such that input images that overlap on the sky have matching backgrounds
- Perform outlier detection to reject input pixels that are out of family with other observations of the same sky position
- Rectify the input images to the output coordinate frame and combine multiple images
- Detect sources in the image and make a source catalog and segmentation map
The Mosaic Pipeline produces data products in skycells by default. The SOC at STScI runs the Mosaic Pipeline only on external WFI imaging mode observations, excluding Lamp-On/Lamp-Off ("LOLO") and Galactic Bulge Time Domain Survey (GBTDS) observations. Deep stacks and catalogs of GBTDS data are provided by the SSC at IPAC via the MSOS Pipelines.
Please see the Mosaic Pipeline article for more information.
Overview of WFI Pipelines at IPAC
WFI imaging observations are processed through several pipelines to create different data products. At IPAC, we are developing five sets of pipelines:
Wide Field Spectroscopy Pipelines
- Science Data Pipelines: Process all WFI spectroscopic data, produce Level 4 grism and prism science data products, and deliver these data products, along with information on data quality, to the Roman archive.
- Calibration Data Pipeline: Produces the spectroscopic calibration reference files necessary for the spectroscopic Science Data Pipeline to process the Level 2 grism/prism data into the Level 4 spectroscopy data products.
Galactic Bulge Survey Pipelines
- MSOS Photometry Pipelines: Generate a Level 3 Reference Frame Product consisting of supersampled images, together with three distinct types of Level 4 catalogs: Fiducial, Periodic, and Light Curve catalogs.
- MSOS Event Pipelines: Generate identification and characterization of microlensing events via event identification, lensing model classification and physical parameter determination.
- MSOS Detection Efficiency Pipeline: Evaluate the completeness (false negative rate or FN rate) and reliability (false positive rate or FP rate) of microlensing events, in particular of planetary events.
Pipeline Descriptions
Here, we provide a high-level description of the individual pipelines used to produce higher-level products from basic Roman WFI data. Detailed information about each pipeline is provided in separate articles. Users are also advised to consult the WFI Data Levels and Products page for information on the formats and contents of the different WFI data products.
Spectroscopic Science Data Pipeline
The Science Data Pipelines (SDP) are made up of two parts. The first part, the G2DP, is designed to calibrate the 2D grism and prism science data and produce 1D spectra for each identified source. The second part, the G1DP, is designed to analyze and extract basic information from the 1D spectra, namely, redshifts and emission/absorption line parameters, for each target.
The basic steps of the SDP are:
- Identification and position measurement of all spectra
- Spectral flat fielding
- Background identification and subtraction
- Identification and removal of contaminating sources, producing decontaminated 2D spectral cutouts
- Extraction of 1D spectra from the 2D cutouts
- Relative and absolute flux calibration of the 1D spectra
- Combination of 1D spectra from different exposures, dithers, and/or rolls
- Fitting of the 1D spectra to produce redshifts and other spectral feature parameters.
Level 3 and Level 4 image data products are inputs to the SDP and are used in conjunction with the Level 2 spectroscopic data to identify and extract sources from the grism and prism data. Calibration reference files produced in the Calibration Data Pipeline (CDP) are used as inputs to the SDP to calibrate the grism and prism science data.
Please see the Wide Field Spectroscopy Science Data Pipelines article for more information.
Spectroscopic Calibration Data Pipeline
The Calibration Data Pipeline (CDP) produces the spectroscopic calibration reference files necessary for the spectroscopic Science Data Pipelines (SDP) to process the Level 2 grism/prism data into the Level 4 spectroscopy data products.
The spectroscopic calibration reference files produced by the CDP are:
- The optical model (which includes direct-to-dispersed mapping, trace & wavelength solution)
- The pixel-level ("small-scale") flat-field
- Relative flux calibration
- Absolute flux calibration
- Spectral point-spread function (PSF)
Please see the Wide Field Spectroscopy Calibration Data Pipeline article for more information.
MSOS Photometry Pipelines
The Microlensing Science Operations System (MSOS) Photometry Pipelines will generate three distinct types of Level 4 catalogs (Fiducial, Periodic, and Light Curve catalogs), together with a Level 3 Reference Frame Product consisting of supersampled images.
Brief descriptions of each are provided below:
- Reference Frame Product – supersampled image product used to establish the common astrometric and photometric reference frame for downstream processing and catalog generation.
- Fiducial Catalog – master catalog containing all detected objects, with reference positions standardized to a common epoch; provides aggregate positional and photometric properties for each object and serves as the basis for cross-object comparisons; updated periodically using data from the corresponding Periodic Catalog.
- Periodic Catalog – contains per-object measurements based on approximately a week worth of data; derived from reference frame information constructed over each period, and used to monitor changes in position and brightness; averaging is applied to achieve sufficient signal-to-noise for reliable measurements.
- Lightcurve Catalog – contains individual, unaveraged photometric measurements; enables reconstruction of object light curves and analysis of variability on short timescales.
Please see the MSOS Photometry Pipelines article for more information.
MSOS Event Pipelines
The purpose of this MSOS pipeline component is the identification and parameter characterization of microlensing events.
The MSOS Event Pipeline consists of three main components:
- Microlensing Event Identification, using data from the Light Curve and Object Catalogs.
- Lensing Model Classification, into single-lens or binary-lens systems.
- Physical Parameter Determination, based on model fits and external datasets.
Please see the Galactic Bulge Survey MSOS Event Pipelines article for more information.
MSOS Detection Efficiency Pipeline
This automated MSOS pipeline is for the image analysis and the subsequent identification and characterization of microlensing events, in particular of planetary events.
- Simulated microlensing events are injected into Level 2 images or into light curves and processed through the MSOS photometry and modeling pipelines.
- The output of the pipeline is compared with the input and the false positive (FP) and false negative (FN) rates are recorded; all input and output properties are saved into a catalog for the community to access.
- A catalog containing all input and output parameters of the Rhie method analysis will be provided to the community after the end of the Galactic Bulge Time Domain Survey (GBTDS).
Please see the Galactic Bulge Survey MSOS Detection Efficiency Pipeline article for more information.
For additional questions not answered in this article, please contact the Roman Help Desk.
References
- The Roman Space Telescope Calibration Pipeline, Readthedocs maintained by STScI 2026, Latest version
- JWST Science Calibration Pipeline Overview, Last Update 29 Nov 2022, JWST User Documentation (JDox)


