DETMON Pipeline Reference Manual  1.2.7
Functions
Functions for slit position

Functions

cpl_table * irplib_slitpos_analysis (const cpl_image *imslit, int slit_max_width, double *slit_flux)
 Detect the slit position, detect its ends, extract a thin image containing only the slit and find its edges.

Detailed Description


Function Documentation

cpl_table* irplib_slitpos_analysis ( const cpl_image *  imslit,
int  slit_max_width,
double *  slit_flux 
)

Detect the slit position, detect its ends, extract a thin image containing only the slit and find its edges.

Parameters:
imslitInput image with a vertical slit
slit_max_widthMaximum slit width
slit_fluxSome of the pixels values of the slit
Returns:
the table with the slit position or NULL on error

On success the created table contains rows of four columns labeled: "SLIT_Y" (int) "SLIT_LEFT" (double) "SLIT_CENTER" (double) "SLIT_RIGHT" (double)

This function returns a table with 3 columns:

  • Left or Lower edge of the slit
  • Center of the slit
  • Right or Upper edge of the slit

Additionally, the slit flux is computed. The passed slit_flux pointer parameter can be NULL. In error case, its value is undefined.

NB: Coordinates use FITS convention.

Definition at line 119 of file irplib_slitpos.c.

References irplib_flat_fit_slope_robust().