Source code for pyuvsim.telescope
# -*- mode: python; coding: utf-8 -*
# Copyright (c) 2018 Radio Astronomy Software Group
# Licensed under the 3-clause BSD License
from __future__ import absolute_import, division, print_function
import numpy as np
[docs]class Telescope(object):
"""
Defines the location and name of the observing site, and holds the list
of beam objects used by the array.
"""
def __init__(self, telescope_name, telescope_location, beam_list):
# telescope location (EarthLocation object)
self.location = telescope_location
self.name = telescope_name
# list of UVBeam objects, length of number of unique beams
self.beam_list = beam_list
def __eq__(self, other):
return ((np.allclose(self.location.to('m').value, other.location.to("m").value, atol=1e-3))
and (self.beam_list == other.beam_list)
and (self.name == other.name))