MOONS Pipeline Reference Manual 0.13.2
moo_kernel.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_KERNEL_H
21#define MOO_KERNEL_H
22
23
24/*-----------------------------------------------------------------------------
25 Includes
26 -----------------------------------------------------------------------------*/
27
28#include <cpl.h>
29#include <hdrl.h>
30#include "moo_detector.h"
31
32#define MOO_KERNEL_EXTNAME "%s%d.INDEXEXT.%d"
33
40/*-----------------------------------------------------------------------------
41 Types
42 -----------------------------------------------------------------------------*/
43typedef struct
44{
45 char *filename;
47
48moo_kernel *moo_kernel_load(const cpl_frame *);
51cpl_matrix *moo_kernel_get_matrix(moo_kernel *self,
53 int ntas,
54 int rbn);
55cpl_propertylist *moo_kernel_get_header(moo_kernel *self,
57 int ntas,
58 int rbn);
59
60#endif
enum _moo_detector_type_ moo_detector_type
The type code type.
Definition: moo_detector.h:64
void moo_kernel_delete(moo_kernel *self)
Delete a moo_kernel.
Definition: moo_kernel.c:113
cpl_propertylist * moo_kernel_get_header(moo_kernel *self, moo_detector_type type, int ntas, int rbn)
Get the header of the kernel for given idrbn or NULL.
Definition: moo_kernel.c:142
moo_kernel * moo_kernel_new(void)
Create a new moo_kernel.
Definition: moo_kernel.c:66
moo_kernel * moo_kernel_load(const cpl_frame *)
Load a new moo_kernel.
Definition: moo_kernel.c:80
cpl_matrix * moo_kernel_get_matrix(moo_kernel *self, moo_detector_type type, int ntas, int rbn)
Get the mtarix of the kernel for given idrbn or NULL.
Definition: moo_kernel.c:170
KERNEL format.
Definition: moo_kernel.h:44