20#ifndef MOO_SCI_SINGLE_H
21#define MOO_SCI_SINGLE_H
30#include "moo_detector.h"
31#include "moo_target_table.h"
32#include "moo_sky_lines_list.h"
40 cpl_propertylist *header;
43 unsigned int badpix_mask;
48#define MOO_SCI_SINGLE_BUNIT "counts"
49#define MOO_SCI_SINGLE_DATA_TYPE CPL_TYPE_FLOAT
50#define MOO_SCI_SINGLE_ERR "ERR"
51#define MOO_SCI_SINGLE_ERR_TYPE CPL_TYPE_FLOAT
52#define MOO_SCI_SINGLE_QUAL "QUAL"
53#define MOO_SCI_SINGLE_QUAL_TYPE CPL_TYPE_INT
54#define MOO_SCI_SINGLE_SKY "SKY"
56#define MOO_SCI_SINGLE_CRPIX2 1
57#define MOO_SCI_SINGLE_CRVAL2 1
58#define MOO_SCI_SINGLE_CDELT2 1.0
59#define MOO_SCI_SINGLE_CTYPE2 "INDEX"
79 moo_sky_lines_list *skylines);
enum _moo_detector_type_ moo_detector_type
The type code type.
void moo_sci_single_save(moo_sci_single *self, const char *filename, moo_detector_type type)
Save a moo_sci_single to a FITS file.
moo_sci_single * moo_sci_single_new(moo_detector_type type)
Create a new moo_sci_single.
void moo_sci_single_delete(moo_sci_single *self)
Delete a moo_sci_single.
cpl_image * moo_sci_single_get_sky(moo_sci_single *self)
Get sky of sci single.
hdrl_image * moo_sci_single_get_image(moo_sci_single *self)
Get image of SCI_SINGLE.
cpl_image * moo_sci_single_get_qual(moo_sci_single *self)
Get image of qual.
cpl_error_code moo_sci_single_load(moo_sci_single *self, unsigned int level)
Load a moo_sci_single from the filename.
cpl_propertylist * moo_sci_single_get_header(moo_sci_single *self)
Get header of sci single.
double moo_sci_single_compute_snr(moo_sci_single *self, int targ_idx, moo_sky_lines_list *skylines)
Compute SNR for a given target.
moo_sci_single * moo_sci_single_create(const char *filename, moo_detector_type type)
Create a new moo_sci_single with the given filename and type.