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