create_background
- jwst.master_background.create_master_bkg.create_background(wavelength, surf_bright)[source]
Create a 1-D spectrum table as a MultiSpecModel.
This is the syntax for accessing the data in the columns:
wavelength = output_model.spec[0].spec_table["wavelength"] background = output_model.spec[0].spec_table["surf_bright"]
- Parameters:
- wavelengthndarray
1-D array of wavelengths, in micrometers.
- surf_brightndarray
1-D array of background surface brightness values.
- Returns:
- output_model
MultiSpecModelor None A data model containing the 1-D background spectrum. This can be written to disk by calling:
output_model.save(filename)
- output_model