sinfo_star_index.h

00001 /*
00002  * This file is part of the ESO SINFONI Pipeline
00003  * Copyright (C) 2004-2009 European Southern Observatory
00004  *
00005  * This program is free software; you can redistribute it and/or modify
00006  * it under the terms of the GNU General Public License as published by
00007  * the Free Software Foundation; either version 2 of the License, or
00008  * (at your option) any later version.
00009  *
00010  * This program is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  * GNU General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU General Public License
00016  * along with this program; if not, write to the Free Software
00017  * Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA
00018  */
00019 /*
00020  * $Author: kmirny $
00021  * $Date: 2009/09/02 11:34:23 $
00022  * $Revision: 1.4 $
00023  * $Log: sinfo_star_index.h,v $
00024  * Revision 1.4  2009/09/02 11:34:23  kmirny
00025  * fixing compiler warning
00026  *
00027  * Revision 1.3  2009/07/13 14:40:39  kmirny
00028  * fixing unit test failure in star catalog
00029  *
00030  * Revision 1.2  2009/06/19 14:37:58  kmirny
00031  * star index implementation
00032  *
00033  * Revision 1.1  2009/06/16 15:18:26  kmirny
00034  * star catalog implementation for calculating efficiency
00035  *
00036 */
00037 #ifndef _SINFONI_SINFO_STAR_INDEX_H_
00038 #define _SINFONI_SINFO_STAR_INDEX_H_
00039 
00040 
00041 typedef struct _star_index_ star_index;
00042 
00043 /* Loading the index from the fits file
00044  * */
00045 star_index* star_index_load(const char* fits_file);
00046 
00047 /*Save the index to the fits file
00048  * */
00049 star_index* star_index_create(void);
00050 /* Add a new start to the index. To save the changed index to the file star_index_save() should be called
00051  * */
00052 int star_index_add(star_index* pindex, double RA, double DEC, const char* star_name, cpl_table* ptable);
00053 int star_index_remove_by_name(star_index* pindex, const char* starname);
00054 int start_index_get_size(star_index* pindex);
00055 int star_index_save(star_index* pindex, const char* fits_file_name);
00056 cpl_table* star_index_get(star_index* pindex, double RA, double DEC, double RA_EPS, double DEC_EPS, const char** pstar_name);
00057 void star_index_delete(star_index* pindex);
00058 void star_index_dump(star_index* pindex, FILE* pfile);
00059 
00060 
00061 
00062 #endif

Generated on 8 Mar 2011 for SINFONI Pipeline Reference Manual by  doxygen 1.6.1