Instrument Neutral Distributed Interface INDI  2.0.2
Functions
fits.c File Reference
#include "dsp.h"

Go to the source code of this file.

Functions

void dsp_fits_update_fits_key (fitsfile *fptr, int type, char *name, void *p, char *explanation, int *status)
 Create or update a new fits header key. More...
 
long dsp_fits_alloc_fits_rows (fitsfile *fptr, unsigned long num_rows)
 Convert an RGB color dsp_t array into a dsp_stream_p array each element containing the single components. More...
 
int dsp_fits_fill_fits_col (fitsfile *fptr, char *name, unsigned char *buf, int typecode, long num_elements, unsigned long rown)
 Fill a column at the given row position with the valued buffer. More...
 
int dsp_fits_append_fits_col (fitsfile *fptr, char *name, char *format)
 Add a column to the binary table. More...
 
void dsp_fits_delete_fits_col (fitsfile *fptr, char *name)
 Delete a column from the binary table. More...
 
fitsfile * dsp_fits_create_fits (size_t *size, void **buf)
 Create an open fits file pointer to be updated later. More...
 
int dsp_fits_close_fits (fitsfile *fptr)
 Close a fits file pointer. More...
 
int dsp_fits_get_value (fitsfile *fptr, char *column, long rown, void **retval)
 Obtain the value of the specified field. More...
 
int dsp_fits_check_column (fitsfile *fptr, char *column, char **expected, long rown)
 Check if the value of the specified field corresponds to a subset of values. More...
 
int dsp_fits_check_key (fitsfile *fptr, char *keyname, char **expected)
 
int dsp_fits_read_typecode (char *typestr, int *typecode, long *width, long *repeat)
 Decode a typecode format string. More...
 
size_t dsp_fits_get_element_size (int typecode)
 Obtain the single element size in bytes. More...
 
int dsp_fits_append_table (fitsfile *fptr, dsp_fits_column *columns, int ncols, char *tablename)
 
dsp_fits_rowdsp_fits_read_sdfits (char *filename, long *num_rows, long *maxes, long **maxis)
 read a fits file containing a SDFITS Extension More...
 

Function Documentation

◆ dsp_fits_append_table()

int dsp_fits_append_table ( fitsfile *  fptr,
dsp_fits_column columns,
int  ncols,
char *  tablename 
)

Definition at line 275 of file fits.c.

◆ dsp_fits_check_key()

int dsp_fits_check_key ( fitsfile *  fptr,
char *  keyname,
char **  expected 
)

Definition at line 182 of file fits.c.