generate_compound_bbox
- jwst.assign_wcs.nirspec.generate_compound_bbox(input_model, slits=None, wavelength_range=None, refine=True)[source]
Generate a compound bounding box for multislit data.
- Parameters:
- input_model
JwstDataModel Input model with WCS set in meta.wcs.
- slitslist or None, optional
A list of Slit objects. If not specified, open slits are retrieved from the “gwa” to “slit_frame” transform.
- wavelength_rangelist or tuple or None, optional
Wavelength range for the combination of filter and grating. If not specified, the range is calculated by calling
spectral_order_wrange_from_model().- refinebool, optional
If True, the initial bounding box will be refined to limit it to ranges with valid wavelengths if possible.
- input_model
- Returns:
- bounding_box
CompoundBoundingBox Compound bounding box. Access bounding boxes for individual slits with dictionary-like access, keyed on the slit ID.
- bounding_box