Pipeline Stages
End-to-end calibration of JWST data is divided into 3 main stages of processing:
Stage 1 consists of detector-level corrections that are performed on a group-by-group basis, followed by ramp fitting. The output of stage 1 processing is a countrate image per exposure, or per integration for some modes. Details of this pipeline can be found at:
Stage 2 processing consists of additional instrument-level and observing-mode corrections and calibrations to produce fully calibrated exposures. The details differ for imaging and spectroscopic exposures, and there are some corrections that are unique to certain instruments or modes. Details are at:
Stage 3 processing consists of routines that work with multiple exposures and in most cases produce some kind of combined product. There are unique pipeline modules for stage 3 processing of imaging, spectroscopic, coronagraphic, AMI, and TSO observations. Details of each are available at:
In addition, there are several pipeline modules designed for special instrument or observing modes, including:
calwebb_dark for processing dark exposures
calwebb_guider for calibrating FGS guide star data
calwebb_wfs-image3 for stage 3 WFS&C processing
The table below represents the same information as described above, but alphabetically ordered by pipeline class.
Pipeline Class |
Alias |
Used For |
---|---|---|
calwebb_ami3 |
Stage 3: NIRISS AMI mode |
|
calwebb_coron3 |
Stage 3: Coronagraphic mode |
|
calwebb_dark |
Stage 1: darks |
|
calwebb_detector1 |
Stage 1: all modes |
|
calwebb_guider |
Stage 1+2: FGS guiding modes |
|
calwebb_image2 |
Stage 2: imaging modes |
|
calwebb_image3 |
Stage 3: imaging modes |
|
calwebb_spec2 |
Stage 2: spectroscopy modes |
|
calwebb_spec3 |
Stage 3: spectroscopy modes |
|
calwebb_tso3 |
Stage 3: TSO modes |
|
calwebb_wfs-image3 |
Stage 3: WFS&C imaging |
Pipelines vs. Exposure Type
The data from different observing modes needs to be processed with different combinations of the pipeline stages listed above. The proper pipeline selection is usually based solely on the exposure type (EXP_TYPE keyword value). Some modes, however, require additional selection criteria, such as whether the data are to be treated as Time-Series Observations (TSO). Some EXP_TYPEs are exclusively TSO, while others depend on the value of the TSOVISIT keyword. The following table lists the pipeline modules that should get applied to various observing modes, based on these selectors. Exposure types that do not allow TSO mode are marked as “N/A” in the TSOVISIT column.
EXP_TYPE
|
TSOVISIT |
Stage 1 Pipeline |
Stage 2 Pipeline |
Stage 3 Pipeline |
|
---|---|---|---|---|---|
FGS_DARK
|
N/A |
N/A |
N/A |
||
FGS_SKYFLAT
FGS_INTFLAT
|
N/A |
N/A |
N/A |
||
FGS_FOCUS
|
N/A |
N/A |
|||
FGS_IMAGE
|
N/A |
||||
FGS_ID-STACK
FGS_ID-IMAGE
FGS_ACQ1
FGS_ACQ2
FGS_TRACK
FGS_FINEGUIDE
|
N/A |
N/A |
N/A |
||
MIR_DARKIMG
MIR_DARKMRS
|
N/A |
N/A |
N/A |
||
MIR_FLATIMAGE
MIR_FLATIMAGE-EXT
MIR_FLATMRS
MIR_FLATMRS-EXT
|
N/A |
N/A |
N/A |
||
MIR_TACQ
|
N/A |
N/A |
|||
MIR_CORONCAL
|
N/A |
N/A |
|||
MIR_IMAGE
|
False |
||||
True |
|||||
MIR_LRS-FIXEDSLIT
|
N/A |
||||
MIR_LRS-SLITLESS
|
True |
||||
False |
N/A |
||||
MIR_MRS
|
N/A |
||||
MIR_LYOT
MIR_4QPM
|
N/A |
||||
NRC_DARK
|
N/A |
N/A |
N/A |
||
NRC_FLAT
NRC_LED
NRC_GRISM
|
N/A |
N/A |
N/A |
||
NRC_TACQ
NRC_TACONFIRM
NRC_FOCUS
|
N/A |
N/A |
|||
NRC_IMAGE
|
N/A |
||||
NRC_CORON
|
N/A |
||||
NRC_WFSS
|
N/A |
||||
NRC_TSIMAGE
|
True |
||||
NRC_TSGRISM
|
True |
||||
NIS_DARK
|
N/A |
N/A |
N/A |
||
NIS_LAMP
NIS_EXTCAL
|
N/A |
N/A |
N/A |
||
NIS_TACQ
NIS_TACONFIRM
NIS_FOCUS
|
N/A |
N/A |
|||
NIS_IMAGE
|
N/A |
||||
NIS_AMI
|
N/A |
calwebb_ami3 |
|||
NIS_WFSS
|
N/A |
||||
NIS_SOSS
|
True |
||||
False |
|||||
NRS_DARK
|
N/A |
N/A |
N/A |
||
NRS_AUTOWAVE
NRS_AUTOFLAT
NRS_LAMP
|
N/A |
N/A |
|||
NRS_IMAGE
NRS_WATA
NRS_MSATA
NRS_TACONFIRM
NRS_CONFIRM
NRS_FOCUS
NRS_MIMF
|
N/A |
N/A |
|||
NRS_FIXEDSLIT
NRS_IFU
NRS_MSASPEC
|
N/A |
||||
NRS_BRIGHTOBJ
|
True |
Wavefront Sensing and Control Images
Exposures obtained by any instrument for the purpose of WaveFront Sensing and Control (WFS&C) use a dedicated processing flow through the pipeline stages.
Stage 1: WFS&C exposures use the same calwebb_detector1 pipeline processing and steps as regular images.
Stage 2: WFS&C exposures use the same calwebb_image2 pipeline processing and steps as regular images. CRDS reftype
pars-image2pipeline
has a specific parameter reference for WFS&C processing. The processing is identical with other image processing except for the omission of the resample step.Stage 3: The ASN generator identifies pairs of dithered WFS&C images to be combined via the “PATTTYPE” keyword value “WFSC”. The resulting ASN uses the calwebb_wfs-image3 pipeline for stage 3 processing. This pipeline consists of the single step wfs_combine.
Configuration File Deprecation
Up to version 1.1.0, the primary way specific pipelines were referred to was by
their configuration file name, i.e. calwebb_detector1.cfg
. These
configuration files were delivered as part of the JWST calibration package.
Below is the table that matched configuration file to observing mode it was
intended to be used with.
Post-1.1.0, configuration files are no longer the primary identifier of
pipelines. Instead, pipelines are identified by their full class name, i.e.
jwst.pipeline.Detector1Pipeline
, or by their simple name, or alias, i.e.
calwebb_detector1
. How a pipeline is run is determined by the input data and
what parameter reference file in CRDS is selected by that data. The reftype
for each pipeline, or step, is determined by appending the class name of the
step to the string pars-
. For example, the reftype for
jwst.pipeline.Detector1Pipeline
is pars-detector1pipeline
. Which
specific reference file for a reftype is then determined by the data, just as
with any other reference file.
As a result, there are a few pipelines that no longer exist explicitly by name, because they were only a configuration file for an already existing pipeline class. The pipelines continue to operate correctly for the specific cases, because the parameter references pulled from CRDS will have the correct configuration. The following table lists the deprecated configuration files and what pipeline should now be referred to.
Deprecated CFG |
Pipeline Class |
Alias |
---|---|---|
calwebb_nrslamp-spec2.cfg |
||
calwebb_tso1.cfg |
||
calwebb_tso-image2.cfg |
||
calwebb_tso-spec2.cfg |
||
calwebb_wfs-image2.cfg |
The deprecated configuration to mode mapping up to version 1.1.0 is in the table below. This table is given only as historical reference for software and documentation that used this terminology.
Pipeline Class |
Configuration File |
Used For |
---|---|---|
calwebb_detector1.cfg |
Stage 1: all non-TSO modes |
|
calwebb_tso1.cfg |
Stage 1: all TSO modes |
|
calwebb_dark.cfg |
Stage 1: darks |
|
calwebb_guider.cfg |
Stage 1+2: FGS guiding modes |
|
calwebb_image2.cfg |
Stage 2: imaging modes |
|
calwebb_tso-image2.cfg |
Stage 2: TSO imaging modes |
|
calwebb_wfs-image2.cfg |
Stage 2: WFS&C imaging |
|
calwebb_spec2.cfg |
Stage 2: spectroscopy modes |
|
calwebb_tso-spec2.cfg |
Stage 2: TSO spectral modes |
|
calwebb_nrslamp-spec2.cfg |
Stage 2: NIRSpec lamps |
|
calwebb_image3.cfg |
Stage 3: imaging modes |
|
calwebb_wfs-image3.cfg |
Stage 3: WFS&C imaging |
|
calwebb_spec3.cfg |
Stage 3: spectroscopy modes |
|
calwebb_ami3.cfg |
Stage 3: NIRISS AMI mode |
|
calwebb_coron3.cfg |
Stage 3: Coronagraphic mode |
|
calwebb_tso3.cfg |
Stage 3: TSO modes |