Skip to content

Commit 8869fc5

Browse files
committed
Update extract_grism_objects docstring to include something about wcs changes
1 parent 0b01b85 commit 8869fc5

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

jwst/extract_2d/grisms.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,12 @@ def extract_grism_objects(
380380
Step 4: Compute the WIDTH of each spectral subwindow, which may be fixed or
381381
variable. The cross-dispersion size is taken from the minimum
382382
bounding box.
383+
384+
Each of the virtual slits in the output MultiSlitModel will have its own
385+
WCS object that is a copy of the input_model WCS, but with an additional
386+
transform from "grism_slit" to "grism_detector" prepended to it; this
387+
transform encodes a shift to the center of the slit and a binding to the
388+
slit's bounding box.
383389
"""
384390
if reference_files is None or not reference_files:
385391
raise TypeError("Expected a dictionary for reference_files")
@@ -493,7 +499,9 @@ def extract_grism_objects(
493499
else:
494500
var_flat = None
495501

496-
# add a new transform to the WCS that shifts to the center of the virtual slit
502+
# Add a new transform to the WCS that shifts to the center of the virtual slit
503+
# This needs to be separated from the "grism_detector" to "detector" transform
504+
# because
497505
tr = Mapping((0, 1, 0, 0, 0)) | (
498506
Shift(xmin) & Shift(ymin) & xcenter_model & ycenter_model & order_model
499507
)

0 commit comments

Comments
 (0)