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_wcsWCS

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:
wavelengthndarray

The 1-D wavelength array

pathlossndarray

The corresponding 1-D pathloss array

is_inside_slitletbool

True if the object source position is inside the slitlet, otherwise False