/usr/share/doc/stilts/sun256/jytask.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 | <html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="sun-style.css">
<title>Tasks</title>
</head>
<body>
<hr>
<a href="jyfuncs.html">Next</a> <a href="jymode.html">Previous</a> <a href="jystilts.html">Up</a> <a href="index.html">Contents</a> <br> <b>Next: </b><a href="jyfuncs.html">Calculation Functions</a><br>
<b>Up: </b><a href="jystilts.html">JyStilts - STILTS from Python</a><br>
<b>Previous: </b><a href="jymode.html">Table output modes (mode_*)</a><br>
<hr>
<h3><a name="jytask">4.6 Tasks</a></h3>
<p>The STILTS tasks documented in <a href="cmdUsage.html">Appendix B</a>
can be used under their usual names if they are imported from the
<code>stilts</code> module.
STILTS parameters as are supplied as named arguments of the python
functions. In general they are either table objects for table input
parameters or strings, but in some cases python arrays are accepted,
and numbers may be used where appropriate.
The STILTS input format (<code>ifmt</code>, <code>istream</code>),
filter (<code>cmd</code>/<code>icmd</code>/<code>ocmd</code>)
and output mode (<code>omode</code>) parameters are not used however;
instead perform filtering directly on the table inputs and outputs
using the python <code>cmd_*</code> and <code>mode_*</code>
table methods or functions.
</p>
<p>Here is an example of concatenating two similar tables together
and writing the result:
<pre>
>>> from stilts import tread, tcat
>>> t1 = tread('data1.csv', fmt='csv')
>>> t2 = tread('data2.csv', fmt='csv')
>>> t12 = tcat([t1,t2], seqcol='seq')
>>> t12.write('t12.csv', fmt='csv')
</pre>
</p>
<p>Note that for those tasks which have a parameter named "<code>in</code>"
in command-line STILTS, it has been renamed as "<code>in_</code>" for
the python version, to avoid a name clash with the python reserved word.
In most cases, the <code>in</code> parameter is the first, mandatory
parameter in any case, and so can be referenced by position as in the
previous example (we could have written "<code>tcat(in_=[t1,t2])</code>"
instead).
</p>
<hr><a href="jyfuncs.html">Next</a> <a href="jymode.html">Previous</a> <a href="jystilts.html">Up</a> <a href="index.html">Contents</a> <br> <b>Next: </b><a href="jyfuncs.html">Calculation Functions</a><br>
<b>Up: </b><a href="jystilts.html">JyStilts - STILTS from Python</a><br>
<b>Previous: </b><a href="jymode.html">Table output modes (mode_*)</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>
|