Convert latitude (rad), longitude (rad), elevation (m) to earth- centered, earth-fixed coordinates.
Convert earth-centered, earth-fixed coordinates to (rad), longitude (rad), elevation (m) using Bowring’s method.
Object to hold information about the a LWA station. This object can create a ephem.Observer representation of itself and identify which stands were in use at a given time. Stores station:
- Name (name)
- ID code (id)
- Latitiude in radians [but initialized as degrees] (N is positive, lat)
- Longitude in radians [but initialized as degrees] (W is negative, long)
- Elevation in meters (elev)
- List of Antenna instances (antennas)
LWAStation provides several functional attributes for dealing with the station’s location on Earth. These include:
- getObserver: Return an ephem.Observer instance representing the station
- getAIPYLocation: Return a tuple for setting the location of an AIPY AntennaArray instance
- getGeocentricLocation: Return a tuple of the EC-EF coordinates of the station
- getECITransform: Return a 3x3 tranformation matrix to convert antenna positions to ECI coordinates
- getECIInverseTransform: Return a 3x3 tranformation matrix to convert antenna positions from ECI coordinates
- getENZOffset: Return the east, north, and vertial offsets to a point on the surface of the Earth
- getPointingAndDistance: Return the pointing direction and distance to another location on the surface of the Earth
LWAStation also provides several functional attributes for dealing with the station’s antennas. These include:
- getAntennas: Return a list of antennas
- getStands: Return a list of stands
- getPols: Return a list of polarizations
- getCables: Return a list of cables
Changed in version 1.0.0: Converted LWAStation to be an instance of LWAStationBase and ephem.Observer to make it easier to work with ephem.Body objects.
Added additional functions for dealing with other locations.
Changed getECEFTransform() to getECITransform() to make the function name consistent with its purpose.
Update the provided ephem.Body instance with the current location as viewed from the site.
New in version 1.0.0.
Return a tuple that can be used by AIPY for specifying a array location.
Return the list of Antenna instances for the station, sorted by digitizer number.
Return a list of Cable instances for each antenna, sorted by digitizer number.
Return a 3x3 tranformation matrix that converts a baseline in earth-centered inertial coordinates [x, y, z] to [east, north, elevation] for that baseline.
Return a 3x3 tranformation matrix that converts a baseline in [east, north, elevation] to earth-centered inertial coordinates for that baseline [x, y, z]. Based off the ‘local_to_eci’ function in the lwda_fits-dev library.
Given another location on the surface of the Earth, either as a LWAStation instance or a three-element tuple of latitude (deg.), longitude (deg.), and elevation (m), return the topocentric offset in meter along the east, north, and veritcal directions.
Return a tuple with earth-centered, earth-fixed coordinates for the station.
Return a ephem.Observer object for this site.
Given another location on the surface of the Earth, either as a LWAStation instance or a three-element tuple of latitude (deg.), longitude (deg.), and elevation (m), return the bearing azimuth/ elevation in radians and distance in meters to the location.
Changed in version 1.0.1: Renamed from getPointingAndDirection to getPointingAndDistance
Return a list of polarization (0 == N-S; 1 == E-W) for each antenna, sorted by digitizer number.
Return a list of Stand instances for each antenna, sorted by digitizer number.
Changed in version 1.0.0: Added an attribute to hold the DP rack input connector label.
Return the combined antenna + FEE status as a two digit number with the first digit representing the antenna status and the second the FEE status.
Return a two-element tuple (freq in Hz, mis-match efficiency) for a model LWA1 antenna from Hicks et al. (2012, PASP, 124, 1090).
New in version 1.0.0.
Object to store the information (location and ID) about a stand. Stores stand:
- ID number (id)
- Position relative to the center stake in meters (x,y,z)
Changed in version 1.0.0: Added the option to get the positions via subscripts.
Return a two-element tuple (freq in Hz, gain) for the frequency- dependent gain for a v1.7 FEE from LWA Memo #190, FEE0010, Figure 3.
New in version 1.0.1.
The object also as a functional attribute named ‘delay’ that computes the cable delay for a particular frequency or collection of frequencies in Hz.
Get the multiplicative factor needed to correct for the cable loss for a specific frequency (in Hz). If attenuations for more than one frequency are needed, the frequencies can be passed in as a numpy array.
Changed in version 1.0.0: Added the `dB’ keyword to allow dB to be returned.
Clear the clock offset of the cable model.
Get the delay associated with the cable in second (or nanoseconds if the ‘ns’ keyword is set to True) for a particular frequency or collection of frequencies in Hz.
Get the cable gain (“inverse loss”) for a specific frequency (in Hz). If gains for more than one frequency are needed, the frequencies can be passed in as a numpy array.
Changed in version 1.0.0: Added the `dB’ keyword to allow dB to be returned.
Return a two-element tuple (freq in Hz, attenuation) for the cable using the model from LWA Memo #170.
New in version 1.0.1.
Add a clock offset (in seconds) to the cable model.
The object also as a functional attribute named ‘delay’ that computes the cable delay for a particular frequency or collection of frequencies in Hz.
Changed in version 1.0.0: Added attributes to hold the ASP rack input and output connector labels.
Return a two-element tuple (freq in Hz, S21 magnitude in dB) for the ARX response for the current board/channel from the “ARX0026” memo on the “LWA Engineering Documents” wiki.
Changed in version 1.0.0: Add an option to specify whether the magnitude should be returned in dB or not.
Given a SSMIF file, return a fully-filled LWAStation instance. This function supports both human-readable files (filenames with ‘.txt’ extensions) or binary packed files (filenames with ‘.dat’ extensions).
LWAStation class to provide backward compatiability to the 20-stand prototype system.
Return the list of Antenna instances for the station, sorted by digitizer number, for a given DateTime instance.
Return a list of Cable instances for each antenna, sorted by digitizer number, for a given DateTime instance.
Return a list of polarization (0 == N-S; 1 == E-W) for each antenna, sorted by digitizer number, for a given DateTime instance.
Return a list of Stand instances for each antenna, sorted by digitizer number, for a given DateTime instance.
Module for reading in an interpreting binary-packed Station Dynamic MIB (SDM) files (as defined in MCS0031, v5).
Python object that holds the status for a particular subsystem in a SDM file.
Python object that holds the status for the sub-subsystems in a SDM file.
Python object that holds the various bits of information in a binary-packed Station Dynamic MIB file (SDM file).
Given a list of lsl.common.stations.Antenna instances, return a new list of Antenna instances with updated antenna status codes.
Given a filename, read the file’s contents into the SDM instance and return that instance.
This module stores various functions that are needed for computing UV coverage and time delays. The functions in the module:
- compute the u, v, and w coordinates of all baselines defined by an array of stands
- compute the track through the uv-plane of a collection of baselines as the Earth rotates.
Changed in version 0.4.0: Removed function for dealing with meta-data (position, cable length, etc.) for individual stands since these are wrapped in the new lsl.common.stations module.
Changed in version 1.0.0: Generalized the computeUVW() and computeUVTrack() functions.