20#ifndef MOO_EXT_SINGLE_H
21#define MOO_EXT_SINGLE_H
30#include "moo_detector.h"
31#include "moo_spectral_format.h"
32#include "moo_sky_lines_list.h"
40 cpl_propertylist *header;
43 unsigned int badpix_mask;
48#define MOO_EXT_SINGLE_ERR "ERR"
49#define MOO_EXT_SINGLE_ERR_TYPE CPL_TYPE_FLOAT
50#define MOO_EXT_SINGLE_QUAL "QUAL"
51#define MOO_EXT_SINGLE_QUAL_TYPE CPL_TYPE_INT
53#define MOO_EXT_SINGLE_CRPIX2 1
54#define MOO_EXT_SINGLE_CRVAL2 1
55#define MOO_EXT_SINGLE_CDELT2 1.0
56#define MOO_EXT_SINGLE_CTYPE2 "INDEX"
73cpl_error_code moo_ext_single_compute_qc(moo_ext_single *self,
75 const char *dersnr_colname,
76 cpl_table *fibres_table);
96 moo_spectral_format_info *sinfo,
97 moo_sky_lines_list *skylines,
enum _moo_detector_type_ moo_detector_type
The type code type.
double moo_ext_single_compute_snr(moo_ext_single *self, int ext_idx, cpl_image *wmap, moo_spectral_format_info *sinfo, moo_sky_lines_list *skylines, double *dersnr)
Compute SNR for a given target.
moo_ext_single * moo_ext_single_new(moo_detector_type type, int ntas)
Create a new moo_ext_single.
hdrl_image * moo_ext_single_get_image(moo_ext_single *self)
Get image of EXT_SINGLE.
cpl_error_code moo_ext_single_load(moo_ext_single *self, unsigned int level)
load a moo_ext_single using the level for badpixel
cpl_error_code moo_ext_single_free(moo_ext_single *self)
Free memory associate to this single EXT.
void moo_ext_single_delete(moo_ext_single *self)
Delete a moo_ext_single.
cpl_image * moo_ext_single_get_qual(moo_ext_single *self)
Get image of qual.
moo_ext_single * moo_ext_single_create(const char *filename, moo_detector_type type, int ntas)
Create a new moo_ext_single from the given EXT filename.
void moo_ext_single_save(const moo_ext_single *self, const char *filename, moo_detector_type type, int ntas)
Save a moo_ext_single to a FITS file.
cpl_error_code moo_ext_single_set_wcs1(moo_ext_single *self, double crpix1, double crval1, double cd1_1, const char *ctype1, const char *cunit1)
Set the WCS1 of the extension.
cpl_image * moo_ext_single_get_errs(moo_ext_single *self)
Get image of errs.
cpl_error_code moo_ext_single_dump(const moo_ext_single *self, FILE *stream)
Dump structural information of EXT_SINGLE.
cpl_error_code moo_ext_single_sum(moo_ext_single *a, moo_ext_single *b)
Add two single EXT.
cpl_propertylist * moo_ext_single_get_header(moo_ext_single *self)
Get header of ext single.
cpl_image * moo_ext_single_get_data(moo_ext_single *self)
Get image of data.