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
JwstDataModeltypes, including those having 2D (rate) or 3D (rateints) backgrounds.- Parameters:
- input_model
ImageModel 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
- input_model
- Returns:
- avg_bkg
ImageModel The averaged background exposure
- avg_bkg