coffee
Coronagraph Optimization For Fast Exoplanet Exploration
COREMOD_iofits.c File Reference

I/O for FITS files. More...

Functions

int_fast8_t load_fits_cli ()
 
int_fast8_t save_fl_fits_cli ()
 
int_fast8_t save_db_fits_cli ()
 
int_fast8_t save_sh_fits_cli ()
 
int_fast8_t save_fits_cli ()
 
int_fast8_t break_cube_cli ()
 
int_fast8_t images_to_cube_cli ()
 
void __attribute__ ((constructor))
 
int init_COREMOD_iofits ()
 
int check_FITSIO_status (const char *restrict cfile, const char *restrict cfunc, long cline, int print)
 
int file_exists (const char *restrict file_name)
 
int is_fits_file (const char *restrict file_name)
 
int read_keyword (const char *restrict file_name, const char *restrict KEYWORD, char *restrict content)
 
int read_keyword_alone (const char *restrict file_name, const char *restrict KEYWORD)
 
int data_type_code (int bitpix)
 
long load_fits (const char *restrict file_name, const char *restrict ID_name, int errcode)
 
int save_db_fits (const char *restrict ID_name, const char *restrict file_name)
 
int save_fl_fits (const char *restrict ID_name, const char *restrict file_name)
 
int save_sh_fits (const char *restrict ID_name, const char *restrict file_name)
 
int save_ush_fits (const char *restrict ID_name, const char *restrict file_name)
 
int save_fits (const char *restrict ID_name, const char *restrict file_name)
 
int save_fits_atomic (const char *restrict ID_name, const char *restrict file_name)
 
int saveall_fits (const char *restrict savedirname)
 
int break_cube (const char *restrict ID_name)
 
int images_to_cube (const char *restrict img_name, long nbframes, const char *restrict cube_name)
 

Detailed Description

I/O for FITS files.

Uses CFITSIO library heavily

Author
O. Guyon
Date
7 Jul 2017
Bug:
No known bugs.

Function Documentation

void __attribute__ ( (constructor)  )
int break_cube ( const char *restrict  ID_name)
int_fast8_t break_cube_cli ( )
int check_FITSIO_status ( const char *restrict  cfile,
const char *restrict  cfunc,
long  cline,
int  print 
)
int data_type_code ( int  bitpix)
int file_exists ( const char *restrict  file_name)
int images_to_cube ( const char *restrict  img_name,
long  nbframes,
const char *restrict  cube_name 
)
int_fast8_t images_to_cube_cli ( )
int init_COREMOD_iofits ( )
int is_fits_file ( const char *restrict  file_name)
long load_fits ( const char *restrict  file_name,
const char *restrict  ID_name,
int  errcode 
)

if errcode = 0, do not show error messages errcode = 1: print error, continue errcode = 2: exit program at error errcode = 3: do not show error message, try = 1, no wait

int_fast8_t load_fits_cli ( )
int read_keyword ( const char *restrict  file_name,
const char *restrict  KEYWORD,
char *restrict  content 
)
int read_keyword_alone ( const char *restrict  file_name,
const char *restrict  KEYWORD 
)
int save_db_fits ( const char *restrict  ID_name,
const char *restrict  file_name 
)
int_fast8_t save_db_fits_cli ( )
int save_fits ( const char *restrict  ID_name,
const char *restrict  file_name 
)
int save_fits_atomic ( const char *restrict  ID_name,
const char *restrict  file_name 
)
int_fast8_t save_fits_cli ( )
int save_fl_fits ( const char *restrict  ID_name,
const char *restrict  file_name 
)
int_fast8_t save_fl_fits_cli ( )
int save_sh_fits ( const char *restrict  ID_name,
const char *restrict  file_name 
)
int_fast8_t save_sh_fits_cli ( )
int save_ush_fits ( const char *restrict  ID_name,
const char *restrict  file_name 
)
int saveall_fits ( const char *restrict  savedirname)