IIINSTRUMENT Pipeline Reference Manual 6.2.5
isaac_utils.h
1/* $Id: isaac_utils.h,v 1.20 2013-03-12 08:06:48 llundin Exp $
2 *
3 * This file is part of the ISAAC Pipeline
4 * Copyright (C) 2002,2003 European Southern Observatory
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02111-1307 USA
19 */
20
21/*
22 * $Author: llundin $
23 * $Date: 2013-03-12 08:06:48 $
24 * $Revision: 1.20 $
25 * $Name: not supported by cvs2svn $
26 */
27
28#ifndef ISAAC_UTILS_H
29#define ISAAC_UTILS_H
30
31/*-----------------------------------------------------------------------------
32 Includes
33 -----------------------------------------------------------------------------*/
34
35#include <cpl.h>
36
37/*-----------------------------------------------------------------------------
38 Includes
39 -----------------------------------------------------------------------------*/
40
41typedef enum _ISAAC_BAND_ {
42 ISAAC_BAND_J,
43 ISAAC_BAND_JS,
44 ISAAC_BAND_JBLOCK,
45 ISAAC_BAND_H,
46 ISAAC_BAND_K,
47 ISAAC_BAND_KS,
48 ISAAC_BAND_L,
49 ISAAC_BAND_M,
50 ISAAC_BAND_LP,
51 ISAAC_BAND_MP,
52 ISAAC_BAND_Z,
53 ISAAC_BAND_SZ,
54 ISAAC_BAND_SH,
55 ISAAC_BAND_SK,
56 ISAAC_BAND_SL,
57 ISAAC_BAND_UNKNOWN
58} isaac_band;
59
60/*-----------------------------------------------------------------------------
61 Prototypes
62 -----------------------------------------------------------------------------*/
63
64const char * isaac_get_license(void);
65cpl_bivector * isaac_get_offsets(const cpl_frameset *);
66isaac_band isaac_get_bbfilter(const char *);
67isaac_band isaac_get_associated_filter(const char *);
68cpl_image * isaac_oddeven_correct(const cpl_image *);
69cpl_frameset * isaac_extract_frameset(const cpl_frameset *, const char *);
70const char * isaac_extract_filename(const cpl_frameset *, const char *);
71const char * isaac_std_band_name(isaac_band);
72
73#endif
cpl_bivector * isaac_get_offsets(const cpl_frameset *)
Get the offsets from a set of frames.
Definition: isaac_utils.c:92
isaac_band isaac_get_bbfilter(const char *)
Get the broad band filter.
Definition: isaac_utils.c:144
const char * isaac_std_band_name(isaac_band)
Return a band name.
Definition: isaac_utils.c:243
cpl_frameset * isaac_extract_frameset(const cpl_frameset *, const char *)
Extract the frames with the given tag from a frameset.
Definition: isaac_utils.c:356
cpl_image * isaac_oddeven_correct(const cpl_image *)
Correct the odd/even in an image.
Definition: isaac_utils.c:275
const char * isaac_extract_filename(const cpl_frameset *, const char *)
Extract the filename of the first frame of the given tag.
Definition: isaac_utils.c:397
isaac_band isaac_get_associated_filter(const char *)
Get the broad band filter.
Definition: isaac_utils.c:195
const char * isaac_get_license(void)
Get the pipeline copyright and license.
Definition: isaac_utils.c:62