/home/amodigli/releases/xsh/1.2.10/pso/xsh.26608/xshp/xsh/xsh_star_index.c File Reference

#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_indexstar_index_construct (const char *fits_file)
static void star_index_destruct (star_index *pindex)
star_indexstar_index_create (void)
star_indexstar_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"

Function Documentation

int star_index_add ( star_index pindex,
double  RA,
double  DEC,
const char *  star_name,
cpl_table *  ptable 
)
static star_index * star_index_construct ( const char *  fits_file  )  [static]
star_index* star_index_create ( void   ) 
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]
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 
)
star_index* star_index_load ( const char *  fits_file  ) 
int star_index_remove_by_name ( star_index pindex,
const char *  starname 
)
int star_index_save ( star_index pindex,
const char *  fits_file 
)
int start_index_get_size ( star_index pindex  ) 

Definition at line 182 of file xsh_star_index.c.

References _star_index_::index_size.


Variable Documentation

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]
const char* COL_NAME_NAME = "name" [static]
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().


Generated on 9 Mar 2011 for X-shooter Pipeline Reference Manual by  doxygen 1.6.1