OMEGA Pipeline Reference Manual  1.0.5
omega_catalog.h
1 /* $Id: omega_catalog.h,v 1.2 2011-07-22 09:57:41 agabasch Exp $
2  *
3  * This file is part of the OMEGA 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19  */
20 
21 /*
22  * $Author: agabasch $
23  * $Date: 2011-07-22 09:57:41 $
24  * $Revision: 1.2 $
25  * $Name: not supported by cvs2svn $
26  */
27 
28 #ifndef OC_CATALOG_H
29 #define OC_CATALOG_H
30 
31 /*-----------------------------------------------------------------------------
32  Includes
33  -----------------------------------------------------------------------------*/
34 
35 #include <cpl.h>
36 
37 CPL_BEGIN_DECLS
38 
39 #define omega_max(_x,_y) (_x > _y ? _x : _y)
40 #define omega_min(_x,_y) (_x < _y ? _x : _y)
41 #define NGRIDMAX 31
42 #define NX 2048
43 #define NY 4100
44 
45 
53 int omega_get_coverage(cpl_propertylist *plist, int fudge, cpl_matrix *from, double *ra1,
54  double *ra2, double *dec1, double *dec2);
55 
56 cpl_table *omega_extract_stds(const char *pathname, cpl_vector *coords, int n);
57 int omega_matchstds(cpl_table *objtab, cpl_table *stdstab, float srad, cpl_table **outtab);
58 cpl_table *omega_get_usnoa_table(const cpl_frame *catalog, cpl_vector *coords, int *nstds);
59 cpl_table *omega_get_stds_table(const char *stdcat, cpl_vector *coords, int *nstds);
60 cpl_table * wcscor_matchstds(cpl_table *objtab, cpl_table *stdstab, float srad);
61 
62 cpl_table *omega_filter_table_int(cpl_table *src, const char *col, cpl_table_select_operator operator,
63  int value, int *nsrc);
64 cpl_table *omega_filter_table_double(cpl_table *src, const char *col, cpl_table_select_operator operator,
65  double value, int *nsrc);
66 cpl_table *omega_filter_table_string(cpl_table *src, const char *col, cpl_table_select_operator operator,
67  const char *value, int *nsrc);
68 cpl_table *omega_filter_table_float(cpl_table *src, const char *col, cpl_table_select_operator operator,
69  float value, int *nsrc);
70 cpl_table *omega_science_catalogue(const char *sci, const char *conf, double zeropoint_final, cpl_parameterlist *pars);
71 
72 CPL_END_DECLS
73 
74 #endif