cdfp_in_image

Filter an input cdfp file so that only targets in a FITS image with valid WCS are output.

 

% cdfp_in_image.sh
Usage: cdfp_in_image.sh filename.cdfp a.fits 
arg1 - name of input cdfp file 1
arg2 - name of FITS image with valid WCS

% cdfp_in_image.sh usno_all.cdfp a.fits 

Number of original targets =    285
Number of output targets   =     65
New cdfp file = cdfp.NEW_FILE


This uses a rather crude approach that utilizes the routines cdfp_filter.sh and sky2xy (from wcstools).




Back to scocodes page