Image2Pipeline

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

Bases: JwstPipeline

Process JWST imaging-mode slope data from Level-2a to Level-2b.

Included steps are: bkg_subtract, assign_wcs, flat_field, photom, and resample.

See Step for the parameters.

Attributes Summary

class_alias

image_exptypes

spec

step_defs

Methods Summary

process(input_data)

Run the Image2Pipeline on the input data.

process_exposure_product(exp_product[, ...])

Calibrate an exposure found in the association product.

Attributes Documentation

class_alias = 'calwebb_image2'
image_exptypes = ['MIR_IMAGE', 'NRC_IMAGE', 'NIS_IMAGE', 'FGS_IMAGE']
spec
save_bsub = boolean(default=False) # Save background-subtracted science
step_defs: ClassVar = {'assign_wcs': <class 'jwst.assign_wcs.assign_wcs_step.AssignWcsStep'>, 'bkg_subtract': <class 'jwst.background.background_step.BackgroundStep'>, 'flat_field': <class 'jwst.flatfield.flat_field_step.FlatFieldStep'>, 'photom': <class 'jwst.photom.photom_step.PhotomStep'>, 'resample': <class 'jwst.resample.resample_step.ResampleStep'>}

Methods Documentation

process(input_data)[source]

Run the Image2Pipeline on the input data.

Parameters:
input_datastr, Level2 Association, or DataModel

The exposure or association of exposures to process.

Returns:
list[JWSTDataModel]

The calibrated data models.

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

Calibrate an exposure found in the association product.

Parameters:
exp_productdict

A Level2b association product.

pool_namestr

The pool file name. Used for recording purposes only.

asn_filestr

The name of the association file. Used for recording purposes only.

Returns:
JWSTDataModel

The final calibrated product.