Convert latitude (rad), longitude (rad), elevation (m) to earth- centered, earth-fixed coordinates.
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, lon)
- Elevation in meters (elev)
- List of Antenna instances (antennas)
LWAStation also 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
- getECEFTransform: Return a 3x3 tranformation matrix to convert antenna positions to EC-EF coordinates
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 [east, north, elevation] to earh-centered, earth-fixed coordinates for that baseline [x, y, z]. Based off the ‘local_to_eci’ function in the lwda_fits-dev library.
Return a tuple with earth-centered, earth-fixed coordinates for the station.
Return a ephem.Observer object for this site.
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.
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.
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)
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.
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.
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.
Return a two-element tuple (freq in Hz, S21 magnitude in dB) for the ARX response for the current board/channel.
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.