#include <math.h>
#include <xsh_data_spectrum.h>
#include <xsh_utils.h>
#include <xsh_error.h>
#include <xsh_msg.h>
#include <xsh_pfits.h>
#include <xsh_dfs.h>
#include <cpl.h>
Go to the source code of this file.
Functions | |
xsh_spectrum * | xsh_spectrum_1D_create (double lambda_min, double lambda_max, double lambda_step) |
Create a 1D spectrum structure. | |
xsh_spectrum * | xsh_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_spectrum * | xsh_spectrum_load (cpl_frame *s1d_frame) |
Load a 1D spectrum structure. | |
xsh_spectrum * | xsh_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. | |
void | xsh_spectrum_free (xsh_spectrum **s) |
free memory associated to an 1D 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 | |
xsh_spectrum * | xsh_spectrum_duplicate (xsh_spectrum *org) |
cpl_frame * | xsh_phys_spectrum_save (xsh_spectrum *s, const char *filename, xsh_instrument *instr) |
save a spectrum |