MOONS Pipeline Reference Manual 0.13.1
Macros | Functions
ATM format

Macros

#define MOO_ATM_EXTNAME   "EXTINCTION TABLE"
 ATM format.
 

Functions

moo_atm * moo_atm_new (void)
 Create a new moo_atm.
 
moo_atm * moo_atm_load (const cpl_frame *frame)
 Load a ATM frame and create a moo_atm.
 
cpl_table * moo_atm_convert_mag_to_flux (moo_atm *self, double airm)
 Get the extinction table with additonal column FLUX.
 
void moo_atm_delete (moo_atm *self)
 Delete a moo_atm.
 

Detailed Description

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

Functionality include:

Synopsis:
#include "moo_atm.h"

Function Documentation

◆ moo_atm_convert_mag_to_flux()

cpl_table * moo_atm_convert_mag_to_flux ( moo_atm *  self,
double  airm 
)

Get the extinction table with additonal column FLUX.

Parameters
selfthe ATM object
airmthe AIRMASS value
Returns
the extinction table or NULL

Possible cpl_error_code set in this function:

  • CPL_ERROR_NULL_INPUT if an input pointer is NULL

Definition at line 122 of file moo_atm.c.

◆ moo_atm_delete()

void moo_atm_delete ( moo_atm *  self)

Delete a moo_atm.

Parameters
selfmoo_atm to delete
Returns
void

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

Definition at line 154 of file moo_atm.c.

Referenced by moo_atm_load().

◆ moo_atm_load()

moo_atm * moo_atm_load ( const cpl_frame *  frame)

Load a ATM frame and create a moo_atm.

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

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

  • CPL_ERROR_NULL_INPUT if an input pointer is NULL

Definition at line 83 of file moo_atm.c.

References moo_atm_delete(), MOO_ATM_EXTNAME, and moo_atm_new().

◆ moo_atm_new()

moo_atm * moo_atm_new ( void  )

Create a new moo_atm.

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

The returned object must be deallocated using moo_atm_delete().

Definition at line 66 of file moo_atm.c.

Referenced by moo_atm_load().