The deviations of the spectra from a straight line is parameterized as
![]() |
(2) |
![]() |
(3) |
In addition, the rotation of the spectrum relative to an exact alignment along a row is specified by a rotation angle. The angle is measured clockwise in units of degrees.
The alignment of the spectrum is taken into account by rotating the grism image around the object position (xobj, yobj) prior to the extraction. The distortions in the spectra are taken into account by introducing a corresponding distortion in the weights used for the extraction.