20#ifndef MOO_RBN_SINGLE_H
21#define MOO_RBN_SINGLE_H
30#include "moo_detector.h"
31#include "moo_sky_lines_list.h"
39 cpl_propertylist *header;
42 unsigned int badpix_mask;
46#define MOO_RBN_SINGLE_BUNIT "counts"
47#define MOO_RBN_SINGLE_ERR "ERR"
48#define MOO_RBN_SINGLE_ERR_TYPE CPL_TYPE_FLOAT
49#define MOO_RBN_SINGLE_QUAL "QUAL"
50#define MOO_RBN_SINGLE_QUAL_TYPE CPL_TYPE_INT
52#define MOO_RBN_SINGLE_CRPIX2 1
53#define MOO_RBN_SINGLE_CRVAL2 1
54#define MOO_RBN_SINGLE_CDELT2 1.0
55#define MOO_RBN_SINGLE_CTYPE2 "INDEX"
81 moo_sky_lines_list *skylines);
enum _moo_detector_type_ moo_detector_type
The type code type.
hdrl_image * moo_rbn_single_get_image(moo_rbn_single *self)
Get image of RBN_SINGLE.
moo_rbn_single * moo_rbn_single_create(const char *filename, moo_detector_type type)
Create a new moo_rbn_single with the given filename and type.
void moo_rbn_single_save(const moo_rbn_single *self, const char *filename, moo_detector_type type)
Save a moo_rbn_single to a FITS file.
cpl_propertylist * moo_rbn_single_get_header(moo_rbn_single *self)
Get header of rbn single.
moo_rbn_single * moo_rbn_single_new(moo_detector_type type)
Create a new moo_rbn_single.
void moo_rbn_single_delete(moo_rbn_single *self)
Delete a moo_rbn_single.
cpl_error_code moo_rbn_single_dump(const moo_rbn_single *self, FILE *stream)
Dump structural information of a Single DET.
cpl_error_code moo_rbn_single_load(moo_rbn_single *self, unsigned int level)
load the data of a moo_rbn_single
cpl_image * moo_rbn_single_get_data(moo_rbn_single *self)
Get image of data.
double moo_rbn_single_compute_snr(moo_rbn_single *self, int rbn_idx, moo_sky_lines_list *skylines)
Compute SNR for a given target.
cpl_error_code moo_rbn_single_free(moo_rbn_single *self)
Free memory associate to this single RBN.
cpl_error_code moo_rbn_single_set_wcs1(moo_rbn_single *self, double crpix1, double crval1, double cd1_1, const char *ctype1, const char *cunit1)
Set the WCS1 of the extension.
cpl_image * moo_rbn_single_get_qual(moo_rbn_single *self)
Get image of qual.
cpl_image * moo_rbn_single_get_errs(moo_rbn_single *self)
Get image of errs.