Next Previous Up Contents
Next: Examples
Up: tcopy: Converts between table formats
Previous: tcopy: Converts between table formats
The usage of tcopy
is
stilts <stilts-flags> tcopy ifmt=<in-format> ofmt=<out-format>
[in=]<table> [out=]<out-table>
If you don't have the stilts
script installed,
write "java -jar stilts.jar
" instead of
"stilts
" - see Section 3.
The available <stilts-flags>
are listed
in Section 2.1.
Parameter values are assigned on the command line
as explained in Section 2.3.
They are as follows:
-
ifmt = <in-format>
- Specifies the format of the input table
(one of the known formats listed in Section 4.2.1).
This flag can be used if you know what format your input
table is in.
If it has the special value
(auto)
(the default),
then an attempt will be
made to detect the format of the table automatically.
This cannot always be done correctly however, in which case
the program will exit with an error explaining which
formats were attempted.
[Default: (auto)
]
-
in = <table>
- The location of the input table.
This is usually a filename or URL, and may point to a file
compressed in one of the supported compression formats
(Unix compress, gzip or bzip2).
If it is omitted, or equal to the special value "-",
the input table will be read from standard input.
In this case the input format must be given explicitly
using the
ifmt
parameter.
-
ofmt = <out-format>
- Specifies the format in which the output table will be written
(one of the ones in Section 4.2.2 - matching is
case-insensitive and you can use just the first few letters).
If it has the special value
"
(auto)
"
(the default),
then the output filename will be
examined to try to guess what sort of file is required
usually by looking at the extension.
If it's not obvious from the filename what output format is
intended, an error will result.
[Default: (auto)
]
-
out = <out-table>
- The location of the output table. This is usually a filename
to write to.
If it is equal to the special value "-" (the default)
the output table will be written to standard output.
[Default: -
]
Next Previous Up Contents
Next: Examples
Up: tcopy: Converts between table formats
Previous: tcopy: Converts between table formats
STILTS - Starlink Tables Infrastructure Library Tool Set
Starlink User Note256
STILTS web page:
http://www.starlink.ac.uk/stilts/
Author email:
m.b.taylor@bristol.ac.uk