MOONS Pipeline Reference Manual 0.13.2
Functions
Skycorr functions

Functions

cpl_error_code moo_skycorr (hdrl_image *rbn, hdrl_image *sky, int indextarg, int indexrbn, double crpix1, double crval1, double cd1_1, cpl_propertylist *header, const cpl_frame *solflux_frame, const cpl_frame *airglow_group_frame, const cpl_frame *airglow_var_frame, moo_skycorr_params *params, hdrl_image *sci, cpl_image *sci_sky)
 call the skycorr subtract sky function
 

Detailed Description

Function Documentation

◆ moo_skycorr()

cpl_error_code moo_skycorr ( hdrl_image *  rbn,
hdrl_image *  sky,
int  indextarg,
int  indexrbn,
double  crpix1,
double  crval1,
double  cd1_1,
cpl_propertylist *  header,
const cpl_frame *  solflux_frame,
const cpl_frame *  airglow_group_frame,
const cpl_frame *  airglow_var_frame,
moo_skycorr_params *  params,
hdrl_image *  sci,
cpl_image *  sci_sky 
)

call the skycorr subtract sky function

Parameters
rbnhdrl image of science spectrum to subtract from sky
skyhdrl image of sky to subtract
indextargthe index o the target
indexrbnthe index of OBJ in rbn
crpix1the crpix1 keyword
crval1the crval1 keyword
cd1_1the cd1_1 keyword
headerthe RBN header where to read keyword
solflux_framethe monthly averages of solar radio flux at 10.7 cm frame
airglow_group_framethe airglow line list frame (use in subsky)
airglow_var_framethe airglow scaling parameters frame (use in subsky)
paramsthe skycorr parameters
scithe result sky subtracted image
sci_skythe associated sky subtracted
Returns
the relevant error code or CPL_ERROR_NONE

Possible error code :

  • CPL_ERROR_NULL_INPUT if an input pointer is NULL or list size == 0

Definition at line 939 of file moo_skycorr.c.