|
|
|
|
SynopsisAdd new columns to a table. Syntaxdmpaste infile pastefile outfile [clobber] [verbose] Description`dmpaste' copies infile to outfile, pasting on extra columns from the pastefile, which may be a single file or a stack of files. Column names in the pastefile cannot duplicate names in the input file. All files must have the same number of rows. Analogous to the unix `paste' command. Example 1dmpaste "data1.fits[EVENTS]" "data2.fits[EVENTS][cols tg_r,tg_d]" data3.fits This pastes extra columns tg_r, tg_d from data2.fits onto the columns already present in data1.fits, making a new file data3.fits. Example 2dmpaste "data1.fits[EVENTS]" data2.fits data3.fits This pastes all the columns from data2.fits onto the data1.fits table. Example 3dmpaste "data1.fits[EVENTS][cols -pha]" "data2.fits[EVENTS][cols pha]" data3.fits Replace the pha column in data1.fits by the one in data2.fits. Parameters
Detailed Parameter DescriptionsParameter=infile (file required filetype=input)Input file name The input file used as the basis for the new file. The output file will contain all columns from the input file and the header from the input file. Parameter=pastefile (file required filetype=input)Input paste file list All the columns in pastefile will be pasted on to infile. If pastefile is a stack, the columns from all the files in the stack will be used. Parameter=outfile (file required filetype=output)output file name. The output file containing a version of infile with the extra columns appended. Parameter=clobber (boolean default=no)Clobber exisiting files? Used to specify whether to clobber output file if it already exists. Parameter=verbose (integer default=0 min=0 max=5)Amount of diagnostic chatter, 0 (least) to 5 (most). BugsSee the bugs page for this tool on the CIAO website for an up-to-date listing of known bugs. |
![]() |
The Chandra X-Ray
Center (CXC) is operated for NASA by the Smithsonian Astrophysical Observatory. 60 Garden Street, Cambridge, MA 02138 USA. Email: cxcweb@head.cfa.harvard.edu Smithsonian Institution, Copyright © 1998-2004. All rights reserved. |