from __future__ import absolute_import
from __future__ import print_function
from casatasks.private.casa_transition import *
from casatasks import casalog
from casatools import ms as mstool
from casatools import table as tbtool
from taskinit import casalog
from taskinit import mstool
from taskinit import tbtool
def testconcat(vislist,testconcatvis,freqtol,dirtol,copypointing):
The list of data sets given in the vis argument are concatenated into an output
data set in concatvis without copying the bulk data of the main table.
This is useful for obtaining the information in the merged subtables without
actually performing a time-consuming concatenation disk.
vis -- Name of input visibility files for which the subtables are to be combined
default: none; example: vis = 'mydata.ms',
example: vis=['src2.ms','ngc5921.ms','ngc315.ms']
testconcatvis -- Name of MS that will contain the concatenated subtables
default: none; example: testconcatvis='test.ms'
freqtol -- Frequency shift tolerance for considering data to be in the same
spwid. The number of channels must also be the same.
default: '' do not combine unless frequencies are equal
example: freqtol='10MHz' will not combine spwid unless they are
Note: This option is useful to conbine spectral windows with very slight
frequency differences caused by Doppler tracking, for example.
dirtol -- Direction shift tolerance for considering data as the same field
default: '' means always combine.
example: dirtol='1.arcsec' will not combine data for a field unless
their phase center differ by less than 1 arcsec. If the field names
are different in the input data sets, the name in the output data
set will be the first relevant data set in the list.
copypointing -- copy all rows of the pointing table
casalog.origin('testconcat')