X-shooter Pipeline Reference Manual 3.8.15
xsh_star_index.h
Go to the documentation of this file.
1/*
2 * This file is part of the ESO X-Shooter 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: amodigli $
21 * $Date: 2010-01-12 09:26:45 $
22 * $Revision: 1.1 $
23 *
24*/
25#ifndef _SINFONI_SINFO_STAR_INDEX_H_
26#define _SINFONI_SINFO_STAR_INDEX_H_
27
28
29typedef struct _star_index_ star_index;
30
31/* Loading the index from the fits file
32 * */
33star_index* star_index_load(const char* fits_file);
34
35/*Save the index to the fits file
36 * */
38/* Add a new start to the index. To save the changed index to the file star_index_save() should be called
39 * */
40int star_index_add(star_index* pindex, double RA, double DEC, const char* star_name, cpl_table* ptable);
41int star_index_remove_by_name(star_index* pindex, const char* starname);
43int star_index_save(star_index* pindex, const char* fits_file_name);
44cpl_table* star_index_get(star_index* pindex, double RA, double DEC, double RA_EPS, double DEC_EPS, const char** pstar_name);
45void star_index_delete(star_index* pindex);
46void star_index_dump(star_index* pindex, FILE* pfile);
47
48
49
50#endif
char * fits_file_name
int star_index_add(star_index *pindex, double RA, double DEC, const char *star_name, cpl_table *ptable)
void star_index_dump(star_index *pindex, FILE *pfile)
void star_index_delete(star_index *pindex)
int star_index_save(star_index *pindex, const char *fits_file_name)
star_index * star_index_create(void)
star_index * star_index_load(const char *fits_file)
int star_index_remove_by_name(star_index *pindex, const char *starname)
cpl_table * star_index_get(star_index *pindex, double RA, double DEC, double RA_EPS, double DEC_EPS, const char **pstar_name)
int start_index_get_size(star_index *pindex)