Combine column in text files
hanin wrote on Jun 05, 2008
Hello,
is there any way in IRAF to combine columns in text files? For example: file1(colA,colB) and file2(colC,colD) --> file3(colA,colB,colC,colD).
Thank you.
is there any way in IRAF to combine columns in text files? For example: file1(colA,colB) and file2(colC,colD) --> file3(colA,colB,colC,colD).
Thank you.
Mike Fitzpatrick wrote on Jun 05, 2008
The answer all depends on the format of the input table: The FIELDS task can extract columns from a table and the JOINLINES task can merge two files by joining the lines. Similarly, the TSELECT task in the TABLES external package can select rows and cols from a table, or TDUMP/TPRINT can output selected entire columns. The TMERGE or TJOIN tasks could then be used to join the tables/rows.
Cheers,
-Mike
Cheers,
-Mike
hanin wrote on Jun 05, 2008
Thank you Mike for your quick and helpful reply.
TMERGE solved my problem. :)
TMERGE solved my problem. :)
Last post on Jun 05, 2008