File: irplib_stdstar.h

package info (click to toggle)
cpl-plugin-vimos 4.1.1%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 28,228 kB
  • sloc: ansic: 169,271; cpp: 16,177; sh: 4,344; python: 3,678; makefile: 1,138; perl: 10
file content (80 lines) | stat: -rw-r--r-- 3,414 bytes parent folder | download | duplicates (39)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
/* $Id: irplib_stdstar.h,v 1.16 2013-02-27 10:37:52 llundin Exp $
 *
 * This file is part of the irplib package
 * Copyright (C) 2002,2003 European Southern Observatory
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA
 */

/*
 * $Author: llundin $
 * $Date: 2013-02-27 10:37:52 $
 * $Revision: 1.16 $
 * $Name: not supported by cvs2svn $
 */

#ifndef IRPLIB_STDSTAR_H
#define IRPLIB_STDSTAR_H

/*-----------------------------------------------------------------------------
                                   Includes
 -----------------------------------------------------------------------------*/

#include <cpl.h>

/*-----------------------------------------------------------------------------
                                   Defines
 -----------------------------------------------------------------------------*/

#define     IRPLIB_STDSTAR_STAR_COL     "STARS"
#define     IRPLIB_STDSTAR_TYPE_COL     "SP_TYPE"
#define     IRPLIB_STDSTAR_RA_COL       "RA"
#define     IRPLIB_STDSTAR_DEC_COL      "DEC"
#define     IRPLIB_STDSTAR_CAT_COL      "CATALOG"

/* Maximum allowed distance [arc minutes] between observation and
   catalogue coordinates  */
#define     IRPLIB_STDSTAR_MAXDIST       2.0

/* Magical value to indicate an invalid magnitude  */
#define     IRPLIB_STDSTAR_NOMAG         99.0

/* Use this limit in comparisons regarding an invalid magnitude  */
#define     IRPLIB_STDSTAR_LIMIT         (IRPLIB_STDSTAR_NOMAG-1.0)

/*-----------------------------------------------------------------------------
                                   Function prototypes
 -----------------------------------------------------------------------------*/

cpl_error_code
irplib_stdstar_write_catalogs(cpl_frameset *, const cpl_frameset *,
                              const char *, const char *, const char *,
                              const char *, const char *,
                              cpl_table * (*)(const char *));
cpl_table * irplib_stdstar_load_catalog(const char *, const char *);
cpl_error_code irplib_stdstar_check_columns_exist(const cpl_table  *);
int irplib_stdstar_select_stars_dist(cpl_table *, double, double, double);
int irplib_stdstar_select_stars_mag(cpl_table *, const char *);
int irplib_stdstar_find_closest(const cpl_table *, double, double);
cpl_error_code irplib_stdstar_find_star(const char *, double, double, const char *, 
        const char *, double *, char **, char **, char **, 
        double *, double  * , double);
cpl_vector * irplib_stdstar_get_conversion(const cpl_bivector *, double, double,
        double, double);
cpl_vector * irplib_stdstar_get_mag_zero(const cpl_bivector *,
        const cpl_vector *, double);
cpl_bivector * irplib_stdstar_get_sed(const char *, const char *);

#endif