HTML automatically generated with rman
Table of Contents

Name

tabcols - Select columns, and output a VOTable (xml) file

Synopsis

tab2xml [parameter=value] ...

Description

tab2xml selects columns from a file, and outputs the columns in VOTable format.

To select lines, use tablines(1NEMO) or tabmath(1NEMO) .

Parameters

The following parameters are recognized in order; they may be given in any order if the keyword is also given. Use --help to confirm this man page is up to date.
in=
input ascii table. No default.
out=
output VOTable. No default.
col=
list of columns to select. Any nemoinp(1NEMO) expression can be used. Columns can be repeated, and in any order. The output will be in exactly the same order as given with this keyword. First column is 1. [all]
colnames=
Column names. Not implemented yet.

Example

Here are two examples of converting a table, first the whole table with default column names, then one selecting columns and giving them proper names
    tab2xml a.tab a1.xml
    tab2xml a.tab a2.xml col=4,8:10 colnames=z,ax,ay,az

Limitation

Currently can only do a subset of the VOTable(5NEMO) version 1.0 standard, as shown below:
<?xml version=’1.0’?>
<!DOCTYPE VOTABLE SYSTEM ’http://us-vo.org/xml/VOTable.dtd’>
<VOTABLE version=’1.0’>
<!--
 !  VOTable written by NEMO’s tab2xml program
 !-->
<RESOURCE>
<TABLE name="a.tab">
<FIELD datatype="double" name="col1"/>
<DATA>
<TABLEDATA>
  <TR>
    <TD>0.666451</TD>
    ...
  </TR>
  ...
</TABLEDATA>
</DATA>
</TABLE>
</RESOURCE>
</VOTABLE>

See Also

tabcols(1NEMO) , tabmath(1NEMO) , awk(1) , VOTable(5NEMO)

Files

src/kernel/tab/tab2xml.c source code

Author

Peter Teuben

Update History


13-feb-04    V1.0 Created     PJT


Table of Contents