Go to the source code of this file.
Typedefs | |
typedef struct _star_index_ | star_index |
Functions | |
star_index * | star_index_load (const char *fits_file) |
star_index * | star_index_create (void) |
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) |
typedef struct _star_index_ star_index |
Definition at line 29 of file xsh_star_index.h.
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.
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().
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_name | |||
) |
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.