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
|
/*
* This file is part of the ESO SINFONI Pipeline
* Copyright (C) 2004-2009 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, 51 Franklin St, Fifth Floor, Boston, MA 02111-1307 USA
*/
/*
* $Author: kmirny $
* $Date: 2009-09-02 11:34:23 $
* $Revision: 1.4 $
* $Log: not supported by cvs2svn $
* Revision 1.3 2009/07/13 14:40:39 kmirny
* fixing unit test failure in star catalog
*
* Revision 1.2 2009/06/19 14:37:58 kmirny
* star index implementation
*
* Revision 1.1 2009/06/16 15:18:26 kmirny
* star catalog implementation for calculating efficiency
*
*/
#ifndef _SINFONI_SINFO_STAR_INDEX_H_
#define _SINFONI_SINFO_STAR_INDEX_H_
typedef struct _star_index_ star_index;
/* Loading the index from the fits file
* */
star_index* star_index_load(const char* fits_file);
/*Save the index to the fits file
* */
star_index* star_index_create(void);
/* Add a new start to the index. To save the changed index to the file star_index_save() should be called
* */
int star_index_add(star_index* pindex, double RA, double DEC, const char* star_name, cpl_table* ptable);
int star_index_remove_by_name(star_index* pindex, const char* starname);
int start_index_get_size(star_index* pindex);
int star_index_save(star_index* pindex, const char* fits_file_name);
cpl_table* star_index_get(star_index* pindex, double RA, double DEC, double RA_EPS, double DEC_EPS, const char** pstar_name);
void star_index_delete(star_index* pindex);
void star_index_dump(star_index* pindex, FILE* pfile);
#endif
|