BuildConfigurationFile

From CASA Guides
Jump to navigationJump to search

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)

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.

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.

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.