ERIS Pipeline Reference Manual 1.8.10
Functions
Sky tweaking algorithm

Functions

int eris_ifu_plot_cube_background (cpl_imagelist *obj)
 Extract backgroung from cube and plot.
 
cpl_imagelist * eris_ifu_sky_tweak (cpl_imagelist *obj, cpl_imagelist *sky, const cpl_propertylist *header, float min_frac, int tbsub, int skip_last, int stretch, int stretch_degree, int stretch_resampling, int plot, cpl_imagelist **new_sky)
 Main sky tweaking function.
 

Detailed Description

Function Documentation

◆ eris_ifu_plot_cube_background()

int eris_ifu_plot_cube_background ( cpl_imagelist *  obj)

Extract backgroung from cube and plot.

Parameters
objCube
Returns

Possible cpl_error_code set in this function:
  • CPL_ERROR_NULL_INPUT if input is NULL.
  • CPL_ERROR_ILLEGAL_INPUT if input is incorrect.

Definition at line 153 of file eris_ifu_sky_tweak.c.

References eris_ifu_lcorr_create_object_mask().

◆ eris_ifu_sky_tweak()

cpl_imagelist * eris_ifu_sky_tweak ( cpl_imagelist *  obj,
cpl_imagelist *  sky,
const cpl_propertylist *  header,
float  min_frac,
int  tbsub,
int  skip_last,
int  stretch,
int  stretch_degree,
int  stretch_resampling,
int  plot,
cpl_imagelist **  new_sky 
)

Main sky tweaking function.

Parameters
objObject cube
skySky cube
headerNAXIS3 / CRVAL3 / CDELT3 / CRPIX3
min_fracPercentage of pixels kept for the background
tbsubSubtract thermal background from new obj cube
skip_last
stretchthe sky
stretch_degree: polynomial degree
stretch_resampling: 1:linear, 2:spline
plot
new_sky
Returns
The new sky-corrected obj cube Possible cpl_error_code set in this function:
  • CPL_ERROR_NULL_INPUT if input is NULL.
  • CPL_ERROR_ILLEGAL_INPUT if input is incorrect.

Definition at line 201 of file eris_ifu_sky_tweak.c.

References eris_check_error_code(), eris_ifu_lcorr_create_lambda_vector(), and eris_ifu_lcorr_create_object_mask().