[AIT logo]

Institut für Astronomie und Astrophysik

Abteilung Astronomie

Waldhäuser Str. 64, D-72076 Tübingen, Germany
[Uni logo]


TABLE_CALC Source code in table_calc.pro

TABLE_CALC

Name
       TABLE_CALC
Purpose
       Adds a new table column from a expression using existing columns
Calling Sequence
       table_calc, table, expression, table_out
Input Parameters
       table - input SDAS table table
       expression - expression for new or updated column values.
               Any legal IDL expression is valid where existing
               column names can be used as variables.  User functions
               within the expression are allowed if the function
               is in an IDL library or previously compiled.
Optional Input Parameters
       table_out - output table name.  If not supplied, the
               input name is used.
Output Parameters
       a new SDAS table file is created.
Example
        create a column WAVELENGTH in table TAB which is the average
       of the WLOW and WHIGH columns of table TAB.
               table_calc,'tab','WAVELENGTH=(WLOW+WHIGH)/2.0'
       add a column SINX which is the sin of column X to table JUNK.
               table_calc,'junk','SINX=sin(X)'
       add 10.0 to an existing column in table MYTAB.
               table_calc,'mytab','flux=flux+10.0'
Revision History
       version 1  D. Lindler November, 1989
       Converted to IDL V5.0   W. Landsman   September 1997

Last modified by pro2html on 2001 April 26 at 03:14 UTC

[Home Page] [Software, Documentation] [IDL Documentation] [Quick Reference] [Feedback]

Jörn Wilms (wilms@astro.uni-tuebingen.de)
Updated automatically