flat_normalize_easyspec¶
Flat-field correct a science frame via cleaning.flatten.
| Category | Preprocessing (2-D image) |
| Backend | easyspec - wraps the EasySpec reduction library (optional extra reduction) |
| Version | 1.0.1 |
| Reads | - |
| Writes | image |
Parameters¶
| Parameter | Default | Required | Description |
|---|---|---|---|
target_path |
None |
- | Science FITS to flat-field; falls back to ctx.image. |
master_flat_path |
None |
- | Master-flat FITS; falls back to ctx.extras['master_flat']. |
auto_normalise |
True |
- | If true, divide the master flat by its median first. |
Use it¶
References¶
- easyspec.cleaning.cleaning.flatten.
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.correct_tilt_affine- Re-align the slit with the detector columns by a vertical shear.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.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.