/home/amodigli/releases/xsh/2.1.1/xsh.30433/xshp/xsh/xsh_data_spectrum1D.h File Reference

#include <cpl.h>
#include <xsh_data_instrument.h>

Go to the source code of this file.

Data Structures

struct  xsh_spectrum1D

Defines

#define XSH_SPECTRUM1D_DATA_TYPE   CPL_TYPE_FLOAT
#define XSH_SPECTRUM1D_DATA_BPP   CPL_BPP_IEEE_FLOAT
#define XSH_SPECTRUM1D_ERRS_TYPE   CPL_TYPE_FLOAT
#define XSH_SPECTRUM1D_ERRS_BPP   CPL_BPP_IEEE_FLOAT
#define XSH_SPECTRUM1D_QUAL_TYPE   CPL_TYPE_INT
#define XSH_SPECTRUM1D_QUAL_BPP   CPL_BPP_32_SIGNED

Functions

xsh_spectrum1Dxsh_spectrum1D_create (double lambda_min, double lambda_max, double lambda_step)
 Create a 1D spectrum structure.
xsh_spectrum1Dxsh_spectrum1D_load (cpl_frame *s1d_frame, xsh_instrument *instr)
 Load a 1D spectrum structure.
int xsh_spectrum1D_get_size (xsh_spectrum1D *s)
 Get size of spectrum.
double xsh_spectrum1D_get_lambda_min (xsh_spectrum1D *s)
 Get minimum lambda of spectrum.
double xsh_spectrum1D_get_lambda_max (xsh_spectrum1D *s)
 Get maximum lambda of spectrum.
double xsh_spectrum1D_get_lambda_step (xsh_spectrum1D *s)
 Get bin in lambda of spectrum.
double * xsh_spectrum1D_get_flux (xsh_spectrum1D *s)
 Get flux of spectrum.
double * xsh_spectrum1D_get_errs (xsh_spectrum1D *s)
 Get errs of spectrum.
int * xsh_spectrum1D_get_qual (xsh_spectrum1D *s)
 Get qual of spectrum.
cpl_frame * xsh_spectrum1D_save (xsh_spectrum1D *s, const char *filename)
 save a 1D spectrum
void xsh_spectrum1D_free (xsh_spectrum1D **list)
 free memory associated to an 1D spectrum
cpl_error_code xsh_monitor_spectrum1D_flux (cpl_frame *in_frm, xsh_instrument *instrument)

Define Documentation

#define XSH_SPECTRUM1D_DATA_BPP   CPL_BPP_IEEE_FLOAT

Definition at line 33 of file xsh_data_spectrum1D.h.

Referenced by xsh_spectrum1D_save().

#define XSH_SPECTRUM1D_DATA_TYPE   CPL_TYPE_FLOAT

Definition at line 32 of file xsh_data_spectrum1D.h.

#define XSH_SPECTRUM1D_ERRS_BPP   CPL_BPP_IEEE_FLOAT

Definition at line 35 of file xsh_data_spectrum1D.h.

Referenced by xsh_spectrum1D_save().

#define XSH_SPECTRUM1D_ERRS_TYPE   CPL_TYPE_FLOAT

Definition at line 34 of file xsh_data_spectrum1D.h.

#define XSH_SPECTRUM1D_QUAL_BPP   CPL_BPP_32_SIGNED

Definition at line 37 of file xsh_data_spectrum1D.h.

Referenced by xsh_spectrum1D_save().

#define XSH_SPECTRUM1D_QUAL_TYPE   CPL_TYPE_INT

Definition at line 36 of file xsh_data_spectrum1D.h.


Generated on 13 Mar 2013 for X-shooter Pipeline Reference Manual by  doxygen 1.6.1