Configuration and Setup¶
TOIREx is controlled through an INI-style configuration file. The configuration file is divided into several sections, each controlling a different stage of the reduction pipeline.
Setting Up¶
Download the default configuration file from
https://github.com/varghesereji/TOIREx/blob/main/src/toirex/config/TOIREX_config.config
or copy it from your TOIREx installation.
/path/to/env/TOIREx/src/toirex/config/TOIREX_config.config
Place the configuration file in the same directory as your observational data. Modify the required parameters before running the pipeline.
Configuration Sections¶
The configuration file contains the following sections:
[inits]– General pipeline settings.[outputs]– Output directory and filenames.[visual]– Display options.[logging]– Logging configuration.[inputs]– Input image processing.[dither]– Dither alignment.[spectral_extraction]– Spectroscopic extraction.[wcs]– World Coordinate System parameters.[photometry]– Photometric reduction.
[inits]¶
General pipeline settings.
Parameter |
Description |
Allowed values |
|---|---|---|
|
Name of the instrument. |
|
|
Type of reduction to perform. |
|
|
Name of the directory containing the raw observations. |
Any valid directory |
|
Text editor used during manual operations. |
e.g. |
|
Enable time-series extraction. |
|
|
Pipeline execution mode. |
|
[outputs]¶
Output directory and filenames.
Parameter |
Description |
|---|---|
|
Output directory where reduced products are stored. |
|
Comma-separated wildcard patterns of files to ignore. |
|
Name of the generated observation catalogue. |
[visual]¶
Image display options.
Parameter |
Description |
|---|---|
|
Display science frames. |
|
Display flat-field frames. |
|
Display lamp frames. |
All options accept Y or N.
[logging]¶
Logging configuration.
Parameter |
Description |
|---|---|
|
Logging level. Possible values are |
[inputs]¶
Input image processing.
Parameter |
Description |
|---|---|
|
FITS extension containing the science image. |
|
FITS extension containing the variance image. |
|
Perform sky subtraction. |
|
Remove cosmic rays before reduction. |
|
Use the default bad-pixel mask ( |
|
Method used to combine multiple images. |
FRAMECOMBINE can be
meanmedianbiweight
[dither]¶
Image alignment parameters.
Parameter |
Description |
|---|---|
|
Enable dither reduction. |
|
Region used for determining image shifts. |
|
Upsampling factor used for image registration. |
|
Automatically determine dither shifts. |
|
Reference frame used for image alignment. |
[spectral_extraction]¶
Spectroscopic extraction parameters.
Parameter |
Description |
Allowed values |
|---|---|---|
|
Configuration file for SpectrumExtractor. |
|
|
Aperture selection mode. |
|
|
Extraction aperture window. |
e.g. |
|
Background windows. |
e.g. |
|
Perform background subtraction. |
|
|
Combine dithered spectra. |
|
|
Refit the aperture in the cross-dispersion direction. |
e.g. |
|
Dispersion window used for aperture refitting. |
e.g. |
|
Median filter size before aperture refitting. |
e.g. |
|
Polynomial model used for aperture refitting. |
e.g. |
|
Apply flux calibration. |
|
REFITAPERTUREINXD supports
False– Disable refitting.p0– Constant shift.p1– Linear shift.p2– Quadratic shift.[(coefficients), (xmin, xmax)]– Apply a precomputed shift.
[wcs]¶
World Coordinate System parameters.
Parameter |
Description |
|---|---|
|
Reference epoch. |
|
Observation epoch. |
[photometry]¶
Photometric reduction parameters.
Source Detection¶
Parameter |
Description |
|---|---|
|
Source detection mode. |
|
Detection threshold. |
|
File containing manually selected sources. |
|
Estimated seeing FWHM in pixels. |
FINDSOURCE may be
AUTOMANUAL
Photometry¶
Parameter |
Description |
|---|---|
|
Photometric extraction method. |
|
PSF model. |
|
Initial PSF FWHM estimate. |
|
PSF rotation angle. |
|
Aperture type. |
|
Background annulus type. |
|
Aperture radius. |
|
Background annulus dimensions. |
Available PSF models
EPSFGaussianPSFCircularGaussianPSF
Available aperture types
CircularApertureEllipticalAperture
Available annulus types
CircularAnnulusEllipticalAnnulus
Notes¶
Configuration files follow the standard INI format.
Boolean options use
YandN.Relative paths are interpreted relative to the working directory.
Values enclosed in parentheses represent Python tuples.