-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.py
More file actions
50 lines (40 loc) · 1.44 KB
/
settings.py
File metadata and controls
50 lines (40 loc) · 1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
"""
Store system and configuration information for running MAPS.
"""
from __future__ import print_function, division
import os
import numpy as np
H21CM = 1420.40575177
class MAPS(object):
"""
MAPS configurations.
"""
try:
ROOT_DIR = os.environ['SIM']
except KeyError:
print("'SIM' environment variable is not in your path.\nMAPS_DIR is "
"temporary set to {:s}. You can set this path manually by "
"calling `set_MPAS_DIR()` (not implemented yet)"
.format(os.getcwd()))
ROOT_DIR = os.getcwd()
ARRAY_DIR = ROOT_DIR + '/array'
ARRAY_CONFIG = {
'mwa_128': ARRAY_DIR + '/mwa_128_crossdipole_gp_20110225.txt',
'vla_d': ARRAY_DIR + '/VLA_D.txt'}
ARRAY_LOC = {
'mwa_128': ('-26.7033', '116.671', '377.830'),
'vla_d': ('34.025778', '252.3210278', '2125.3704')}
MAPS_GHA = {
'mwa_128': -7.778066666666667,
'vla_d': 16.821401853333334}
class MWA(object):
EOR0 = (0.0, -30.0)
EOR1 = (4.0 * 15.0, -30.0)
EOR2 = (10.33 * 15.0, -10.0)
ZENITH_DEC = -26.7033
FREQ_EOR_LOW_40KHZ = np.arange(138.895, 167.055, 0.04)
FREQ_EOR_HI_40KHZ = np.arange(167.055, 195.255, 0.04)
FREQ_EOR_ALL_40KHZ = np.arange(138.895, 195.255, 0.04)
FREQ_EOR_LOW_80KHZ = np.arange(138.915, 167.075, 0.08)
FREQ_EOR_HI_80KHZ = np.arange(167.075, 195.275, 0.08)
FREQ_EOR_ALL_80KHZ = np.arange(138.915, 195.275, 0.08)