ERIS Pipeline Reference Manual 1.9.2
eris_nix_catalogue.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/*
28 * This file defines methods useful for accessing catalogues.
29 */
30
31#ifndef ERIS_NIX_CATALOGUE_H
32#define ERIS_NIX_CATALOGUE_H
33
34#ifdef HAVE_CONFIG_H
35#include <config.h>
36#endif
37
38/*-----------------------------------------------------------------------------
39 Includes
40 -----------------------------------------------------------------------------*/
41
42#include <cpl.h>
43#include <hdrl.h>
44#include "eris_nix_defs.h"
45
46/*-----------------------------------------------------------------------------
47 Prototypes
48 -----------------------------------------------------------------------------*/
49
50cpl_error_code en_catalogue_conform_naming(cpl_frameset * frameset,
51 const char * tag);
52
53cpl_error_code en_catalogue_coverage(const located_imagelist * cal_jitters,
54 double * ramin, double * ramax,
55 double * decmin, double * decmax);
56
57
58cpl_table * en_catalogue_load_from_file(const char * filename,
59 const double ramin,
60 const double ramax,
61 const double decmin,
62 const double decmax);
63
64cpl_table * en_catalogue_load_from_frameset(cpl_frameset * frameset,
65 const char * tag,
66 const double ramin,
67 const double ramax,
68 const double decmin,
69 const double decmax,
70 cpl_frameset * used,
71 const int required);
72
73cpl_error_code en_catalogue_name_conformance(cpl_table * catalogue);
74
75#endif /* ERIS_NIX_CATALOGUE_H */
cpl_error_code en_catalogue_conform_naming(cpl_frameset *frameset, const char *tag)
Rename essential columns to standard names.