Usage of buildConfigurationFile
Return to directory of Todd's CASA extensions
buildConfigurationFile(vis='', simmospath=None, field='', dropTPpads=False, output='', debug=False,
extraPads=[], extraNames=[], includeAntennaNames=False)
Reads the list of antenna stations in an .ms and creates a .cfg file based on
the antenna locations in the files in /usr/lib64/casapy/data/alma/simmos.
Useful for running simulations on previously-obtained ALMA or VLA datasets.
For ALMA, it searches the file AOS_Pads_XYZ_ENU.txt distributed with analysisUtils.
- simmospath: alternative place to search for observatory .cfg files
- field: if specified, then report the date/time of the first observation of this field (ID or name), e.g. for usage in predictcomp
- dropTPpads: if set to True, will exclude pads starting with 'T70', as their files do not have the same coordinate system as the others.
- output: the name of the output file to write (default=[vis].cfg)
- extraPads: insert additional pads into the list
- extraNames: the antenna names corresponding to the extraPads
- includeAntennaNames: add an extra column on the end containing the antenna names
Example
CASA <2>: au.buildConfigurationFile('uid___A002_X43036c_X9c6.ms')
Wrote 20 of 20 antenna stations to: uid___A002_X43036c_X9c6.ms.cfg
CASA <3>: !more uid___A002_X43036c_X9c6.ms.cfg
# observatory=ALMA
# coordsys=LOC (local tangent plane)
# x y z diam pad#
# uid___A002_X43036c_X9c6.ms
-15.04639784 -764.3348031 -2.335016467 12. A050
-5.421013146 -723.7911045 -2.334250518 12. A004
-43.75912668 -692.174207 -2.329873203 12. A021
-36.66707354 -762.1662821 -2.339843364 12. A046
37.82617818 -735.8760818 -2.484749162 12. A011
-140.507228 -651.1640802 -0.634931252 12. A068
108.0977936 -762.8666359 -4.094737047 12. A070
84.32301106 -698.1017768 -3.983928839 12. A067
13.04464133 -559.8146379 -3.339688898 12. A137
-118.8674637 -582.6093162 -0.492832171 12. A071
-159.5516085 -789.4690248 -0.085066708 12. A069
-62.64949425 -519.0658412 -1.506521335 12. A075
103.7166566 -847.9917404 -4.492461166 12. A074
-38.94285883 -920.6301864 2.928147025 12. A138
210.9519612 -760.3395825 -7.722003145 12. A082
89.09395348 -599.9597 -5.661962966 12. A072
627743.00 7453191.00 5000.0 12.0 T702
-22.5589292 -691.9838607 -2.323742384 12. A003
-63.50521219 -786.8199568 -1.341060659 12. A045
-84.5230042 -704.8937799 -1.937681767 12. A025
--
ToddHunter - 2012-08-20