#include <cpl.h>#include <string.h>#include <math.h>#include "xsh_error.h"#include "xsh_utils_wrappers.h"#include "xsh_star_index.h"Go to the source code of this file.
Data Structures | |
| struct | _star_index_ |
Functions | |
| static star_index * | star_index_construct (const char *fits_file) |
| static void | star_index_destruct (star_index *pindex) |
| star_index * | star_index_create (void) |
| star_index * | star_index_load (const char *fits_file) |
| void | star_index_delete (star_index *pindex) |
| int | star_index_add (star_index *pindex, double RA, double DEC, const char *star_name, cpl_table *ptable) |
| int | start_index_get_size (star_index *pindex) |
| int | star_index_remove_by_name (star_index *pindex, const char *starname) |
| int | star_index_save (star_index *pindex, const char *fits_file) |
| 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_dump (star_index *pindex, FILE *pfile) |
Variables | |
| static const char * | COL_NAME_EXTID = "ext_id" |
| static const char * | COL_NAME_NAME = "name" |
| static const char * | COL_NAME_RA = "ra" |
| static const char * | COL_NAME_DEC = "dec" |
| int star_index_add | ( | star_index * | pindex, | |
| double | RA, | |||
| double | DEC, | |||
| const char * | star_name, | |||
| cpl_table * | ptable | |||
| ) |
Definition at line 148 of file xsh_star_index.c.
References _star_index_::cache, _star_index_::cache_index, _star_index_::cache_size, check, COL_NAME_DEC, COL_NAME_EXTID, COL_NAME_NAME, COL_NAME_RA, _star_index_::index_size, and _star_index_::index_table.
| static star_index * star_index_construct | ( | const char * | fits_file | ) | [static] |
Definition at line 68 of file xsh_star_index.c.
References _star_index_::cache, _star_index_::cache_index, _star_index_::cache_size, _star_index_::fits_file_name, _star_index_::index_size, and _star_index_::index_table.
Referenced by star_index_create(), and star_index_load().
| star_index* star_index_create | ( | void | ) |
Definition at line 114 of file xsh_star_index.c.
References check, COL_NAME_DEC, COL_NAME_EXTID, COL_NAME_NAME, COL_NAME_RA, _star_index_::index_size, _star_index_::index_table, star_index_construct(), and star_index_destruct().
| void star_index_delete | ( | star_index * | pindex | ) |
Definition at line 144 of file xsh_star_index.c.
References star_index_destruct().
Referenced by xsh_parse_catalog_std_stars().
| static void star_index_destruct | ( | star_index * | pindex | ) | [static] |
Definition at line 89 of file xsh_star_index.c.
References _star_index_::cache, _star_index_::cache_index, _star_index_::cache_size, _star_index_::fits_file_name, and _star_index_::index_table.
Referenced by star_index_create(), star_index_delete(), and star_index_load().
| void star_index_dump | ( | star_index * | pindex, | |
| FILE * | pfile | |||
| ) |
Definition at line 302 of file xsh_star_index.c.
References _star_index_::index_table.
| cpl_table* star_index_get | ( | star_index * | pindex, | |
| double | RA, | |||
| double | DEC, | |||
| double | RA_EPS, | |||
| double | DEC_EPS, | |||
| const char ** | pstar_name | |||
| ) |
Definition at line 262 of file xsh_star_index.c.
References _star_index_::cache, _star_index_::cache_size, check, COL_NAME_DEC, COL_NAME_EXTID, COL_NAME_NAME, COL_NAME_RA, _star_index_::fits_file_name, _star_index_::index_size, and _star_index_::index_table.
Referenced by xsh_load_ref_table(), and xsh_parse_catalog_std_stars().
| star_index* star_index_load | ( | const char * | fits_file | ) |
Definition at line 129 of file xsh_star_index.c.
References check, _star_index_::index_size, _star_index_::index_table, star_index_construct(), and star_index_destruct().
Referenced by xsh_load_ref_table(), and xsh_parse_catalog_std_stars().
| int star_index_remove_by_name | ( | star_index * | pindex, | |
| const char * | starname | |||
| ) |
Definition at line 187 of file xsh_star_index.c.
References _star_index_::cache, _star_index_::cache_size, check, COL_NAME_EXTID, COL_NAME_NAME, _star_index_::index_size, and _star_index_::index_table.
| int star_index_save | ( | star_index * | pindex, | |
| const char * | fits_file | |||
| ) |
Definition at line 218 of file xsh_star_index.c.
References _star_index_::cache, _star_index_::cache_size, check, COL_NAME_EXTID, _star_index_::fits_file_name, _star_index_::index_size, and _star_index_::index_table.
| int start_index_get_size | ( | star_index * | pindex | ) |
Definition at line 182 of file xsh_star_index.c.
References _star_index_::index_size.
const char* COL_NAME_DEC = "dec" [static] |
Definition at line 62 of file xsh_star_index.c.
Referenced by star_index_add(), star_index_create(), and star_index_get().
const char* COL_NAME_EXTID = "ext_id" [static] |
Definition at line 59 of file xsh_star_index.c.
Referenced by star_index_add(), star_index_create(), star_index_get(), star_index_remove_by_name(), and star_index_save().
const char* COL_NAME_NAME = "name" [static] |
Definition at line 60 of file xsh_star_index.c.
Referenced by star_index_add(), star_index_create(), star_index_get(), and star_index_remove_by_name().
const char* COL_NAME_RA = "ra" [static] |
Definition at line 61 of file xsh_star_index.c.
Referenced by star_index_add(), star_index_create(), and star_index_get().
1.6.1