MOONS Pipeline Reference Manual 0.13.1
moo_raw.h
1/*
2 * This file is part of the MOONS Pipeline
3 * Copyright (C) 2002-2016 European Southern Observatory
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 */
19
20#ifndef MOO_RAW_H
21#define MOO_RAW_H
22
23
24/*-----------------------------------------------------------------------------
25 Includes
26 -----------------------------------------------------------------------------*/
27
28#include <cpl.h>
29#include <hdrl.h>
30#include "moo_single.h"
31
32
33/*-----------------------------------------------------------------------------
34 Types
35 -----------------------------------------------------------------------------*/
36/* detector structure */
37typedef struct
38{
39 cpl_propertylist *header;
40 cpl_image *data;
41} moo_raw_ext;
42
43typedef struct
44{
45 const char *filename;
46 cpl_propertylist *primary_header;
47 moo_raw_ext *ri[2];
48 moo_raw_ext *yj[2];
49 moo_raw_ext *h[2];
50} moo_raw;
51/*-----------------------------------------------------------------------------
52 Functions prototypes
53 -----------------------------------------------------------------------------*/
54
55moo_raw *moo_raw_new(void);
56moo_raw *moo_raw_create(const cpl_frame *frame);
57void moo_raw_delete(moo_raw *self);
58cpl_error_code moo_raw_save(moo_raw *self, const char *filename);
59cpl_error_code moo_raw_avg(moo_raw *a, moo_raw *b);
60
61#endif
moo_raw * moo_raw_new(void)
Create a new moo_raw
Definition: moo_raw.c:98
cpl_error_code moo_raw_save(moo_raw *self, const char *filename)
Save a moo_raw to a FITS file.
Definition: moo_raw.c:254
void moo_raw_delete(moo_raw *self)
Delete a moo_raw.
Definition: moo_raw.c:114
moo_raw * moo_raw_create(const cpl_frame *frame)
prepare moons raw frames
Definition: moo_raw.c:170
cpl_error_code moo_raw_avg(moo_raw *a, moo_raw *b)
Add to RAW frames (result in a)
Definition: moo_raw.c:213