ERIS Pipeline Reference Manual 1.9.2
eris_ifu_star_index.h
1/*
2 * This file is part of the ESO SINFONI Pipeline
3 * Copyright (C) 2004-2009 European Southern Observatory
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, 51 Franklin St, Fifth Floor, Boston, MA 02111-1307 USA
18 */
19/*
20 * $Author: kmirny $
21 * $Date: 2009-09-02 11:34:23 $
22 * $Revision: 1.4 $
23 * $Log: not supported by cvs2svn $
24 * Revision 1.3 2009/07/13 14:40:39 kmirny
25 * fixing unit test failure in star catalog
26 *
27 * Revision 1.2 2009/06/19 14:37:58 kmirny
28 * star index implementation
29 *
30 * Revision 1.1 2009/06/16 15:18:26 kmirny
31 * star catalog implementation for calculating efficiency
32 *
33*/
34#ifndef _SINFONI_SINFO_STAR_INDEX_H_
35#define _SINFONI_SINFO_STAR_INDEX_H_
36
37
38typedef struct _star_index_ star_index;
39
40/* Loading the index from the fits file
41 * */
42star_index* star_index_load(const char* fits_file);
43
44/*Save the index to the fits file
45 * */
46star_index* star_index_create(void);
47/* Add a new start to the index. To save the changed index to the file star_index_save() should be called
48 * */
49int star_index_add(star_index* pindex, double RA, double DEC, const char* star_name, cpl_table* ptable);
50int star_index_remove_by_name(star_index* pindex, const char* starname);
51int star_index_save(star_index* pindex, const char* fits_file_name);
52cpl_table* star_index_get(star_index* pindex, double RA, double DEC, double RA_EPS, double DEC_EPS, const char** pstar_name);
53void star_index_delete(star_index* pindex);
54void star_index_dump(star_index* pindex, FILE* pfile);
55cpl_error_code eris_parse_catalog_std_stars(cpl_frame* cat, double dRA, double dDEC,
56 double EPSILON, cpl_table** pptable);
57
58
59
60#endif