Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1556
News FAQ
Search Home


next up previous contents index
Next: tablecomparer.checkkeywordnames - Function Up: tablecomparer - Tool Previous: tablecomparer.checkcolnames - Function


tablecomparer.checkcoldata - Function



Package utility
Module table
Tool tablecomparer


Compare column data


Synopsis
checkcoldata(checksubtables)


Description
This function compares the data of all columns not excluded by the select() function. Tolerances on a per column and/or per column type basis basis can be specified by running setprecision() before running this function. This function will check both regular and variable array column data, in the latter case doing a record by record test for equality. It assumes that unset values are equal. If all column data match (to within the specified precisions, if any) between the two tables, the function returns T, if not, it returns F.



Arguments

checksubtables   Check column names of subtables as well?
    Allowed: Boolean
    Default: T


Returns
T if the tests pass, F otherwise


Example
- tc := tablecomparer('test.table','fiducial.table',verbose=2)
NORMAL: successful readonly open of default-locked table test.table: 37 columns, 210 rows
NORMAL: successful readonly open of default-locked table fiducial.table: 37 columns, 210 rows
- tc.checkcoldata()                                            
NORMAL: Column data test passed on table TABLE column TIME
NORMAL: Column data test passed on table TABLE column TIME_EXTRA_PREC
NORMAL: Column data test passed on table TABLE column INTERVAL
NORMAL: Column data test passed on table TABLE column ANTENNA1
NORMAL: Column data test passed on table TABLE column FEED1
NORMAL: Column data test passed on table TABLE column FIELD_ID
NORMAL: Column data test passed on table TABLE column ARRAY_ID
NORMAL: Column data test passed on table TABLE column OBSERVATION_ID
NORMAL: Column data test passed on table TABLE column SCAN_NUMBER
NORMAL: Column data test passed on table TABLE column PROCESSOR_ID
NORMAL: Column data test passed on table TABLE column STATE_ID
NORMAL: Column data test passed on table TABLE column PHASE_ID
NORMAL: Column data test passed on table TABLE column PULSAR_BIN
NORMAL: Column data test passed on table TABLE column PULSAR_GATE_ID
NORMAL: Column data test passed on table TABLE column FREQ_GROUP
NORMAL: Column data test passed on table TABLE column FREQ_GROUP_NAME
NORMAL: Column data test passed on table TABLE column FIELD_NAME
NORMAL: Column data test passed on table TABLE column FIELD_CODE
NORMAL: Column data test passed on table TABLE column SOURCE_NAME
NORMAL: Column data test passed on table TABLE column SOURCE_CODE
NORMAL: Column data test passed on table TABLE column CALIBRATION_GROUP
NORMAL: Column data test passed on table TABLE column GAIN
NORMAL: Column data test passed on table TABLE column REF_ANT
NORMAL: Column data test passed on table TABLE column REF_FEED
NORMAL: Column data test passed on table TABLE column REF_RECEPTOR
NORMAL: Column data test passed on table TABLE column REF_FREQUENCY
NORMAL: Column data test passed on table TABLE column MEAS_FREQ_REF
NORMAL: Column data test passed on table TABLE column REF_DIRECTION
NORMAL: Column data test passed on table TABLE column MEAS_DIR_REF
NORMAL: Column data test passed on table TABLE column CAL_DESC_ID
NORMAL: Column data test passed on table TABLE column CAL_HISTORY_ID
NORMAL: Column data test passed on table TABLE column TOTAL_SOLUTION_OK
NORMAL: Column data test passed on table TABLE column TOTAL_FIT
NORMAL: Column data test passed on table TABLE column TOTAL_FIT_WEIGHT
NORMAL: Column data test passed on table TABLE column SOLUTION_OK
NORMAL: Column data test passed on table TABLE column FIT
NORMAL: Column data test passed on table TABLE column FIT_WEIGHT
NORMAL: successful readonly open of default-locked table test.table/CAL_DESC: 12 columns, 1 rows
NORMAL: successful readonly open of default-locked table fiducial.table/CAL_DESC: 12 columns, 1 rows
NORMAL: Column data test passed on table CAL_DESC column NUM_SPW
NORMAL: Column data test passed on table CAL_DESC column NUM_CHAN
NORMAL: Column data test passed on table CAL_DESC column NUM_RECEPTORS
NORMAL: Column data test passed on table CAL_DESC column N_JONES
NORMAL: Column data test passed on table CAL_DESC column SPECTRAL_WINDOW_ID
NORMAL: Column data test passed on table CAL_DESC column CHAN_FREQ
NORMAL: Column data test passed on table CAL_DESC column MEAS_FREQ_REF
NORMAL: Column data test passed on table CAL_DESC column CHAN_WIDTH
NORMAL: Column data test passed on table CAL_DESC column CHAN_RANGE
NORMAL: Column data test passed on table CAL_DESC column POLARIZATION_TYPE
NORMAL: Column data test passed on table CAL_DESC column JONES_TYPE
NORMAL: Column data test passed on table CAL_DESC column MS_NAME
NORMAL: successful readonly open of default-locked table test.table/CAL_HISTORY: 4 columns, 0 rows
NORMAL: successful readonly open of default-locked table fiducial.table/CAL_HISTORY: 4 columns, 0 rows
NORMAL: Column data test passed on table CAL_HISTORY column CAL_PARMS
NORMAL: Column data test passed on table CAL_HISTORY column CAL__TABLES
NORMAL: Column data test passed on table CAL_HISTORY column CAL_SELECT
NORMAL: Column data test passed on table CAL_HISTORY column CAL_NOTES
T





next up previous contents index
Next: tablecomparer.checkkeywordnames - Function Up: tablecomparer - Tool Previous: tablecomparer.checkcolnames - Function   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-10-15