ERIS Pipeline Reference Manual 1.9.2
eris_nix_defs.h
1/* $Id$
2 *
3 * This file is part of the ERIS/NIX Pipeline
4 * Copyright (C) 2017 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 02110-1301 USA
19 */
20
21/*
22 * $Author$:
23 * $Date$:
24 * $Rev$:
25 */
26
27#ifndef ERIS_NIX_DEFS_H
28#define ERIS_NIX_DEFS_H
29
30#include <hdrl.h>
31
32#define CASU_2MASS_PSC 1
33#define CASU_USNOB 2
34#define CASU_PPMXL 3
35#define CASU_LANDOLT 4
36#define CASU_WISE 5
37#define CASU_APASS 6
38
39#define ERIS_NIX_SATURATION_DEFAULT 5000.0
40
41CPL_BEGIN_DECLS
42
43typedef struct {
44 hdrl_image * himage; //Current jitter image result if not a cube
45 hdrl_imagelist * himagelist; //Cube planes if the data is a cube
46 cpl_image * confidence; //Confidence array associated with the image
47 hdrl_image * bkg; //Sky background subtracted from the image
48 cpl_image * bkg_confidence; //Confidence array associated with the sky background
49 cpl_propertylist * plist; //Propertylist associated with the image
50 hdrl_catalogue_result * objects; //Objects catalogued in the image
51 cpl_mask * object_mask; //The object mask derived from the catalogued objects
52 hdrl_catalogue_result * matchstd_wcs; //Catalogue of objects matched with wcs standards
53 hdrl_catalogue_result * matchstd_phot; // Catalogue of objects matched with photometric standards
54 cpl_frame * frame; //CPL frame of original image
55} located_image;
56
57typedef struct {
58 located_image ** limages;
59 cpl_size size;
60} located_imagelist;
61
62#define ERIS_NIX_MEF_MASK 1
63#define ERIS_NIX_MEF_IMAGE 2
64
65typedef struct {
66 char * name;
67 void * data;
68 const char * data_type;
69 cpl_propertylist * plist;
70} mef_extension;
71
72typedef struct {
73 mef_extension ** mef;
74 cpl_size size;
75} mef_extension_list;
76
77CPL_END_DECLS
78
79/*-----------------------------------------------------------------------------
80 Defines
81 -----------------------------------------------------------------------------*/
82
83#define enu_check_error_code(...) \
84 cpl_error_ensure(cpl_error_get_code()==CPL_ERROR_NONE,\
85 cpl_error_get_code(), goto cleanup, __VA_ARGS__)
86
87#define enu_check(BOOL, CODE, ...) \
88 cpl_error_ensure(BOOL, CODE, goto cleanup, __VA_ARGS__)
89
90
91#endif /* ERIS_NIX_DEFS_H */
92
93