find_corners_miri

jwst.cube_build.cube_build_wcs_util.find_corners_miri(input_data, this_channel, instrument_info, coord_system)[source]

Find the footprint of the MIRI channel data on the sky.

For a specific channel on an exposure, find the min and max of the spatial coordinates, either in alpha,beta or ra,dec depending on the type of cube being build; Also find the min and max of wavelength this channel covers.

Parameters:
input_dataIFUImageModel or str

Input model or file

this_channelstr

Channel we are working with

instrument_infodict

Dictionary holding x pixel min and max values for each channel

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