calculate_pathloss_vector
- jwst.pathloss.pathloss.calculate_pathloss_vector(pathloss_refdata, pathloss_wcs, xcenter, ycenter, calc_wave=True)[source]
Calculate the pathloss vectors from the pathloss model.
Use the coordinates of the center of the target to interpolate the pathloss value as a function of wavelength at that location
- Parameters:
- pathloss_refdatandarray
The input pathloss data array
- pathloss_wcs
WCS The pathloss datamodel’s WCS attribute
- xcenterfloat
The x-center of the target (-0.5 to 0.5)
- ycenterfloat
The y-center of the target (-0.5 to 0.5)
- calc_wavebool
Calculate a wavelength vector from the reference file
- Returns: