/usr/share/doc/stilts/sun256/secB.21.2.html is in stilts-doc 3.1.2-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 | <html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="sun-style.css">
<title>Examples</title>
</head>
<body>
<hr>
<a href="tapresume.html">Next</a> <a href="tapquery-usage.html">Previous</a> <a href="tapquery.html">Up</a> <a href="index.html">Contents</a> <br> <b>Next: </b><a href="tapresume.html">tapresume: Resumes a previous query to a Table Access Protocol server</a><br>
<b>Up: </b><a href="tapquery.html">tapquery: Queries a Table Access Protocol server</a><br>
<b>Previous: </b><a href="tapquery-usage.html">Usage</a><br>
<hr>
<h3><a name="secB.21.2">B.21.2 Examples</a></h3>
<p>Here are some examples of <code>tapquery</code>:
<dl>
<dt><strong><pre>
stilts tapquery tapurl='http://dc.zah.uni-heidelberg.de/__system__/tap/run/tap'
adql='SELECT TOP 1000 * FROM ppmxl.main'
out=ppmxl.fits
</pre></strong></dt>
<dd>Executes the given ADQL query on the service referenced by the URL
and writes the result to a FITS file.
</dd>
<dt><strong><pre>
stilts tapquery
tapurl='http://dc.zah.uni-heidelberg.de/__system__/tap/run/tap'
adql="SELECT *
FROM twomass.data AS t
JOIN TAP_UPLOAD.up1 AS s
ON 1=CONTAINS(POINT('ICRS', t.RAJ2000, t.DEJ2000),
CIRCLE('ICRS', s.ra2000, s.dec2000, 5./3600.))"
nupload=1 upload1=6dfgs_E7.fits ucmd1='select BMAG-RMAG<0'
maxrec=20000
ocmd='tablename 2mass_x_6df' omode=topcat
</pre></strong></dt>
<dd>The local table <code>6dfgs_E7</code> is filtered to contain only
rather blue objects, and the resulting selection is uploaded to the
TAP server. A positional crossmatch with 5 arcsec tolerance
is then performed on the server between this uploaded table and the
<code>twomass.data</code> table held by the service.
The adjusted <code>maxrec</code> parameter ensures that the result
will not be artificially truncated to shorter than 20000 rows
(assuming the service limits permit this).
When the result is received, it is loaded directly into TOPCAT with
the name "2mass_x_6df".
</dd>
</dl>
</p>
<hr><a href="tapresume.html">Next</a> <a href="tapquery-usage.html">Previous</a> <a href="tapquery.html">Up</a> <a href="index.html">Contents</a> <br> <b>Next: </b><a href="tapresume.html">tapresume: Resumes a previous query to a Table Access Protocol server</a><br>
<b>Up: </b><a href="tapquery.html">tapquery: Queries a Table Access Protocol server</a><br>
<b>Previous: </b><a href="tapquery-usage.html">Usage</a><br>
<hr><i>STILTS - Starlink Tables Infrastructure Library Tool Set<br>Starlink User Note256<br>STILTS web page:
<a href="http://www.starlink.ac.uk/stilts/">http://www.starlink.ac.uk/stilts/</a><br>Author email:
<a href="mailto:m.b.taylor@bristol.ac.uk">m.b.taylor@bristol.ac.uk</a><br>Mailing list:
<a href="mailto:topcat-user@jiscmail.ac.uk">topcat-user@jiscmail.ac.uk</a><br></i></body>
</html>
|