MOONS Pipeline Reference Manual 0.13.1
Functions
SKY_LINES_LIST table

Functions

moo_sky_lines_list * moo_sky_lines_list_new (void)
 Create a new moo_sky_lines_list.
 
moo_sky_lines_list * moo_sky_lines_list_load (const cpl_frame *frame)
 Load a SKY_LINES_LIST frame and create a moo_sky_lines_list.
 
void moo_sky_lines_list_delete (moo_sky_lines_list *self)
 Delete a moo_sky_lines_list.
 
cpl_error_code moo_sky_lines_list_get_free_zones (moo_sky_lines_list *self, double wmin, double wmax, double **zwmin, double **zwmax, cpl_array **sel)
 Get free zones for a specific wave range.
 

Detailed Description

This module provides functions to create, use, and destroy a moo_sky_lines_list

Functionality include:

Synopsis:
#include "moo_sky_lines_list.h"

Function Documentation

◆ moo_sky_lines_list_delete()

void moo_sky_lines_list_delete ( moo_sky_lines_list *  self)

Delete a moo_sky_lines_list.

Parameters
selfmoo_sky_lines_list to delete
Returns
void

If the moo_sky_lines_list self is NULL, nothing is done and no error is set.

Definition at line 107 of file moo_sky_lines_list.c.

◆ moo_sky_lines_list_get_free_zones()

cpl_error_code moo_sky_lines_list_get_free_zones ( moo_sky_lines_list *  self,
double  wmin,
double  wmax,
double **  zwmin,
double **  zwmax,
cpl_array **  sel 
)

Get free zones for a specific wave range.

Parameters
selfmoo_sky_lines_list
wminthe minimum wavelength for free zones
wmaxthe maximum wavelength for free zones
zwmina pointer on free zones minimum wavelength
zwmaxa pointer on free zones maximum wavelength
selarray of indexes of request free zones
Returns
void

Definition at line 136 of file moo_sky_lines_list.c.

References moo_fits_load_extension_table().

Referenced by moo_ext_single_compute_snr(), moo_rbn_single_compute_snr(), and moo_sci_single_compute_snr().

◆ moo_sky_lines_list_load()

moo_sky_lines_list * moo_sky_lines_list_load ( const cpl_frame *  frame)

Load a SKY_LINES_LIST frame and create a moo_sky_lines_list.

Parameters
framethe SKY_LINES_LIST frame
Returns
1 newly allocated moo_sky_lines_list or NULL in case of an error

The returned object must be deallocated using moo_sky_lines_delete(). Possible cpl_error_code set in this function:

  • CPL_ERROR_NULL_INPUT if an input pointer is NULL

Definition at line 81 of file moo_sky_lines_list.c.

References moo_sky_lines_list_new().

◆ moo_sky_lines_list_new()

moo_sky_lines_list * moo_sky_lines_list_new ( void  )

Create a new moo_sky_lines_list.

Returns
1 newly allocated moo_sky_lines_list or NULL in case of an error

The returned object must be deallocated using moo_sky_lines_list_delete().

Definition at line 64 of file moo_sky_lines_list.c.

Referenced by moo_sky_lines_list_load().