get_photom_data

jwst.wfss_contam.sens1d.get_photom_data(phot_model, filter_name, pupil, order)[source]

Retrieve wavelength and response data from photom ref file.

Wavelengths from the reference file are expected to be in units of microns. Units of the relative response values depend on the instrument:

  • NIRCam: (Angstrom) * (MJy/sr) / (ADU/s)

  • NIRISS: (micron) * (MJy / sr) / (ADU/s)

Output units are converted to (micron) * (MJy / sr) / (ADU/s).

Parameters:
phot_modelNrcWfssPhotomModel or NisWfssPhotomModel

Photom ref file data model

filter_namestr

Filter value

pupilstr

Pupil value

orderint

Spectral order number

Returns:
ref_wavesfloat array

Wavelengths from the ref file.

relrespsfloat array

Wavelength-dependent response (flux calibration) values from the ref file, same shape as ref_waves, units of (micron) * (MJy / sr) / (ADU/s).