get_bounding_box_extents

jwst.assign_wcs.util.get_bounding_box_extents(ra_corners, dec_corners, sky_to_grism, wlmin, wlmax, order)[source]

Vectorize the sky_to_grism transform over many sources at once.

Parameters:
ra_corners, dec_cornersndarray

RA/Dec, in degrees, of the four sky bounding box corners for each source. Shape (4, n_sources).

sky_to_grismcallable

The “world” to “grism_detector” WCS transform.

wlmin, wlmaxfloat

Minimum/maximum wavelength at which to evaluate the transform.

orderint

The spectral order.

Returns:
xmin, xmax, ymin, ymaxndarray

Per-source grism-frame bounding box extents, shape (n_sources,).