best_wcs_image
Last updated: Apr07,2020

Identify the image in ./local_red that has the most recent WCS installed in the image header. The order of search priority is given here:

 

   ./local_red/WCS 
   ./local_red/VISCAT 
   ./local_red/ROUGHWCS 
   the original image fed to this routine 

Usage: best_wcs_image ./local_red/ISET_STACKS/iset_2_stack.fits N 
arg1 = name of FITS image run through image_catalogs 
arg2 = run in debug mode? (Y/N)  

The best image file name will be placed in the file:            ./best_wcs_image.out 
The source or quality of the WCS will be placed in the file:   ./best_wcs_image.btype 

EXAMPLE: 

% best_wcs_image /home/sco/ACM_work_Oct2019/red_20191022/local_red/FIXUP/20191022T025524.2_acm_sci.fits N 
Best WCS image is:  /home/sco/ACM_work_Oct2019/red_20191022/local_red/FIXUP/20191022T025524.2_acm_sci.fits 
% cat best_wcs_image.out
/home/sco/ACM_work_Oct2019/red_20191022/local_red/FIXUP/20191022T025524.2_acm_sci.fits
% cat best_wcs_image.btype
origwcs

% best_wcs_image boohoo.its N 
WARNING: THere is no image with valid WCS 
% cat best_wcs_image.out
none
% cat best_wcs_image.btype
none

*** An image is in the ./local_red/WCS directory:
% best_wcs_image /home/sco/ACM_work_Oct2019/red_20191022/local_red/WCS/20191022T025524.2_acm_sci.fits N 
Best WCS image is:  /home/sco/ACM_work_Oct2019/red_20191022/local_red/WCS/20191022T025524.2_acm_sci.fits 
% cat best_wcs_image.btype
wcs

*** I have a random image that has a header from wcsf_final: 
% cp /home/sco/ACM_work_Oct2019/red_20191022/local_red/WCS/20191022T025524.2_acm_sci.fits any_name.fits 
% best_wcs_image ./any_name.fits N  
Best WCS image is:  ./any_name.fits 
% cat best_wcs_image.btype
wcs

*** The image has no WCS in the header at all: 
% best_wcs_image /home/sco/AUTO_match_for_wcs/S/Rsco2043.fits N 
WARNING: THere is no image with valid WCS 
% cat best_wcs_image.btype
none


If there is no valid WCS image then ./best_wcs_image.out will contain the string "none".




Back to SCO CODES page