average_background

jwst.background.background_sub.average_background(input_model, bkg_list, sigma, maxiters)[source]

Average multiple background exposures into a combined data model.

Processes backgrounds from various JwstDataModel types, including those having 2D (rate) or 3D (rateints) backgrounds.

Parameters:
input_modelImageModel

Input target exposure data model

bkg_listlist

File name list of background exposures

sigmafloat, optional

Number of standard deviations to use for both the lower and upper clipping limits.

maxitersint or None, optional

Maximum number of sigma-clipping iterations to perform

Returns:
avg_bkgImageModel

The averaged background exposure