/*--------------------------------------------------------------------------- File name : deghost.h Author : N. Devillard Created on : January 2001 Description : ISAAC deghosting routines. *--------------------------------------------------------------------------*/ /* $Id: deghost.h,v 1.1 2001/07/03 09:30:41 ndevilla Exp $ $Author: ndevilla $ $Date: 2001/07/03 09:30:41 $ $Revision: 1.1 $ */ #ifndef _IS_DEGHOST_H_ #define _IS_DEGHOST_H_ /*--------------------------------------------------------------------------- Includes ---------------------------------------------------------------------------*/ #include "eclipse.h" /*--------------------------------------------------------------------------- Function prototypes ---------------------------------------------------------------------------*/ /*-------------------------------------------------------------------------*/ /** @name isaac_deghost_image @memo Remove the ghost from an ISAAC frame. @param in Image to process. @return 1 newly allocated image or NULL if error occurred. @doc This functions applies the ghost removal algorithm for ISAAC frames. The returned frame is newly allocated, it must be destroyed using destroy_image(). */ /*--------------------------------------------------------------------------*/ image_t * isaac_deghost_image(image_t * in); /*-------------------------------------------------------------------------*/ /** @name isaac_deghost_cube @memo Remove the ghost from an ISAAC cube. @param cu Image to process. @return int 0 if Ok, -1 otherwise. @doc This functions applies the ghost removal algorithm for ISAAC frames. The input cube frames are modified. */ /*--------------------------------------------------------------------------*/ int isaac_deghost_cube(cube_t * cu); /*-------------------------------------------------------------------------*/ /** @name isaac_ghost_removal @memo remove ISAAC electrical ghost from an ISAAC image @param filename input FITS image @param force_flag force flag @return 0 if ok, -1 otherwise @doc New keywords are added to the header. GHOSTREM = 1 GHOSTVER = 'Revision: x.y' If GHOSTREM is present and equal to 1, and force_flag is 0, no action is performed on the file. */ /*--------------------------------------------------------------------------*/ int isaac_ghost_removal( char * inname, int force_flag); #endif