00001 /* 00002 * This file is part of the ESO X-Shooter 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: amodigli $ 00021 * $Date: 2010/01/12 09:26:45 $ 00022 * $Revision: 1.1 $ 00023 * 00024 */ 00025 #ifndef _SINFONI_SINFO_STAR_INDEX_H_ 00026 #define _SINFONI_SINFO_STAR_INDEX_H_ 00027 00028 00029 typedef struct _star_index_ star_index; 00030 00031 /* Loading the index from the fits file 00032 * */ 00033 star_index* star_index_load(const char* fits_file); 00034 00035 /*Save the index to the fits file 00036 * */ 00037 star_index* star_index_create(void); 00038 /* Add a new start to the index. To save the changed index to the file star_index_save() should be called 00039 * */ 00040 int star_index_add(star_index* pindex, double RA, double DEC, const char* star_name, cpl_table* ptable); 00041 int star_index_remove_by_name(star_index* pindex, const char* starname); 00042 int start_index_get_size(star_index* pindex); 00043 int star_index_save(star_index* pindex, const char* fits_file_name); 00044 cpl_table* star_index_get(star_index* pindex, double RA, double DEC, double RA_EPS, double DEC_EPS, const char** pstar_name); 00045 void star_index_delete(star_index* pindex); 00046 void star_index_dump(star_index* pindex, FILE* pfile); 00047 00048 00049 00050 #endif