Pipeline Stages

End-to-end calibration of JWST data is divided into 3 main stages of processing:

In addition, there are several pipeline modules designed for special instrument or observing modes, including:

The table below represents the same information as described above, but alphabetically ordered by pipeline class.

Pipeline Class

Alias

Used For

Ami3Pipeline

calwebb_ami3

Stage 3: NIRISS AMI mode

Coron3Pipeline

calwebb_coron3

Stage 3: Coronagraphic mode

DarkPipeline

calwebb_dark

Stage 1: darks

Detector1Pipeline

calwebb_detector1

Stage 1: all modes

GuiderPipeline

calwebb_guider

Stage 1+2: FGS guiding modes

Image2Pipeline

calwebb_image2

Stage 2: imaging modes

Image3Pipeline

calwebb_image3

Stage 3: imaging modes

Spec2Pipeline

calwebb_spec2

Stage 2: spectroscopy modes

Spec3Pipeline

calwebb_spec3

Stage 3: spectroscopy modes

Tso3Pipeline

calwebb_tso3

Stage 3: TSO modes

WfsCombineStep

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

calwebb_dark

N/A

N/A

FGS_SKYFLAT
FGS_INTFLAT

N/A

calwebb_detector1

N/A

N/A

FGS_FOCUS

N/A

calwebb_detector1

calwebb_image2

N/A

FGS_IMAGE

N/A

calwebb_detector1

calwebb_image2

calwebb_image3

FGS_ID-STACK
FGS_ID-IMAGE
FGS_ACQ1
FGS_ACQ2
FGS_TRACK
FGS_FINEGUIDE

N/A

calwebb_guider

N/A

N/A

MIR_DARKIMG
MIR_DARKMRS

N/A

calwebb_dark

N/A

N/A

MIR_FLATIMAGE
MIR_FLATIMAGE-EXT
MIR_FLATMRS
MIR_FLATMRS-EXT

N/A

calwebb_detector1

N/A

N/A

MIR_TACQ

N/A

calwebb_detector1

calwebb_image2

N/A

MIR_CORONCAL

N/A

calwebb_detector1

calwebb_image2

N/A

MIR_IMAGE

False

calwebb_detector1

calwebb_image2

calwebb_image3

True

calwebb_detector1

calwebb_image2

calwebb_tso3

MIR_LRS-FIXEDSLIT

N/A

calwebb_detector1

calwebb_spec2

calwebb_spec3

MIR_LRS-SLITLESS

True

calwebb_detector1

calwebb_spec2

calwebb_tso3

False

calwebb_detector1

calwebb_spec2

N/A

MIR_MRS

N/A

calwebb_detector1

calwebb_spec2

calwebb_spec3

MIR_LYOT
MIR_4QPM

N/A

calwebb_detector1

calwebb_image2

calwebb_coron3

NRC_DARK

N/A

calwebb_dark

N/A

N/A

NRC_FLAT
NRC_LED
NRC_GRISM

N/A

calwebb_detector1

N/A

N/A

NRC_TACQ
NRC_TACONFIRM
NRC_FOCUS

N/A

calwebb_detector1

calwebb_image2

N/A

NRC_IMAGE

N/A

calwebb_detector1

calwebb_image2

calwebb_image3

NRC_CORON

N/A

calwebb_detector1

calwebb_image2

calwebb_coron3

NRC_WFSS

N/A

calwebb_detector1

calwebb_spec2

calwebb_spec3

NRC_TSIMAGE

True

calwebb_detector1

calwebb_image2

calwebb_tso3

NRC_TSGRISM

True

calwebb_detector1

calwebb_spec2

calwebb_tso3

NIS_DARK

N/A

calwebb_dark

N/A

N/A

NIS_LAMP
NIS_EXTCAL

N/A

calwebb_detector1

N/A

N/A

NIS_TACQ
NIS_TACONFIRM
NIS_FOCUS

N/A

calwebb_detector1

calwebb_image2

N/A

NIS_IMAGE

N/A

calwebb_detector1

calwebb_image2

calwebb_image3

NIS_AMI

N/A

calwebb_detector1

calwebb_image2

calwebb_ami3

NIS_WFSS

N/A

calwebb_detector1

calwebb_spec2

calwebb_spec3

NIS_SOSS

True

calwebb_detector1

calwebb_spec2

calwebb_tso3

False

calwebb_detector1

calwebb_spec2

calwebb_spec3

NRS_DARK

N/A

calwebb_dark

N/A

N/A

NRS_AUTOWAVE
NRS_AUTOFLAT
NRS_LAMP

N/A

calwebb_detector1

calwebb_spec2

N/A

NRS_IMAGE
NRS_WATA
NRS_MSATA
NRS_TACONFIRM
NRS_CONFIRM
NRS_FOCUS
NRS_MIMF

N/A

calwebb_detector1

calwebb_image2

N/A

NRS_FIXEDSLIT
NRS_IFU
NRS_MSASPEC

N/A

calwebb_detector1

calwebb_spec2

calwebb_spec3

NRS_BRIGHTOBJ

True

calwebb_detector1

calwebb_spec2

calwebb_tso3

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

jwst.pipeline.Spec2Pipeline

calwebb_spec2

calwebb_tso1.cfg

jwst.pipeline.Detector1Pipeline

calwebb_detector1

calwebb_tso-image2.cfg

jwst.pipeline.Image2Pipeline

calwebb_image2

calwebb_tso-spec2.cfg

jwst.pipeline.Spec2Pipeline

calwebb_spec2

calwebb_wfs-image2.cfg

jwst.pipeline.Image2Pipeline

calwebb_image2

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

Detector1Pipeline

calwebb_detector1.cfg

Stage 1: all non-TSO modes

calwebb_tso1.cfg

Stage 1: all TSO modes

DarkPipeline

calwebb_dark.cfg

Stage 1: darks

GuiderPipeline

calwebb_guider.cfg

Stage 1+2: FGS guiding modes

Image2Pipeline

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

Spec2Pipeline

calwebb_spec2.cfg

Stage 2: spectroscopy modes

calwebb_tso-spec2.cfg

Stage 2: TSO spectral modes

calwebb_nrslamp-spec2.cfg

Stage 2: NIRSpec lamps

Image3Pipeline

calwebb_image3.cfg

Stage 3: imaging modes

WfsCombineStep

calwebb_wfs-image3.cfg

Stage 3: WFS&C imaging

Spec3Pipeline

calwebb_spec3.cfg

Stage 3: spectroscopy modes

Ami3Pipeline

calwebb_ami3.cfg

Stage 3: NIRISS AMI mode

Coron3Pipeline

calwebb_coron3.cfg

Stage 3: Coronagraphic mode

Tso3Pipeline

calwebb_tso3.cfg

Stage 3: TSO modes