Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 0 additions & 22 deletions jwst/assign_wcs/niriss.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
from astropy import units as u
from astropy.modeling import bind_bounding_box
from astropy.modeling.models import Const1D, Mapping, Identity, Shift
from astropy.modeling.bounding_box import CompoundBoundingBox
import gwcs.coordinate_frames as cf
from gwcs import wcs

Expand Down Expand Up @@ -114,27 +113,6 @@ def _niriss_order_bounding_box(input_model, order):
)


def niriss_bounding_box(input_model):
"""
Create a bounding box for the NIRISS model.

Parameters
----------
input_model : JwstDataModel
The input datamodel.

Returns
-------
CompoundBoundingBox
The bounding box for the NIRISS model.
"""
bbox = {(order,): _niriss_order_bounding_box(input_model, order) for order in [1, 2, 3]}
model = input_model.meta.wcs.forward_transform
return CompoundBoundingBox.validate(
model, bbox, slice_args=[("spectral_order", True)], order="F"
)


def niriss_soss(input_model, reference_files):
"""
Create the WCS pipeline for NIRISS SOSS data.
Expand Down