cacao  Release 0.1.03-dev
Compute And Control For Adaptive Optics
COREMOD_iofits.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void __attribute__ ((constructor)) libinit_COREMOD_iofits()
 Initialize module. More...
 
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)
 
errno_t read_keyword_alone (const char *restrict file_name, const char *restrict KEYWORD)
 
int data_type_code (int bitpix)
 
imageID load_fits (const char *restrict file_name, const char *restrict ID_name, int errcode)
 
errno_t save_db_fits (const char *restrict ID_name, const char *restrict file_name)
 
errno_t save_fl_fits (const char *restrict ID_name, const char *restrict file_name)
 
errno_t save_sh16_fits (const char *restrict ID_name, const char *restrict file_name)
 
errno_t save_ush16_fits (const char *restrict ID_name, const char *restrict file_name)
 
errno_t save_int32_fits (const char *restrict ID_name, const char *restrict file_name)
 
errno_t save_uint32_fits (const char *restrict ID_name, const char *restrict file_name)
 
errno_t save_int64_fits (const char *restrict ID_name, const char *restrict file_name)
 
errno_t save_fits (const char *restrict ID_name, const char *restrict file_name)
 
errno_t save_fits_atomic (const char *restrict ID_name, const char *restrict file_name)
 
errno_t saveall_fits (const char *restrict savedirname)
 
imageID break_cube (const char *restrict ID_name)
 
errno_t images_to_cube (const char *restrict img_name, long nbframes, const char *restrict cube_name)
 
imageID COREMOD_IOFITS_LoadMemStream (const char *sname, uint64_t *streamflag, uint32_t *imLOC)
 

Function Documentation

◆ __attribute__()

void __attribute__ ( (constructor)  )

Initialize module.

◆ break_cube()

imageID break_cube ( const char *restrict  ID_name)

◆ COREMOD_IOFITS_LoadMemStream()

imageID COREMOD_IOFITS_LoadMemStream ( const char *  sname,
uint64_t *  streamflag,
uint32_t *  imLOC 
)

◆ data_type_code()

int data_type_code ( int  bitpix)

◆ file_exists()

int file_exists ( const char *restrict  file_name)

◆ images_to_cube()

errno_t images_to_cube ( const char *restrict  img_name,
long  nbframes,
const char *restrict  cube_name 
)

◆ is_fits_file()

int is_fits_file ( const char *restrict  file_name)

◆ load_fits()

imageID 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

◆ read_keyword()

int read_keyword ( const char *restrict  file_name,
const char *restrict  KEYWORD,
char *restrict  content 
)

◆ read_keyword_alone()

errno_t read_keyword_alone ( const char *restrict  file_name,
const char *restrict  KEYWORD 
)

◆ save_db_fits()

errno_t save_db_fits ( const char *restrict  ID_name,
const char *restrict  file_name 
)

◆ save_fits()

errno_t save_fits ( const char *restrict  ID_name,
const char *restrict  file_name 
)

◆ save_fits_atomic()

errno_t save_fits_atomic ( const char *restrict  ID_name,
const char *restrict  file_name 
)

atomic save is a two step process:

(1) save to temporary unique file (2) change file name

◆ save_fl_fits()

errno_t save_fl_fits ( const char *restrict  ID_name,
const char *restrict  file_name 
)

◆ save_int32_fits()

errno_t save_int32_fits ( const char *restrict  ID_name,
const char *restrict  file_name 
)

◆ save_int64_fits()

errno_t save_int64_fits ( const char *restrict  ID_name,
const char *restrict  file_name 
)

◆ save_sh16_fits()

errno_t save_sh16_fits ( const char *restrict  ID_name,
const char *restrict  file_name 
)

◆ save_uint32_fits()

errno_t save_uint32_fits ( const char *restrict  ID_name,
const char *restrict  file_name 
)

◆ save_ush16_fits()

errno_t save_ush16_fits ( const char *restrict  ID_name,
const char *restrict  file_name 
)

◆ saveall_fits()

errno_t saveall_fits ( const char *restrict  savedirname)