MOONS Pipeline Reference Manual 0.13.1
Functions
RAW format

Functions

moo_raw * moo_raw_new (void)
 Create a new moo_raw

 
void moo_raw_delete (moo_raw *self)
 Delete a moo_raw.
 
moo_raw * moo_raw_create (const cpl_frame *rawframe)
 prepare moons raw frames

 
cpl_error_code moo_raw_avg (moo_raw *a, moo_raw *b)
 Add to RAW frames (result in a)
 
cpl_error_code moo_raw_save (moo_raw *self, const char *filename)
 Save a moo_raw to a FITS file.
 

Detailed Description

Function Documentation

◆ moo_raw_avg()

cpl_error_code moo_raw_avg ( moo_raw *  a,
moo_raw *  b 
)

Add to RAW frames (result in a)

Parameters
aRAW frame containing the result of (a+b)
bRAW frame to add
Returns
relevant error code or CPL_ERROR_NONE

Error code:

  • CPL_ERROR_NULL_INPUT if an input parameter is a NULL pointer

Definition at line 213 of file moo_raw.c.

◆ moo_raw_create()

moo_raw * moo_raw_create ( const cpl_frame *  rawframe)

prepare moons raw frames

Parameters
rawframethe RAW cpl frame to prepare
Returns
the RAW corresponding to the given raw file

Error code:

  • CPL_ERROR_NULL_INPUT if an input parameter is a NULL pointer
  • CPL_ERROR_ILLEGAL_INPUT if the rawframe group is not CPL_FRAME_GROUP_RAW

Definition at line 170 of file moo_raw.c.

References moo_raw_new().

◆ moo_raw_delete()

void moo_raw_delete ( moo_raw *  self)

Delete a moo_raw.

Parameters
selfmoo_raw to delete
Returns
void

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

Definition at line 114 of file moo_raw.c.

◆ moo_raw_new()

moo_raw * moo_raw_new ( void  )

Create a new moo_raw

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

The returned object must be deallocated using moo_det_delete().

Definition at line 98 of file moo_raw.c.

Referenced by moo_raw_create().

◆ moo_raw_save()

cpl_error_code moo_raw_save ( moo_raw *  self,
const char *  filename 
)

Save a moo_raw to a FITS file.

Parameters
selfmoo_raw to write to disk or NULL
filenameName of the file to write
Returns
error code

This function saves a moo_raw to a FITS file, using cfitsio. Only not NULL extensions are written.


Error code:

  • CPL_ERROR_NULL_INPUT if input parameter is a NULL pointer

Definition at line 254 of file moo_raw.c.