MOONS Pipeline Reference Manual 0.13.1
Functions
MOONS detector global definitions

This module provides functions to manipulate detectors. More...

Functions

const char * moo_detector_get_err_extname (moo_detector_type type, int ntas)
 Get the ERROR extension name of a detector.
 
const char * moo_detector_get_qual_extname (moo_detector_type type, int ntas)
 Get the QUAL extension name of a detector.
 
const char * moo_detector_get_extname (moo_detector_type type, int ntas)
 Get the extension name of a detector.
 
int moo_detector_get_spectro (int ntas)
 Get the spctro name for a ntas.
 
const char * moo_detector_get_name (moo_detector_type type)
 Get the extension name of a detector.
 
const char * moo_mode_get_name (moo_mode_type type)
 Get the name of a mode.
 
moo_mode_type moo_mode_get (const cpl_frame *frame)
 Get the name of a mode from a frame.
 
int moo_offset_get (const cpl_frame *refframe)
 Get the offset from a frame.
 
enum  _moo_detector_type_ { MOO_TYPE_RI , MOO_TYPE_YJ , MOO_TYPE_H }
 the different type of detectors More...
 
typedef enum _moo_detector_type_ moo_detector_type
 The type code type.
 

Detailed Description

This module provides functions to manipulate detectors.

Functionality include:

Synopsis:
#include "moo_detectors.h"

Enumeration Type Documentation

◆ _moo_detector_type_

the different type of detectors

Enumerator
MOO_TYPE_RI 

RI detector type

MOO_TYPE_YJ 

YJ detector type

MOO_TYPE_H 

H detector type

Definition at line 39 of file moo_detector.h.

Function Documentation

◆ moo_detector_get_err_extname()

const char * moo_detector_get_err_extname ( moo_detector_type  type,
int  ntas 
)

Get the ERROR extension name of a detector.

Parameters
typethe type of detector
ntasnumber of spectrograph [1,2]
Returns
name of detector

Error code:

  • CPL_ERROR_ILLEGAL_INPUT if ntas >=2

Definition at line 66 of file moo_detector.c.

Referenced by moo_pfits_append_hduclass_data(), and moo_pfits_append_hduclass_quality().

◆ moo_detector_get_extname()

const char * moo_detector_get_extname ( moo_detector_type  type,
int  ntas 
)

◆ moo_detector_get_name()

const char * moo_detector_get_name ( moo_detector_type  type)

◆ moo_detector_get_qual_extname()

const char * moo_detector_get_qual_extname ( moo_detector_type  type,
int  ntas 
)

Get the QUAL extension name of a detector.

Parameters
typethe type of detector
ntasnumber of spectrograph [1,2]
Returns
name of detector

Error code:

  • CPL_ERROR_ILLEGAL_INPUT if ntas >2

Definition at line 101 of file moo_detector.c.

Referenced by moo_pfits_append_hduclass_data(), moo_pfits_append_hduclass_error(), and moo_single_load().

◆ moo_detector_get_spectro()

int moo_detector_get_spectro ( int  ntas)

Get the spctro name for a ntas.

Parameters
ntasthe ntas of detector
Returns
spectro name

Error code:

  • None

Definition at line 165 of file moo_detector.c.

◆ moo_mode_get()

moo_mode_type moo_mode_get ( const cpl_frame *  frame)

Get the name of a mode from a frame.

Parameters
framethe frame where to read the mode
Returns
mode of detector

Error code:

  • None

Definition at line 224 of file moo_detector.c.

References moo_pfits_get_mode().

◆ moo_mode_get_name()

const char * moo_mode_get_name ( moo_mode_type  type)

Get the name of a mode.

Parameters
typethe mode
Returns
mode of detector

Error code:

  • None

Definition at line 204 of file moo_detector.c.

Referenced by moo_spectral_format_load().

◆ moo_offset_get()

int moo_offset_get ( const cpl_frame *  refframe)

Get the offset from a frame.

Parameters
refframethe reference frame where to read the offset
Returns
offset of detector

Error code:

  • -1 in case of error

Definition at line 254 of file moo_detector.c.

References moo_pfits_get_slit_offset().