cdfp_xyrdnames

Build a file containing X,Y,RA,DEC values for use (generally) in the newer mark-II generations (Oct2016) of WCS codes.

 
% % cdfp_xyrdnames.sh 
         - OR --
% % cdfp_xyrdnames.sh --help 
Usage: cdfp_xyrdnames.sh midodata.XY_names usno_targs.cdfp Rsco3218.fits 
arg1 - name of input midodata.XY_names file 
arg2 - name of input cdfp file 
arg3 - name of input FITS file 

The help message for this code explains the style of the output file, which has a fairly detailed header. The idea here is that I have a fairly flexible file format that is fully self-contained in terms of WCS codes. Here are the current notes you'll get by invking the "--help" flag:

 
cdfp_xyrdnames.sh
  A simple (OTW) code that assembles the X,Y and Ra,Dec 
  data needed for a WCS solution. 

  This code is almost always run using files built with the 
  ds9_midomark script (that is run inside the ds9_multi_mido
  script). The output file has the name syntax:  

   $basename.xyrd   (where the image was $basename.fits)

  The output file has a "# data" header and the basic file 
  structure is the following: 

     241.040     1115.340   346.367767334   12.421183586     194  23:05:28.26 +12:25:16.3
    1000.550     1272.790   346.074859619   12.479125023     184  23:04:17.97 +12:28:44.9
     753.710     1143.710   346.170257568   12.430983543     186  23:04:40.86 +12:25:51.5

  The header gives the name of the input files, and explains the columns 
  of the output data table: 
  Col01  -  X centroid from mido  (physical units in the CCD image)
  Col02  -  Y centroid from mido  (physical units in the CCD image)
  Col03  -  RA in units of degrees from USNO-B1 (echo $USNOBDIR)
  Col04  -  DEC in units of degrees from USNO-B1 (echo $USNOBDIR)
  Col05  -  Integrer name of source (line number in the cdfp file)
  Col06  -  RA (J2000) in sexigecimal format
  Col07  -  DEC (J2000) in sexigecimal format


Some Comments:
My wcs codes seem to change with the wind, but this version is hopefully converging rapidly. The file we make here has a fairly detailed header. Like the older "wcs_steup.out" files of my early WCS codes, the information we need for a fit (x,y,ra,dec) is here, but we also include an identification name and the Ra,Dec is sexigecimal format. The lines coming out of cdfp_xyrdnames.sh will (by design) have INTEGER NAMES. The integer refers to the line number in the cdfp where the (Ra,Dec) originated. For my newwer markII wcs codes the idea will be that the names can be any sort of text string. Because I'll be using the colget.py code to unpack these {x,y,ra,dec} fikles, I can make the format of each column more flexible. I can add decimal places to the coordinates, or change the type of name value used, etc.... The goal here is to simply compil the numerical information we need for feeding a code that will derive the WCS solution. Whether I am using a gui to assemble approximate X,Y or I am computing image centroids, etc...., or pulling astrometry from a catalog, etc.... the basic input files to the WCS packages will look like the file outline here.




Back to SCO CODES page