Add new columns to a table.
dmpaste infile pastefile outfile [clobber] [verbose] [kernel]
`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.
dmpaste "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.
dmpaste "data1.fits[EVENTS]" data2.fits data3.fits
This pastes all the columns from data2.fits onto the
data1.fits table.
dmpaste "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.
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.
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.
output file name.
The output file containing a version of infile with the extra
columns appended.
Clobber exisiting files?
Used to specify whether to clobber output file if it already exists.
Amount of diagnostic chatter, 0 (least) to 5 (most).
Output format
Used to specify output file kernel, by default the same
as the input file format.
- dm
-
dmcols,
dmfiltering,
dmopt
- tools
-
dmappend,
dmarfadd,
dmgroup,
dmgti,
dmjoin,
dmmerge,
dmsort,
dmtcalc,
dmtype2split
|