X-shooter Pipeline Reference Manual 3.8.15
Data Structures | Functions | Variables
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

◆ star_index_add()

int star_index_add ( star_index pindex,
double  RA,
double  DEC,
const char *  star_name,
cpl_table *  ptable 
)

◆ star_index_construct()

static star_index * star_index_construct ( const char *  fits_file)
static

◆ star_index_create()

star_index * star_index_create ( void  )

◆ star_index_delete()

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().

◆ star_index_destruct()

static void star_index_destruct ( star_index pindex)
static

◆ star_index_dump()

void star_index_dump ( star_index pindex,
FILE *  pfile 
)

Definition at line 302 of file xsh_star_index.c.

References _star_index_::index_table.

◆ star_index_get()

cpl_table * star_index_get ( star_index pindex,
double  RA,
double  DEC,
double  RA_EPS,
double  DEC_EPS,
const char **  pstar_name 
)

◆ star_index_load()

star_index * star_index_load ( const char *  fits_file)

◆ star_index_remove_by_name()

int star_index_remove_by_name ( star_index pindex,
const char *  starname 
)

◆ star_index_save()

int star_index_save ( star_index pindex,
const char *  fits_file 
)

◆ start_index_get_size()

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

◆ COL_NAME_DEC

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().

◆ COL_NAME_EXTID

const char* COL_NAME_EXTID = "ext_id"
static

◆ COL_NAME_NAME

const char* COL_NAME_NAME = "name"
static

◆ COL_NAME_RA

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().