MOONS Pipeline Reference Manual 0.13.1
Functions
LINE TABLE format

Functions

moo_kernelmoo_kernel_new (void)
 Create a new moo_kernel.
 
moo_kernelmoo_kernel_load (const cpl_frame *frame)
 Load a new moo_kernel.
 
void moo_kernel_delete (moo_kernel *self)
 Delete a moo_kernel.
 
cpl_propertylist * moo_kernel_get_header (moo_kernel *self, moo_detector_type type, int ntas, int rbn)
 Get the header of the kernel for given idrbn or NULL.
 
cpl_matrix * moo_kernel_get_matrix (moo_kernel *self, moo_detector_type type, int ntas, int rbn)
 Get the mtarix of the kernel for given idrbn or NULL.
 
cpl_table * moo_line_table_new (int isGuess)
 create a line table

 

Detailed Description

This module provides functions to use LINE TABLE

Functionality include:

Synopsis:
#include "moo_map.h"

Function Documentation

◆ moo_kernel_delete()

void moo_kernel_delete ( moo_kernel self)

Delete a moo_kernel.

Parameters
selfmoo_kernel to delete
Returns
void

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

Definition at line 113 of file moo_kernel.c.

Referenced by moo_kernel_load(), and moo_molecfit_calctrans().

◆ moo_kernel_get_header()

cpl_propertylist * moo_kernel_get_header ( moo_kernel self,
moo_detector_type  type,
int  ntas,
int  rbn 
)

Get the header of the kernel for given idrbn or NULL.

Parameters
selfmoo_kernel to delete
typethe detector type
ntasthe number of tas
rbnthe idrbn of the fibre
Returns
the HEADER of the given kernel or NULL

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

Definition at line 142 of file moo_kernel.c.

Referenced by moo_molecfit_calctrans().

◆ moo_kernel_get_matrix()

cpl_matrix * moo_kernel_get_matrix ( moo_kernel self,
moo_detector_type  type,
int  ntas,
int  rbn 
)

Get the mtarix of the kernel for given idrbn or NULL.

Parameters
selfmoo_kernel to delete
typethe detector type
ntasthe number of tas
rbnthe idrbn of the fibre
Returns
the matrix of the given kernel or NULL

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

Definition at line 170 of file moo_kernel.c.

Referenced by moo_molecfit_calctrans().

◆ moo_kernel_load()

moo_kernel * moo_kernel_load ( const cpl_frame *  frame)

Load a new moo_kernel.

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

The returned object must be deallocated using moo_kernel_delete().

Definition at line 80 of file moo_kernel.c.

References moo_kernel_delete(), and moo_kernel_new().

Referenced by moo_molecfit_calctrans().

◆ moo_kernel_new()

moo_kernel * moo_kernel_new ( void  )

Create a new moo_kernel.

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

The returned object must be deallocated using moo_kernel_delete().

Definition at line 66 of file moo_kernel.c.

Referenced by moo_kernel_load().

◆ moo_line_table_new()

cpl_table * moo_line_table_new ( int  isGuess)

create a line table

Parameters
isGuessTRUE if is a guess line table
Returns
error_code or CPl_ERROR_NONE

Possible cpl_error_code set in this function:

  • CPL_ERROR_NULL_INPUT if an input pointer is NULL
  • CPL_ERROR_INVALID_TYPE The specified type is not supported.
  • CPL_ERROR_ILLEGAL_OUTPUT A column with the same name already exists in table.

Definition at line 69 of file moo_line_table.c.