79 cpl_frame * result = NULL;
96 sprintf( filename,
"%s.fits", tag);
102 check( cpl_frame_set_tag (result, tag));
105 if ( cpl_error_get_code() != CPL_ERROR_NONE) {
xsh_pre * xsh_pre_load(cpl_frame *frame, xsh_instrument *instr)
Load a xsh_pre structure from a frame.
void xsh_pre_divide(xsh_pre *self, const xsh_pre *right, const int is_flat, double threshold)
Divide a PRE image from another.
void xsh_pre_free(xsh_pre **pre)
Free a xsh_pre structure.
cpl_frame * xsh_pre_save(const xsh_pre *pre, const char *filename, const char *tag, int temp)
Save PRE on disk.
cpl_frame * xsh_divide_flat(cpl_frame *frame, cpl_frame *flat, const char *tag, xsh_instrument *instr)
divide PRE frame with the master FLAT frame
#define XSH_ASSURE_NOT_NULL(pointer)
void xsh_free_frame(cpl_frame **f)
Deallocate a frame and set the pointer to NULL.
#define XSH_DIVIDE_FLAT_THRESH