Here are some examples of using tmatchn
:
stilts tmatchn multimode=pairs nin=4 matcher=sky params=5 \ in1=transients.txt ifmt1=ascii values1='alpha delta' \ in2=2mass_virgo.fits values2='ra2000 dec2000' \ in3=sdss_virgo.fits values3='ra dec' \ in4=first_virgo.fits values4='pos_eq_ra pos_eq_dec' \ out=matches.xml ofmt=votable-binary
stilts tmatchn multimode=pairs nin=4 matcher=sky params=5 \ in1=transients.txt ifmt1=ascii suffix1='_t' values1='alpha delta' \ in2=2mass_virgo.fits suffix2='_2mass' values2='ra2000 dec2000' \ in3=sdss_virgo.fits suffix3='_sdss' values3='ra dec' \ in4=first_virgo.fits suffix4='_first' values4='pos_eq_ra pos_eq_dec' \ fixcols=all join1=always \ ocmd='keepcols "*_t designation_2mass SDSSName_sdss id_field_first"' \ out=matches.xml ofmt=votable-binary
fixcols=all
and
suffixN
assignments mean that all the columns from the
input tables will be renamed for output by adding the given suffixes.
The keepcols
filter applied to the output table throws out
all the columns except the ones from the reference table (*_t
)
and one column from each of the other table giving object identifiers.
This output table will probably be easier to read (though contain less
information) than that from the previous example).
Additionally, the join1=always
assignment means that the output
table will have one row for each row of the reference table
(transients.txt), even if no matches are found for it.
stilts tmatchn multimode=group nin=3 matcher=skyerr params=8 \ in1=Hband.fits values1='RA DEC SEEING*2' \ in2=Jband.fits values2='RA DEC SEEING*2' \ in3=Kband.fits values3='RA DEC SEEING*2' \ omode=topcat