wcs_build_radeclist
Updated: Sept 22, 2017

Build a list of Ra,Dec (all 3 forms) by passing a n X and Y file through the WCS in a FITS header. The 3 forms of Ra,Dec are expressed in lines of: RAhours,RAdeg,DECdeg,RAsex,DECsex.

 
% wcs_build_radeclist --help 
Usage: wcs_build_radeclist ../20170903T104357.2_acm_sci.fits Xcent Ycent
arg1 - name of FITS file with WCS (can be full path)  
arg2 - file listing X values   
arg3 - file listing Y values   

wcs_build_radeclist:
  Build a list of Ra,Dec (all 3 forms) by passing a n X and Y 
file through the WCS in a FITS header. The output alwasy goes 
to a local file named wcs_build_radeclist.out and consists of 
lines of: 
  RA_hours  RA_degrees  DEC_degrees RA_sex  DEC_sex  Xpix  Ypix 

===============================================================
Simple example: 
The image file is:   ../20170903T104357.2_acm_sci.fits
My two X,Y files:   Xcent  Ycent

% head -4 Xcent 
  15.11
  771.28
  773.05
  734.37
% head -4 Ycent 
  456.84
  504.36
  163.37
  212.56

To make the output list (always named wcs_build_radeclist.out):
% wcs_build_radeclist ../20170903T104357.2_acm_sci.fits Xcent Ycent 

% head -4 wcs_build_radeclist.out 
 5.617266 84.258995833 41.051750000 05:37:02.159 +41:03:06.30 	  15.11	  456.84
 5.612258 84.183875000 41.045161111 05:36:44.130 +41:02:42.58 	  771.28	  504.36
 5.612125 84.181879167 41.070786111 05:36:43.651 +41:04:14.83 	  773.05	  163.37
 5.612400 84.185995833 41.067244444 05:36:44.639 +41:04:02.08 	  734.37	  212.56





Back