Welcome to iraf.net Friday, May 17 2024 @ 11:47 AM GMT


 Forum Index > Help Desk > General IRAF New Topic Post Reply
 Combine column in text files
   
hanin
 06/05/2008 03:09AM (Read 2548 times)  
++---
Junior

Status: offline


Registered: 12/27/2007
Posts: 18
Hello,is there any way in IRAF to combine columns in text files? For example: file1(colA,colCool and file2(colC,colD) --> file3(colA,colB,colC,colD).Thank you.

IRAFNET PC-IRAF Revision 2.13-BETA2 Wed Apr 19 21:21:13 MST 2006 on Ubuntu 7.04
 
Profile Email
 Quote
fitz
 06/05/2008 03:09AM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
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

 
Profile Email
 Quote
hanin
 06/05/2008 03:09AM  
++---
Junior

Status: offline


Registered: 12/27/2007
Posts: 18
Thank you Mike for your quick and helpful reply.TMERGE solved my problem. Smile

IRAFNET PC-IRAF Revision 2.13-BETA2 Wed Apr 19 21:21:13 MST 2006 on Ubuntu 7.04
 
Profile Email
 Quote
   
Content generated in: 0.10 seconds
New Topic Post Reply

Normal Topic Normal Topic
Sticky Topic Sticky Topic
Locked Topic Locked Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Anonymous users can post 
Filtered HTML Allowed 
Censored Content 
dog allergies remedies cialis 20 mg chilblain remedies


Privacy Policy
Terms of Use

User Functions

Login