The usage of calc
is
stilts <stilts-flags> calc table=<table> [expression=]<expr>If you don't have the
stilts
script installed,
write "java -jar stilts.jar
" instead of
"stilts
" - see Section 3.
The available <stilts-flags>
are listed
in Section 2.1.
For programmatic invocation,
the Task class for this
command is uk.ac.starlink.ttools.task.Calc
.
Parameter values are assigned on the command line as explained in Section 2.3. They are as follows:
expression = <expr>
(String)
table = <table>
(StarTable)
expression
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
param$*
,
ucd$*
or
utype$*
-
see Section 10.2 for more detail.