cdfp_rdxy

Use coordinates from a CDFP file to generate a list.rd and/or list.xy file.

 
 

%  cdfp_rdxy --help     
%  cdfp_rdxy a.cdfp none none     
%  cdfp_rdxy a.cdfp Xpixel Ypixel 

arg1 = name of input cdfp file
arg2 = name of X value to grab
arg3 = name of Y value to grab

If the arg2,arg3 values do not match the names of columns in the CDFP file, then it is assumed that X,Y values are not present, and hence, no "list.xy" file is generated.

Below I show a fairly typical example of using this script.

 
 
% cat STARS.cdfp
Ra_hrs,Dec_deg,magB1,sgB1,magR1,sgR1,magB2,sgB2,magR2,sgR2,
06.25521852 +39.5878667 14.930 0 14.310 8 15.110 9 14.970 10
06.25756296 +39.5915194 15.000 0 13.220 8 14.980 9 13.890 2
06.25766056 +39.5959361 14.360 0 12.530 3 14.250 9 13.240 10
06.25884000 +39.5856139 14.980 0 14.310 9 15.200 9 14.930 8
06.26332981 +39.5999278 14.970 0 14.130 8 15.320 9 15.000 4

% cdfp_rdxy.sh STARS.cdfp none none

% cat list.rd
    93.82827758789     39.58786773682
    93.86344909668     39.59151840210
    93.86490631104     39.59593582153
    93.88259887695     39.58561325073
    93.94995117188     39.59992599487

As an aside, you could generate X,Y with a dss image with: 
% sky2xy dss.fits @list.rd  
93.82827758789 39.58786773682 J2000 ->  994.696   24.435
93.86344909668 39.59151840210 J2000 ->  899.364   39.781
93.86490631104 39.59593582153 J2000 ->  895.802   55.477
93.88259887695 39.58561325073 J2000 ->  846.740   20.291
93.94995117188 39.59992599487 J2000 ->  664.894   75.666





Back to SCO CODES page