/usr/share/doc/stilts/sun256/tloopExamples.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 | <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="tjoin.html">Next</a> <a href="tloop-usage.html">Previous</a> <a href="tloop.html">Up</a> <a href="index.html">Contents</a> <br> <b>Next: </b><a href="tjoin.html">tjoin: Joins multiple tables side-to-side</a><br>
<b>Up: </b><a href="tloop.html">tloop: Generates a single-column table from a loop variable</a><br>
<b>Previous: </b><a href="tloop-usage.html">Usage</a><br>
<hr>
<h3><a name="tloopExamples">B.28.2 Examples</a></h3>
<p>
<dl>
<dt><strong><pre>
stilts tloop COUNTER 0 1000
</pre></strong></dt>
<dd>Generates a table with a single column, named <code>COUNTER</code>,
and a thousand rows.
The value in the first row is 0 and in the last row is 999.
The table is written to standard output.
</dd>
<dt><strong><pre>
stilts tloop time 0 10 0.25 out=times.csv
</pre></strong></dt>
<dd>Generates a table with one column <code>time</code> counting from
0 to 9.75 in steps of 0.25. Output is to a CSV file.
The parameters here are specified in order, but could equivalently
be given by name:
"<code>stilts tloop var=time start=0 end=10 step=0.26</code>".
</dd>
<dt><strong><pre>
stilts tloop x start=1 end=11 ocmd='addcol x2 x*x' ocmd='addcol x3 x*x*x'
ocmd='stats name sum'
</pre></strong></dt>
<dd>Generates a table with a column <code>x</code> running from 1 to 10
inclusive. The <code>addcol</code> filters then append two further
columns, giving the squares and cubes of these values respectively,
giving a table of 10 rows and 3 columns.
Finally this table is piped through a <code>stats</code> filter to
calculate the sums of the values, squares and cubes in this range.
</dd>
</dl>
</p>
<hr><a href="tjoin.html">Next</a> <a href="tloop-usage.html">Previous</a> <a href="tloop.html">Up</a> <a href="index.html">Contents</a> <br> <b>Next: </b><a href="tjoin.html">tjoin: Joins multiple tables side-to-side</a><br>
<b>Up: </b><a href="tloop.html">tloop: Generates a single-column table from a loop variable</a><br>
<b>Previous: </b><a href="tloop-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>
|