Next Previous Up Contents
Next: cdsskymatch: Crossmatches table on sky position against VizieR/SIMBAD table
Up: calc: Evaluates expressions
Previous: Usage

### B.2.2 Examples

Here are some examples of using `calc`:

    stilts calc 1+2

  Calculates one plus two. Writes "3" to standard output.

    stilts calc 'isoToMjd("2005-12-25T00:00:00")'

  Works out the Modified Julian Day corresponding to Christmas 2005. The output is "53729.0".

    stilts calc 'param$author' table=catalogue.xml

  In this case the expression is evaluated in the context of the supplied table, which means that the table's parameters can be referenced in the expression. This example just outputs the value of the table parameter named "author".

Next Previous Up Contents
Next: cdsskymatch: Crossmatches table on sky position against VizieR/SIMBAD table
Up: calc: Evaluates expressions
Previous: Usage

STILTS - Starlink Tables Infrastructure Library Tool Set
Starlink User Note256
STILTS web page: http://www.starlink.ac.uk/stilts/
Author email: m.b.taylor@bristol.ac.uk
Mailing list: topcat-user@jiscmail.ac.uk