-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathObservatory.py
22 lines (18 loc) · 1.04 KB
/
Observatory.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
""" A class for observatories to use with the Virtual Radio Interferometer
Adapted from the vriObservatory.java class from the legacy code."""
class Observatory(object):
def __init__(self, menu_name, full_name,
latitude, longitude, num_antennas, num_stations,
ant_diameter, ant_el_limit,
antennas, stations, configs)
self.menu_name = menu_name # Name of observatory in menu
self.full_name = full_name # Actual name of the observatory
self.latitude = latitude # Observatory latitude in radians
self.longitude = longitude # Observatory longitude in radians
self.num_antennas = num_antennas # Number of antennas
self.num_stations = num_stations # Number of stations
self.ant_diameter = ant_diameter # Diameter of antennas (meters)
self.ant_el_limit = ant_el_limit # Antenna lower elevation limit (degrees)
self.antennas = antennas # List of antennas (i.e instances of vriAntenna class)
self.stations = stations # List of stations (instances of vriStation)
self.configs = configs # List of antenna configurations (list of stations)