const char isaac_ghost_version[] = "$Revision: 1.3 $"; const char isaac_ghost_date[]="$Date: 2001/07/31 07:26:34 $"; int isaac_ghost_main(void * d); cmdline_spec isaac_ghost_cmd[] = { {'f', "force", "Force ghost correction", 0, NULL}, {0, 0, 0, 0, 0} }; const char isaac_ghost_man[]= "\n" "NAME\n" "\tghost -- ISAAC electrical ghost correction\n" "\n" "SYNOPSIS\n" "\tisaacp ghost [-f|--force] \n" "\n" "DESCRIPTION\n" "\tis_ghost applies simple arithmetic methods to remove the\n" "\teffects of an electrical ghost in ISAAC raw frames.\n" "\n" "\tTo avoid applying the same algorithm several times,\n" "\tis_ghost leaves two keywords in the FITS header: GHOSTREM\n" "\tshould be equal to 1, it is a flag indicating that the\n" "\twork has been done already (it is called the 'ghost\n" "\tflag'), and GHOSTVER indicates the date when the algorithm\n" "\thas been latest modified.\n" "\n" "\tIf some files contain the ghost flag but must be processed\n" "\tanyway, you can force it by using the -f or --force\n" "\toption.\n" "\n" "\tis_ghost will write all output files in the current direc-\n" "\ttory only. It means that when you are launching the com-\n" "\tmand in the current directory, files will be overwritten.\n" "\tIf you do not want to overwrite your files, cd to another\n" "\tdirectory, and call is_ghost with the pathname of the\n" "\tfiles you want to process. See the examples for more info.\n" "\n" "ALGORITHM\n" "\tThe algorithm is the following: create a 1d signal which\n" "\tis for each element the sum of all pixels along a line of\n" "\tthe input image. Create another 1d signal that is mirrored\n" "\tfrom the first, or rather swapped: [1..512][513..1024] is\n" "\tcopied to [513..1024][1..512]. Add up these two signals,\n" "\tmultiply by a constant (1.35e-5) and you get a single 1d\n" "\tsignal. Every element in this signal is a value that is\n" "\tsubtracted from all pixels belonging to the corresponding\n" "\tline in the input image. Example: element 384 in the com-\n" "\tputed 1d signal will be subtracted from all pixels on line\n" "\t384 in the input image.\n" "\n" "OPTIONS\n" "\t-f or --force\n" "\t\tForce deghosting of all given files, whether the\n" "\t\tghost flag is found or not.\n" "\n" "EXAMPLES\n" "\tTo correct for the ghost all files in the current direc-\n" "\ttory matching *.fits, you would type:\n" "\tis_ghost *.fits\n" "\n" "\tTo correct for the ghost all files in a remote directory\n" "\tcalled /cdrom/data/, and create the cleaned copies in a\n" "\tdirectory called /scratch, you would type:\n" "\n" "\tcd /scratch\n" "\tis_ghost /cdrom/data/*.fits\n" "\n" "\n" "\n";