CRDS for Reference Files

The Calibration Reference Data System (CRDS) facilitates access to calibration reference and parameter files for use in the Roman WFI Data Pipelines. The Roman Exposure Pipeline utilizes the reference and parameter files stored in CRDS to process the Level 1 uncalibrated data into Level 2 calibrated rate images. In addition, other pipelines and simulation tools use reference files in CRDS.




CRDS in Roman Pipelines

Most steps in the Exposure Pipeline, which processes data from Level 1 (L1) uncalibrated ramp cubes to Level 2 (L2) calibrated rate images, rely on calibration reference files that contain the information needed to remove instrumental effects. CRDS stores the cache of calibration reference data, while the crds Python package provides an API for requesting the best-matching reference files for a given observation. While used primarily for the Exposure Pipeline and, to a lesser extent, the Mosaic Pipeline, CRDS also stores several additional calibration reference file types for use in other pipelines and applications.

The Exposure Pipeline automatically retrieves the appropriate reference files from the Roman CRDS server. The CRDS context file, also known as a "pipeline mapping" (or "PMAP") file, dictates the versions of the reference files retrieved from CRDS. This context file lists, for each reference file type, the "reference mapping" (or "RMAP") file to be used. The RMAP files contain the mapping of a specific reference file to the selection criteria. The ASDF metadata stores the name of the context file used in calibrated WFI data products. The names of the reference files used to process the data are stored in a dictionary in the metadata of the L2 Advanced Scientific Data Format (ASDF) files and are also recorded in logs.

Additional information for utilizing this system can be found in the CRDS documentation. 

Reference File Updates

Calibration reference files will periodically be updated in CRDS for use in Roman pipelines. These reference file updates will occur on different schedules for different reference file types, but are mainly driven by the collection of requisite calibration data. The calibration data observations are described in further detail in the On-Orbit Calibration Plan article. The frequency of new reference file deliveries to CRDS will be dictated based on ongoing characterization of calibration performance during operations and is subject to change.

Selecting Reference Files from CRDS

Specific keywords match the data being processed to the appropriate, most up-to-date reference file for a given calibration step. The USEAFTER keyword is utilized for all reference files in CRDS and represents the date after which the reference file is applicable, with CRDS matching science data to the nearest preceding USEAFTER date. For instance, if the observation date of the data being processed is 2027-01-01T00:00:00, and there are reference files with USEAFTER dates of 2026-12-01T00:00:00 and 2027-01-07T00:00:00, the 2026-12-01T00:00:00 reference file would be selected. Beyond the USEAFTER date, there are additional matching criteria for each reference file, which are listed in the Table of Reference Files on CRDS.

Additional information on the format and contents of each reference file may be found in the  romancal readthedocs documentation on calibration reference files. The estimated cadence of deliveries can be found in the On-Orbit Calibration Plan article.

Table of Reference Files on CRDS

Reference File TypePipeline/Application UseCRDS Matching Criteria (in addition to WFI detector†)Pipeline Steps
DARK

romancal   Roman I-Sim

EXPOSURE.TYPE

dark current subtraction
DARK DECAY

romancal   Roman I-Sim


dark decay correction
DISTORTION

romancal   Roman I-Sim

INSTRUMENT.OPTICAL_ELEMENT

assign wcs
FLAT

romancal   Roman I-Sim

INSTRUMENT.OPTICAL_ELEMENT

flat field correction
GAIN

romancal   Roman I-Sim


jump detection, ramp fitting
INTEGRAL NON-LINEARITY

romancal   Roman I-Sim


linearity correction
INVERSE LINEARITY

Roman I-Sim  


linearity correction
INTER-PIXEL CAPACITANCE 

Roman I-Sim

INSTRUMENT.OPTICAL_ELEMENT


LINEARITY

romancal   Roman I-Sim


linearity correction
MASK

romancal   Roman I-Sim


data quality initialization
READ NOISE

romancal   Roman I-Sim

EXPOSURE.TYPE

jump detection, ramp fitting
REFERENCE PIXEL

romancal   Roman I-Sim


reference pixel correction
SATURATION

romancal   Roman I-Sim


saturation detection
AREA‡




PHOTOM

romancal   Roman I-Sim


photometric calibration

† The Dark Decay reference file currently contains information for all detectors in a single file. 

‡ The Area reference file is intended for use by Roman users conducting analysis on images in the distorted frame.

CRDS on the Roman Research Nexus

Reference files will be available from CRDS on the Roman Research Nexus (RRN). The RRN sets the CRDS context environment variable to "roman-latest," which is a shortcut to use the latest context, i.e., the latest reference files. A future RRN update is planned to use the CRDS cloud cache for reference files so that users will no longer need to download reference file products into a local cache.

The Roman Research Nexus contains several tutorials for working with CRDS for reference files. You can open the CRDS Reference Files tutorial on the Nexus as the starting point, with additional tutorials for each reference file type linked at the end of the tutorial.



For additional questions not answered in this article, please contact the Roman Help Desk.







Latest Update

 

Updated for CfP2
Publication

 

Initial publication of the article.