/home/amodigli/releases/xsh/1.2.10/pso/xsh.26608/xshp/xsh/xsh_data_spectrum.h File Reference

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

Go to the source code of this file.

Data Structures

struct  xsh_spectrum

Defines

#define XSH_SPECTRUM_DATA_TYPE   CPL_TYPE_FLOAT
#define XSH_SPECTRUM_DATA_BPP   CPL_BPP_IEEE_FLOAT
#define XSH_SPECTRUM_ERRS_TYPE   CPL_TYPE_FLOAT
#define XSH_SPECTRUM_ERRS_BPP   CPL_BPP_IEEE_FLOAT
#define XSH_SPECTRUM_QUAL_TYPE   CPL_TYPE_INT
#define XSH_SPECTRUM_QUAL_BPP   CPL_BPP_32_SIGNED

Functions

xsh_spectrumxsh_spectrum_1D_create (double lambda_min, double lambda_max, double lambda_step)
 Create a 1D spectrum structure.
xsh_spectrumxsh_spectrum_2D_create (double lambda_min, double lambda_max, double lambda_step, double slit_min, double slit_max, double slit_step)
 Create a 2D spectrum structure.
xsh_spectrumxsh_spectrum_load (cpl_frame *s1d_frame, xsh_instrument *instr)
 Load a 1D spectrum structure.
xsh_spectrumxsh_spectrum_load_order (cpl_frame *s1d_frame, xsh_instrument *instr, const int order)
 Load a 1D spectrum structure.
int xsh_spectrum_get_size (xsh_spectrum *s)
 Get size of spectrum.
int xsh_spectrum_get_size_lambda (xsh_spectrum *s)
 Get lambda axis size of spectrum.
int xsh_spectrum_get_size_slit (xsh_spectrum *s)
 Get slit axis ize of spectrum.
double xsh_spectrum_get_lambda_min (xsh_spectrum *s)
 Get minimum lambda of spectrum.
double xsh_spectrum_get_lambda_max (xsh_spectrum *s)
 Get maximum lambda of spectrum.
double xsh_spectrum_get_lambda_step (xsh_spectrum *s)
 Get bin in lambda of spectrum.
double * xsh_spectrum_get_flux (xsh_spectrum *s)
 Get flux of spectrum.
double * xsh_spectrum_get_errs (xsh_spectrum *s)
 Get errs of spectrum.
int * xsh_spectrum_get_qual (xsh_spectrum *s)
 Get qual of spectrum.
cpl_frame * xsh_spectrum_save (xsh_spectrum *s, const char *filename, const char *tag)
 save a spectrum
cpl_frame * xsh_spectrum_save_order (xsh_spectrum *s, const char *filename, const char *tag, const int order)
 save a spectrum
void xsh_spectrum_free (xsh_spectrum **list)
 free memory associated to an 1D spectrum
cpl_frame * xsh_phys_spectrum_save (xsh_spectrum *s, const char *filename, xsh_instrument *instr)
 save a spectrum
xsh_spectrumxsh_spectrum_duplicate (xsh_spectrum *org)

Define Documentation

#define XSH_SPECTRUM_DATA_BPP   CPL_BPP_IEEE_FLOAT
#define XSH_SPECTRUM_DATA_TYPE   CPL_TYPE_FLOAT

Definition at line 32 of file xsh_data_spectrum.h.

#define XSH_SPECTRUM_ERRS_BPP   CPL_BPP_IEEE_FLOAT
#define XSH_SPECTRUM_ERRS_TYPE   CPL_TYPE_FLOAT

Definition at line 34 of file xsh_data_spectrum.h.

#define XSH_SPECTRUM_QUAL_BPP   CPL_BPP_32_SIGNED
#define XSH_SPECTRUM_QUAL_TYPE   CPL_TYPE_INT

Definition at line 36 of file xsh_data_spectrum.h.


Generated on 9 Mar 2011 for X-shooter Pipeline Reference Manual by  doxygen 1.6.1