correct_tilt_affine¶
Re-align the slit with the detector columns by a vertical shear.
| Category | Preprocessing (2-D image) |
| Backend | scipy - implemented here on top of scipy primitives |
| Version | 1.0.0 |
| Reads | ctx.image (an ImageFrame) |
| Writes | image |
scipy.ndimage.affine_transform with shear matrix [[1, -tan θ], [0, 1]], order=1 bilinear, zero-fill outside. The offset re-centres the shear on the image so the centre column remains in place. Pair with correct_slant_affine and correct_smile_polynomial in a long-slit preset.
Parameters¶
| Parameter | Default | Required | Description |
|---|---|---|---|
tilt_deg |
0.0 |
- | Tilt angle of the slit vs. detector columns (degrees). |
Use it¶
The CLI loads a single 1-D spectrum with --input; this algorithm needs
ctx.image (an ImageFrame). Run it from Python or as a step of a pipeline preset.
References¶
- Howell 2006, Handbook of CCD Astronomy 2nd ed. §5.2 (Cambridge UP).
- Tody 1986, Proc. SPIE 627, 733 — IRAF transform heritage.
Related algorithms¶
correct_slant_affine- Make monochromatic lines parallel to the rows by a horizontal shear.correct_smile_polynomial- Undo smile curvature via the Schroeder even-order expansion.dark_subtract- Subtract a master dark fromctx.image.denoise_gaussian_2d- Separable isotropic Gaussian smoothing ofctx.image.denoise_median_2d- Square median filter overctx.image, optionally banded by rows.flat_normalize- Dividectx.imageby a master flat normalised to unity.flat_normalize_easyspec- Flat-field correct a science frame viacleaning.flatten.outlier_rejection_mad_adaptive- Replace pixels whose deviation from a local median exceedsthreshold·MAD.subtract_bias_easyspec- Subtract a master bias from a single science frame viacleaning.debias.subtract_dark_easyspec- Subtract a master dark from a science frame viacleaning.sub_dark.subtract_sky_2d- Subtract a per-column sky model fitted from off-trace rows ofctx.image.