/usr/share/doc/stilts/sun256/calc-usage.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 65 66 67 68 | <html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="sun-style.css">
<title>Usage</title>
</head>
<body>
<hr>
<a href="secB.1.2.html">Next</a> <a href="calc.html">Previous</a> <a href="calc.html">Up</a> <a href="index.html">Contents</a> <br> <b>Next: </b><a href="secB.1.2.html">Examples</a><br>
<b>Up: </b><a href="calc.html">calc: Evaluates expressions</a><br>
<b>Previous: </b><a href="calc.html">calc: Evaluates expressions</a><br>
<hr>
<h3><a name="calc-usage">B.1.1 Usage</a></h3>
<p>The usage of <code>calc</code> is
<pre>
stilts <stilts-flags> calc table=<table>
[expression=]<expr>
</pre>
If you don't have the <code>stilts</code> script installed,
write "<code>java -jar stilts.jar</code>" instead of
"<code>stilts</code>" - see <a href="invoke.html">Section 3</a>.
The available <code><stilts-flags></code> are listed
in <a href="stilts-flags.html">Section 2.1</a>.
For programmatic invocation, the Task class for this
command is <code>uk.ac.starlink.ttools.task.Calc</code>.
</p>
<p>Parameter values are assigned on the command line
as explained in <a href="task-args.html">Section 2.3</a>.
They are as follows:
</p>
<p>
<dl>
<dt><strong><code>expression = <expr></code> <em>(String)</em></strong></dt>
<dd>An expression to evaluate.
The functions in <a href="staticMethods.html">Section 10.5</a> can be used.
</dd>
<dt><strong><code>table = <table></code> <em>(<a href="http://www.starlink.ac.uk/stil/javadocs/uk/ac/starlink/table/StarTable.html">StarTable</a>)</em></strong></dt>
<dd>A table which provides the context within which
<code>expression</code> is evaluated.
This parameter is optional, and will usually not be required;
its only purpose is to allow use of constant expressions
(table parameters) associated with the table.
These can be referenced using identifiers of the form
<code>param$*</code>,
<code>ucd$*</code> or
<code>utype$*</code> -
see <a href="jel-paramref.html">Section 10.2</a> for more detail.
</dd>
</dl>
</p>
<hr><a href="secB.1.2.html">Next</a> <a href="calc.html">Previous</a> <a href="calc.html">Up</a> <a href="index.html">Contents</a> <br> <b>Next: </b><a href="secB.1.2.html">Examples</a><br>
<b>Up: </b><a href="calc.html">calc: Evaluates expressions</a><br>
<b>Previous: </b><a href="calc.html">calc: Evaluates expressions</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>
|