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.tolerance - Function Up: tablecomparer - Tool Previous: tablecomparer.settolerance - Function


tablecomparer.select - Function



Package utility
Module table
Tool tablecomparer


Specify which columns to check (or not to check)


Synopsis
select(checkonlycols, nocheckcols)


Description
This function allows the user to specify which columns to check or not to check when running checkcolkeywordnames() and checkcoldata(). The checkonlycols parameter indicates that these functions should check only the columns specified, while the nocheckcols parameter indicates that all columns except those specified should be checked. If both are specified, it is the same as specifying only the checkonlycols parameter. Each parameter can be either a vector of column names or a record of column names. In the case of a vector, a column of that name in either the main table or any of its subtables matches (assuming the check* function is run with checksubtables=T. In the case of a record being used for these parameters, the field names of the record are the table labels, and each field can be assigned a vector of column names. So for examaple to check only the TIME and GAIN column of the main table and the SPECTRAL_WINDOW_ID column of the CAL_DESC subtable you would do (bearing in mind that the defalt label for the top-level table is TABLE):
tc := tablecomparer('test.table','fiducial.table')
occ := [=];
occ.MAIN := ['TIME','GAIN'];
occ.CAL_DESC := 'SPECTRAL_WINDOW_ID'
tc.select(checkonlycols=occ)
tc.checkcoldata();



Arguments

checkonlycols   Check only these columns
    Allowed: Array or record
    Default: []
nocheckcols   Do not check these columns (not used if checkonlycols is specified)
    Allowed: Array or record
    Default: []


Returns
T


Example
- tc := tablecomparer('test.table','fiducial.table', verbose=2)
# check only the GAIN column of the main table
- occ := [=]
- occ.TABLE := 'GAIN';
- tc.select(occ);
- tc.checkcoldata();
NORMAL: Skipping column TIME of table TABLE because of selection.
NORMAL: Skipping column TIME_EXTRA_PREC of table TABLE because of selection.
NORMAL: Skipping column INTERVAL of table TABLE because of selection.
NORMAL: Skipping column ANTENNA1 of table TABLE because of selection.
NORMAL: Skipping column FEED1 of table TABLE because of selection.
NORMAL: Skipping column FIELD_ID of table TABLE because of selection.
NORMAL: Skipping column ARRAY_ID of table TABLE because of selection.
NORMAL: Skipping column OBSERVATION_ID of table TABLE because of selection.
NORMAL: Skipping column SCAN_NUMBER of table TABLE because of selection.
NORMAL: Skipping column PROCESSOR_ID of table TABLE because of selection.
NORMAL: Skipping column STATE_ID of table TABLE because of selection.
NORMAL: Skipping column PHASE_ID of table TABLE because of selection.
NORMAL: Skipping column PULSAR_BIN of table TABLE because of selection.
NORMAL: Skipping column PULSAR_GATE_ID of table TABLE because of selection.
NORMAL: Skipping column FREQ_GROUP of table TABLE because of selection.
NORMAL: Skipping column FREQ_GROUP_NAME of table TABLE because of selection.
NORMAL: Skipping column FIELD_NAME of table TABLE because of selection.
NORMAL: Skipping column FIELD_CODE of table TABLE because of selection.
NORMAL: Skipping column SOURCE_NAME of table TABLE because of selection.
NORMAL: Skipping column SOURCE_CODE of table TABLE because of selection.
NORMAL: Skipping column CALIBRATION_GROUP of table TABLE because of selection.
NORMAL: Column data test passed on table TABLE column GAIN
NORMAL: Skipping column REF_ANT of table TABLE because of selection.
NORMAL: Skipping column REF_FEED of table TABLE because of selection.
NORMAL: Skipping column REF_RECEPTOR of table TABLE because of selection.
NORMAL: Skipping column REF_FREQUENCY of table TABLE because of selection.
NORMAL: Skipping column MEAS_FREQ_REF of table TABLE because of selection.
NORMAL: Skipping column REF_DIRECTION of table TABLE because of selection.
NORMAL: Skipping column MEAS_DIR_REF of table TABLE because of selection.
NORMAL: Skipping column CAL_DESC_ID of table TABLE because of selection.
NORMAL: Skipping column CAL_HISTORY_ID of table TABLE because of selection.
NORMAL: Skipping column TOTAL_SOLUTION_OK of table TABLE because of selection.
NORMAL: Skipping column TOTAL_FIT of table TABLE because of selection.
NORMAL: Skipping column TOTAL_FIT_WEIGHT of table TABLE because of selection.
NORMAL: Skipping column SOLUTION_OK of table TABLE because of selection.
NORMAL: Skipping column FIT of table TABLE because of selection.
NORMAL: Skipping column FIT_WEIGHT of table TABLE because of selection.
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: Skipping column NUM_SPW of table CAL_DESC because of selection.
NORMAL: Skipping column NUM_CHAN of table CAL_DESC because of selection.
NORMAL: Skipping column NUM_RECEPTORS of table CAL_DESC because of selection.
NORMAL: Skipping column N_JONES of table CAL_DESC because of selection.
NORMAL: Skipping column SPECTRAL_WINDOW_ID of table CAL_DESC because of selection.
NORMAL: Skipping column CHAN_FREQ of table CAL_DESC because of selection.
NORMAL: Skipping column MEAS_FREQ_REF of table CAL_DESC because of selection.
NORMAL: Skipping column CHAN_WIDTH of table CAL_DESC because of selection.
NORMAL: Skipping column CHAN_RANGE of table CAL_DESC because of selection.
NORMAL: Skipping column POLARIZATION_TYPE of table CAL_DESC because of selection.
NORMAL: Skipping column JONES_TYPE of table CAL_DESC because of selection.
NORMAL: Skipping column MS_NAME of table CAL_DESC because of selection.
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: Skipping column CAL_PARMS of table CAL_HISTORY because of selection.
NORMAL: Skipping column CAL_TABLES of table CAL_HISTORY because of selection.
NORMAL: Skipping column CAL_SELECT of table CAL_HISTORY because of selection.
NORMAL: Skipping column CAL_NOTES of table CAL_HISTORY because of selection.
T





next up previous contents index
Next: tablecomparer.tolerance - Function Up: tablecomparer - Tool Previous: tablecomparer.settolerance - 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