BuildConfigurationFile: Difference between revisions
No edit summary |
|||
(10 intermediate revisions by the same user not shown) | |||
Line 9: | Line 9: | ||
'''Usage:''' | '''Usage:''' | ||
<tt>au.buildConfigurationFile(vis='', | <tt>au.buildConfigurationFile(vis=", simmospath=None, field='', dropTPpads=False)</tt> | ||
If the path to simmos is not found, or if you have alternate .cfg files to use, then you | |||
can pass the path as a string using the simmospath parameter. | |||
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. | |||
==VLA example== | ==VLA example== | ||
Line 15: | Line 22: | ||
<source lang="python"> | <source lang="python"> | ||
CASA <2>: au.buildConfigurationFile('spw0_1.ms') | CASA <2>: au.buildConfigurationFile('spw0_1.ms') | ||
</source> | |||
<code><pre> | |||
Found W08 in file: /usr/lib64/casapy/release/3.4.0/data/alma/simmos/vla.a.cfg | Found W08 in file: /usr/lib64/casapy/release/3.4.0/data/alma/simmos/vla.a.cfg | ||
Found E08 in file: /usr/lib64/casapy/release/3.4.0/data/alma/simmos/vla.a.cfg | Found E08 in file: /usr/lib64/casapy/release/3.4.0/data/alma/simmos/vla.a.cfg | ||
Line 43: | Line 52: | ||
Found E10 in file: /usr/lib64/casapy/release/3.4.0/data/alma/simmos/vla.c.cfg | Found E10 in file: /usr/lib64/casapy/release/3.4.0/data/alma/simmos/vla.c.cfg | ||
Wrote 27 of 27 antenna stations to: spw0_1.ms.cfg | Wrote 27 of 27 antenna stations to: spw0_1.ms.cfg | ||
</ | </pre></code> | ||
== == | |||
==ALMA example== | ==ALMA example== | ||
At present, only files for the official ALMA Cycle 0 and Cycle 1 configurations are available in casa, and so in some cases. pads used in Early Science observations will not be found. If you encounter this problem, then please submit a helpdesk ticket to obtain the information. | At present, only files for the official ALMA Cycle 0 and Cycle 1 configurations are available in casa, and so in some cases. pads used in Early Science observations will not be found. If you encounter this problem, then please submit a helpdesk ticket to obtain the information. Or you can consult the pad position spreadsheet yourself at [https://safe.nrao.edu/wiki/bin/view/Main/ALMABaselinesTable this wikipage] (look for Local Tangent Plane coordinates). | ||
<source lang="python"> | <source lang="python"> | ||
CASA <9>: au.buildConfigurationFile('uid___A002_X4b58a4_X31.ms') | CASA <9>: au.buildConfigurationFile('uid___A002_X4b58a4_X31.ms') | ||
</source> | |||
<code><pre> | |||
Found A075 in file: /usr/lib64/casapy/release/3.4.0/data/alma/simmos/alma_cycle1_5.cfg | Found A075 in file: /usr/lib64/casapy/release/3.4.0/data/alma/simmos/alma_cycle1_5.cfg | ||
Found A029 in file: /usr/lib64/casapy/release/3.4.0/data/alma/simmos/alma_cycle1_5.cfg | Found A029 in file: /usr/lib64/casapy/release/3.4.0/data/alma/simmos/alma_cycle1_5.cfg | ||
Line 79: | Line 92: | ||
Did not find A053. | Did not find A053. | ||
Did not find A008. | Did not find A008. | ||
</pre> | |||
</ | </code> |
Latest revision as of 20:45, 24 March 2013
Return to Analysis Utilities
This page documents the buildConfigurationFile function of Python module analysisUtils.
This function will read 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 (Linux path). It is useful for preparing to run simulations to mimic the uv coverage of previously-obtained datasets.
Usage:
au.buildConfigurationFile(vis=", simmospath=None, field=, dropTPpads=False)
If the path to simmos is not found, or if you have alternate .cfg files to use, then you can pass the path as a string using the simmospath parameter.
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.
VLA example
CASA <2>: au.buildConfigurationFile('spw0_1.ms')
Found W08 in file: /usr/lib64/casapy/release/3.4.0/data/alma/simmos/vla.a.cfg
Found E08 in file: /usr/lib64/casapy/release/3.4.0/data/alma/simmos/vla.a.cfg
Found N16 in file: /usr/lib64/casapy/release/3.4.0/data/alma/simmos/vla.a.cfg
Found E16 in file: /usr/lib64/casapy/release/3.4.0/data/alma/simmos/vla.a.cfg
Found W16 in file: /usr/lib64/casapy/release/3.4.0/data/alma/simmos/vla.a.cfg
Found N08 in file: /usr/lib64/casapy/release/3.4.0/data/alma/simmos/vla.a.cfg
Found E04 in file: /usr/lib64/casapy/release/3.4.0/data/alma/simmos/vla.b.cfg
Found N12 in file: /usr/lib64/casapy/release/3.4.0/data/alma/simmos/vla.b.cfg
Found W12 in file: /usr/lib64/casapy/release/3.4.0/data/alma/simmos/vla.b.cfg
Found W04 in file: /usr/lib64/casapy/release/3.4.0/data/alma/simmos/vla.b.cfg
Found E12 in file: /usr/lib64/casapy/release/3.4.0/data/alma/simmos/vla.b.cfg
Found N04 in file: /usr/lib64/casapy/release/3.4.0/data/alma/simmos/vla.b.cfg
Found W18 in file: /usr/lib64/casapy/release/3.4.0/data/alma/simmos/vla.c.cfg
Found E02 in file: /usr/lib64/casapy/release/3.4.0/data/alma/simmos/vla.c.cfg
Found E18 in file: /usr/lib64/casapy/release/3.4.0/data/alma/simmos/vla.c.cfg
Found W10 in file: /usr/lib64/casapy/release/3.4.0/data/alma/simmos/vla.c.cfg
Found N06 in file: /usr/lib64/casapy/release/3.4.0/data/alma/simmos/vla.c.cfg
Found E14 in file: /usr/lib64/casapy/release/3.4.0/data/alma/simmos/vla.c.cfg
Found N10 in file: /usr/lib64/casapy/release/3.4.0/data/alma/simmos/vla.c.cfg
Found E06 in file: /usr/lib64/casapy/release/3.4.0/data/alma/simmos/vla.c.cfg
Found N14 in file: /usr/lib64/casapy/release/3.4.0/data/alma/simmos/vla.c.cfg
Found W06 in file: /usr/lib64/casapy/release/3.4.0/data/alma/simmos/vla.c.cfg
Found W14 in file: /usr/lib64/casapy/release/3.4.0/data/alma/simmos/vla.c.cfg
Found N18 in file: /usr/lib64/casapy/release/3.4.0/data/alma/simmos/vla.c.cfg
Found N02 in file: /usr/lib64/casapy/release/3.4.0/data/alma/simmos/vla.c.cfg
Found W02 in file: /usr/lib64/casapy/release/3.4.0/data/alma/simmos/vla.c.cfg
Found E10 in file: /usr/lib64/casapy/release/3.4.0/data/alma/simmos/vla.c.cfg
Wrote 27 of 27 antenna stations to: spw0_1.ms.cfg
ALMA example
At present, only files for the official ALMA Cycle 0 and Cycle 1 configurations are available in casa, and so in some cases. pads used in Early Science observations will not be found. If you encounter this problem, then please submit a helpdesk ticket to obtain the information. Or you can consult the pad position spreadsheet yourself at this wikipage (look for Local Tangent Plane coordinates).
CASA <9>: au.buildConfigurationFile('uid___A002_X4b58a4_X31.ms')
Found A075 in file: /usr/lib64/casapy/release/3.4.0/data/alma/simmos/alma_cycle1_5.cfg
Found A029 in file: /usr/lib64/casapy/release/3.4.0/data/alma/simmos/alma_cycle1_5.cfg
Found A077 in file: /usr/lib64/casapy/release/3.4.0/data/alma/simmos/alma_cycle1_5.cfg
Found A082 in file: /usr/lib64/casapy/release/3.4.0/data/alma/simmos/alma_cycle1_5.cfg
Found A021 in file: /usr/lib64/casapy/release/3.4.0/data/alma/simmos/alma_cycle1_5.cfg
Found A011 in file: /usr/lib64/casapy/release/3.4.0/data/alma/simmos/alma_cycle1_5.cfg
Found A072 in file: /usr/lib64/casapy/release/3.4.0/data/alma/simmos/alma_cycle1_5.cfg
Found A015 in file: /usr/lib64/casapy/release/3.4.0/data/alma/simmos/alma_cycle1_5.cfg
Found A076 in file: /usr/lib64/casapy/release/3.4.0/data/alma/simmos/alma_cycle1_5.cfg
Found A003 in file: /usr/lib64/casapy/release/3.4.0/data/alma/simmos/alma.cycle0.compact.cfg
Found A046 in file: /usr/lib64/casapy/release/3.4.0/data/alma/simmos/alma.cycle0.compact.cfg
Found A045 in file: /usr/lib64/casapy/release/3.4.0/data/alma/simmos/alma.cycle0.compact.cfg
Found A004 in file: /usr/lib64/casapy/release/3.4.0/data/alma/simmos/alma.cycle0.compact.cfg
Found A025 in file: /usr/lib64/casapy/release/3.4.0/data/alma/simmos/alma.cycle0.compact.cfg
Found A020 in file: /usr/lib64/casapy/release/3.4.0/data/alma/simmos/alma.cycle0.compact.cfg
Found A001 in file: /usr/lib64/casapy/release/3.4.0/data/alma/simmos/alma_cycle1_1.cfg
Found A068 in file: /usr/lib64/casapy/release/3.4.0/data/alma/simmos/alma_cycle1_2.cfg
Found A067 in file: /usr/lib64/casapy/release/3.4.0/data/alma/simmos/alma_cycle1_2.cfg
Found A137 in file: /usr/lib64/casapy/release/3.4.0/data/alma/simmos/alma_cycle1_2.cfg
Found A071 in file: /usr/lib64/casapy/release/3.4.0/data/alma/simmos/alma_cycle1_2.cfg
Found A069 in file: /usr/lib64/casapy/release/3.4.0/data/alma/simmos/alma_cycle1_2.cfg
Found A074 in file: /usr/lib64/casapy/release/3.4.0/data/alma/simmos/alma_cycle1_3.cfg
Found A138 in file: /usr/lib64/casapy/release/3.4.0/data/alma/simmos/alma_cycle1_3.cfg
Found T704 in file: /usr/lib64/casapy/release/3.4.0/data/alma/simmos/aca.tp.cfg
Found T702 in file: /usr/lib64/casapy/release/3.4.0/data/alma/simmos/aca.tp.cfg
Wrote 25 of 27 antenna stations to: uid___A002_X4b58a4_X31.ms.cfg
Did not find A053.
Did not find A008.