Source
1
-
<casaxml xsi:schemaLocation="http://casa.nrao.edu/schema/casa.xsd file:///opt/casa/code/xmlcasa/xml/casa.xsd" xmlns="http://casa.nrao.edu/schema/psetTypes.html" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
2
-
3
-
<task type="function" name="virtualconcat" category="manipulation">
4
-
<shortdescription>Concatenate several visibility data sets into a multi-MS</shortdescription>
5
-
6
-
<input>
7
-
<param type="pathVec" name="vis" mustexist="true"><shortdescription>List of names of input visibility files to be concatenated</shortdescription><description>List of names of input visibility files to be concatenated</description>
8
-
9
-
<value/>
10
-
</param>
11
-
12
-
<param type="string" name="concatvis"><shortdescription>Name of the output visibility file (a multi-MS)</shortdescription><description>Name of the output visibility file (a multi-MS)</description>
13
-
14
-
<value/>
15
-
</param>
16
-
17
-
<param type="any" name="freqtol"><shortdescription>Frequency shift tolerance for considering data as the same spwid</shortdescription><description>Frequency shift tolerance for considering data as the same spwid</description>
18
-
19
-
<any type="variant"/>
20
-
<value type="string"/>
21
-
</param>
22
-
23
-
<param type="any" name="dirtol"><shortdescription>Direction shift tolerance for considering data as the same field</shortdescription><description>Direction shift tolerance for considering data as the same field</description>
24
-
25
-
<any type="variant"/>
26
-
<value type="string"/>
27
-
</param>
28
-
29
-
<param type="bool" name="respectname"><shortdescription>If true, fields with a different name are not merged even if their direction agrees</shortdescription><description>If true, fields with a different name are not merged even if their direction agrees</description>
30
-
31
-
<value>True</value>
32
-
</param>
33
-
34
-
<param type="doubleVec" name="visweightscale"><shortdescription>List of the weight scaling factors to be applied to the individual MSs</shortdescription><description>List of the weight scaling factors to be applied to the individual MSs</description>
35
-
36
-
<value/>
37
-
</param>
38
-
39
-
<param type="bool" name="keepcopy"><shortdescription>If true, a copy of the input MSs is kept in their original place.</shortdescription><description>If true, a copy of the input MSs is kept in their original place.</description>
40
-
41
-
<value>False</value>
42
-
</param>
43
-
44
-
<param type="bool" name="copypointing"><shortdescription>If true, keep the POINTING table information in the output MMS. If false, don\'t.</shortdescription><description>If true, keep the POINTING table information in the output MMS. If false, don\'t.</description>
45
-
46
-
<value>True</value>
47
-
</param>
48
-
49
-
</input>
50
-
<example>
51
-
52
-
The list of data sets given in the vis argument are moved into an output
53
-
multi-MS data set concatvis and virtually concatenated.
54
-
55
-
NOTE: This task will modify the input datasets by moving them and reindexing them.
56
-
If you want to keep a copy of your original data, please set the parameter
57
-
keepcopy to True.
58
-
59
-
There is no limit to the number of input data sets.
60
-
61
-
If none of the input data sets have any scratch columns (model and corrected
62
-
columns), none are created in the concatvis. Otherwise these columns are
63
-
created on output and initialized to their default value (1 in model column,
64
-
data in corrected column) for those data with no input columns.
65
-
66
-
Spectral windows for each data set with the same chanelization, and within a
67
-
specified frequency tolerance of another data set will be combined into one
68
-
spectral window.
69
-
70
-
A field position in one data set that is within a specified direction tolerance
71
-
of another field position in any other data set will be combined into one
72
-
field. The field names need not be the same---only their position is used.
73
-
74
-
Each appended dataset is assigned a new observation id if the corresponding
75
-
rows in the observation table are not the same.
76
-
77
-
Keyword arguments:
78
-
vis -- Name of input visibility files to be combined
79
-
default: none; example: vis = ['src2.ms','ngc5921.ms','ngc315.ms']
80
-
concatvis -- Name of visibility file that will contain the concatenated data
81
-
note: if this file exits on disk then the input files are
82
-
added to this file. Otherwise the new file contains
83
-
the concatenated data. Be careful here when concatenating to
84
-
an existing file.
85
-
default: none; example: concatvis='src2.ms'
86
-
example: concatvis='outvis.ms'
87
-
88
-
other examples:
89
-
virtualconcat(vis=['src2.ms','ngc5921.ms'], concatvis='out.mms')
90
-
will concatenate 'ngc5921.ms' and 'src2.ms' into a file named
91
-
'out.mms'; the original 'ngc5921.ms' and 'src2.ms' are gone.
92
-
'out.mms' is a multims. As most of the data is only moved, not
93
-
copied, this is faster and subsequent tasks can run in parallel
94
-
on the subMSs of out.mms.
95
-
virtualconcat(vis=['src2.ms','ngc5921.ms'], concatvis='out.mms', keepcopy=True)
96
-
will concatenate 'ngc5921.ms' and 'src2.ms' into a file named
97
-
'out.mms'; the original 'ngc5921.ms' and 'src2.ms' are as before
98
-
but you consume more disk space and time for the copy.
99
-
.
100
-
101
-
Note: run flagmanager to save flags in the concatvis
102
-
103
-
freqtol -- Frequency shift tolerance for considering data to be in the same
104
-
spwid. The number of channels must also be the same.
105
-
default: '' do not combine unless frequencies are equal
106
-
example: freqtol='10MHz' will not combine spwid unless they are
107
-
within 10 MHz.
108
-
Note: This option is useful to conbine spectral windows with very slight
109
-
frequency differences caused by Doppler tracking, for example.
110
-
111
-
dirtol -- Direction shift tolerance for considering data as the same field
112
-
default: '' means always combine.
113
-
example: dirtol='1.arcsec' will not combine data for a field unless
114
-
their phase center differ by less than 1 arcsec. If the field names
115
-
are different in the input data sets, the name in the output data
116
-
set will be the first relevant data set in the list.
117
-
118
-
respectname -- If true, fields with a different name are not merged even if their
119
-
direction agrees (within dirtol).
120
-
default: True
121
-
122
-
visweightscale -- The weights of the individual MSs will be scaled in the concatenated
123
-
output MS by the factors in this list. Useful for handling heterogeneous arrays.
124
-
Use plotms to inspect the "Wt" column as a reference for determining the scaling
125
-
factors. See the cookbook for more details.
126
-
example: [1.,3.,3.] - scale the weights of the second and third MS by a factor 3.
127
-
default: [] (empty list) - no scaling
128
-
129
-
keepcopy -- If true, a copy of the input MSs is kept in their original place.
130
-
default: false
131
-
132
-
copypointing -- If true, the POINTING table information will be present in the output.
133
-
If false, the result is an empty POINTING table.
134
-
default: true
135
-
136
-
</example>
137
-
138
-
<returns>void</returns></task>
139
-
</casaxml>