cdfp_build

Combine a set of one-coulmn files (list.*) and using the unix paste routine and create a cdfp (CoorDinate Floating Point) file. This is useful for cutting up an irregualr ASCII file and pasting back the parts you want. The first two quantity arguments must always be the RA(hours) and DEC(degrees) in floating point format.

 

Usage: cdfp_build RA DEC V Verr none none none
arg1 - RA (fp hours) 
arg2 - DEC (fp degrees)
arg3 - quantity 1 (none to skip)
arg4 - quantity 2 (none to skip)
arg5 - quantity 3 (none to skip)
arg6 - quantity 4 (none to skip)
arg7 - quantity 5 (none to skip) 

% cdfp_build RA DEC V 
See the file = new_build.cdfp 

The answer is always written to new_build.cdfp. To make 
a region plotting file you might do: 

% cdfp2reg.sh new_build.cdfp 5.0 red any any
This would create:   new_build.cdfp.reg

 
The next question you may have is "How to make the list files?". The colget.py is useful for this. Suppose you had a file called Table_file.1 that held your data. You might make the above files with:
 

% ls 
S/  Table_file.1

% colget.py Table_file.1 1 RA 
Created list.RA with 665 lines

% colget.py Table_file.1 2 DEC 
Created list.DEC with 665 lines

% colget.py Table_file.1 3 V 
Created list.V with 665 lines

% ls 
list.DEC  list.RA  list.V  S/  Table_file.1




Back to scocodes page