next up previous 225
Next: Selections
Up: Components of a CAT catalogue
Previous: VALUE

Expressions

Expressions define a quantity computed from the existing scalar columns, vector column elements and parameters of a catalogue using some algebraic or logical (boolean) expression. An expression adopts a value for every row in the catalogue. It is similar to a column, except that its value is computed `on the fly' from existing columns (and parameters), rather than being stored in the catalogue. Usually an expression will evaluate to a numeric value, but it may equally well evaluate to a LOGICAL or CHARACTER value. For example, if a catalogue contained columns x and y an expression might be `x + y'. The syntax for specifying expressions is described in Appendix [*].

An expression has a set of attributes which are identical to those for a scalar column (see Section [*] and Table [*]), but with the following exceptions.



next up previous 225
Next: Selections
Up: Components of a CAT catalogue
Previous: VALUE

CAT [1ex
Starlink User Note 181
A.C. Davenhall
4th April 2001
E-mail:ussc@star.rl.ac.uk

Copyright © 2001 Council for the Central Laboratory of the Research Councils