find_corners_nirspec

jwst.cube_build.cube_build_wcs_util.find_corners_nirspec(input_data, coord_system)[source]

Find the sky footprint of a slice of a NIRSpec exposure.

For each slice find:

  1. the min and max spatial coordinates (along slice, across slice) or (ra,dec) depending on coordinate system of the output cube.

  2. min and max wavelength

Parameters:
input_dataIFUImageModel

Input calibrated model (or file)

coord_systemstr

Coordinate system of output cube: skyalign, ifualign, internal_cal

Returns:
a_minfloat

Minimum value of coord 1 - along axis 1 of the IFU cube

b1float

Coord 2 value corresponding to a_min

a_maxfloat

Maximum value of coord 1 - along the axis 1 of the IFU cube

b2float

Coord 2 value corresponding to a_max

a1float

Coord 1 value coorsponding to b_min

b_minfloat

Minimum value of coord 2 - along the axis 2 of the IFU cube

a2float

Coord 1 value coorsponding to b_max

b_maxfloat

Maximum value of coord 2 - along the axis 2 of the IFU cube

lambda_minfloat

Minimum wavelength

lambda_maxfloat

Maximum wavelength