Spec2Pipeline

class jwst.pipeline.Spec2Pipeline(*args, **kwargs)[source]

Bases: JwstPipeline

Spec2Pipeline: Processes JWST spectroscopic exposures from Level 2a to 2b. Accepts a single exposure or an association as input.

Included steps are: assign_wcs, NIRSpec MSA bad shutter flagging, nsclean, background subtraction, NIRSpec MSA imprint subtraction, 2-D subwindow extraction, flat field, source type decision, straylight, fringe, residual_fringe, pathloss, barshadow, photom, pixel_replace, resample_spec, cube_build, and extract_1d.

See Step for the parameters.

Attributes Summary

class_alias

spec

step_defs

Methods Summary

process(data)

Entrypoint for this pipeline

process_exposure_product(exp_product[, ...])

Process an exposure found in the association product

Attributes Documentation

class_alias = 'calwebb_spec2'
spec
save_bsub = boolean(default=False)        # Save background-subtracted science
fail_on_exception = boolean(default=True) # Fail if any product fails.
save_wfss_esec = boolean(default=False)   # Save WFSS e-/sec image
step_defs: ClassVar = {'assign_wcs': <class 'jwst.assign_wcs.assign_wcs_step.AssignWcsStep'>, 'badpix_selfcal': <class 'jwst.badpix_selfcal.badpix_selfcal_step.BadpixSelfcalStep'>, 'barshadow': <class 'jwst.barshadow.barshadow_step.BarShadowStep'>, 'bkg_subtract': <class 'jwst.background.background_step.BackgroundStep'>, 'cube_build': <class 'jwst.cube_build.cube_build_step.CubeBuildStep'>, 'extract_1d': <class 'jwst.extract_1d.extract_1d_step.Extract1dStep'>, 'extract_2d': <class 'jwst.extract_2d.extract_2d_step.Extract2dStep'>, 'flat_field': <class 'jwst.flatfield.flat_field_step.FlatFieldStep'>, 'fringe': <class 'jwst.fringe.fringe_step.FringeStep'>, 'imprint_subtract': <class 'jwst.imprint.imprint_step.ImprintStep'>, 'master_background_mos': <class 'jwst.master_background.master_background_mos_step.MasterBackgroundMosStep'>, 'msa_flagging': <class 'jwst.msaflagopen.msaflagopen_step.MSAFlagOpenStep'>, 'nsclean': <class 'jwst.nsclean.nsclean_step.NSCleanStep'>, 'pathloss': <class 'jwst.pathloss.pathloss_step.PathLossStep'>, 'photom': <class 'jwst.photom.photom_step.PhotomStep'>, 'pixel_replace': <class 'jwst.pixel_replace.pixel_replace_step.PixelReplaceStep'>, 'resample_spec': <class 'jwst.resample.resample_spec_step.ResampleSpecStep'>, 'residual_fringe': <class 'jwst.residual_fringe.residual_fringe_step.ResidualFringeStep'>, 'srctype': <class 'jwst.srctype.srctype_step.SourceTypeStep'>, 'straylight': <class 'jwst.straylight.straylight_step.StraylightStep'>, 'wavecorr': <class 'jwst.wavecorr.wavecorr_step.WavecorrStep'>, 'wfss_contam': <class 'jwst.wfss_contam.wfss_contam_step.WfssContamStep'>}

Methods Documentation

process(data)[source]

Entrypoint for this pipeline

Parameters:

input (str, Level2 Association, or JwstDataModel) – The exposure or association of exposures to process

process_exposure_product(exp_product, pool_name=' ', asn_file=' ')[source]

Process an exposure found in the association product

Parameters:

exp_product (dict) – A Level2b association product.