MOONS Pipeline Reference Manual 0.13.2
Functions
S1D format

Functions

moo_s1d * moo_s1d_new (void)
 Create a new moo_cube.
 
void moo_s1d_delete (moo_s1d *self)
 Delete a moo_s1d.
 
void moo_s1d_save (moo_s1d *self)
 Save a moo_s1d to a FITS file.
 

Detailed Description

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

Functionality include:

Synopsis:
#include "moo_create_s1d.h"

Function Documentation

◆ moo_s1d_delete()

void moo_s1d_delete ( moo_s1d *  self)

Delete a moo_s1d.

Parameters
selfmoo_s1d to delete
Returns
void

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

Definition at line 88 of file moo_s1d.c.

Referenced by moo_create_s1d().

◆ moo_s1d_new()

moo_s1d * moo_s1d_new ( void  )

Create a new moo_cube.

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

The returned object must be deallocated using moo_cube_delete().

Definition at line 70 of file moo_s1d.c.

◆ moo_s1d_save()

void moo_s1d_save ( moo_s1d *  self)

Save a moo_s1d to a FITS file.

Parameters
selfmoo_s1d to write to disk or NULL
Returns
CPL_ERROR_NONE or the relevant cpl_error_code on error

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

Definition at line 117 of file moo_s1d.c.

Referenced by moo_create_s1d(), and moo_products_add_s1d().