Here are some examples of tcopy
in use:
tcopy stars.fits stars.xml
stars.xml
filename is examined to make a guess at the kind of output to write:
the .xml
ending is taken to mean a TABLEDATA-encoded
VOTable.
tcopy -ifmt fits stars.fits -ofmt votable
tcopy -ofmt text http://remote.host/data/vizer.xml.gz#4 -
#4
at the end of the URL
indicates that the data from the fifth TABLE
element
in the remote document are to be used. The gzip compression of
the table is taken care of automatically.
tcopy -ifmt csv -ofmt latex spec.csv
tcopy -classpath /usr/local/jars/pg73jdbc3.jar \ -Djdbc.drivers=org.postgresql.Driver \ "jdbc:postgresql://localhost/imsim#SELECT ra, dec, Imag, Kmag FROM dqc" \ -ofmt fits wfslist.cat
jdbc.drivers
system property.
If a username or password is required, it will be prompted for on the
command line.
As you can see, using SQL from Java is a bit fiddly,
and there are other ways to perform this
setup than on the command line - see Section 2.6.