metadata module

Helper functions to parse sources of truth metadata from telmodel.

aiv_utils.metadata.get_antenna_locations(station)

Return the antenna locations for a given station.

Parameters:

station (str | DeviceProxy) – The station name (eg. “s10-3”, “s8-1”) or an SpsStation DeviceProxy.

Return type:

ndarray

Returns:

A numpy array of antenna locations in meters from the centre of the station where the columns are east, north and up.

aiv_utils.metadata.get_station_antenna_dataframe(station)

Fetch a DataFrame of all antenna information which can be useful for debugging.

Parameters:

station (str | DeviceProxy) – The station name (eg. “s10-3”, “s8-1”) or an SpsStation DeviceProxy.

Return type:

DataFrame

Returns:

a pandas DataFrame with all the antenna information

aiv_utils.metadata.get_station_location(station)

Return the station location (lat, long and elevation) for a given station.

Parameters:

station (str | DeviceProxy) – The station name (eg. “s10-3”, “s8-1”) or an SpsStation DeviceProxy.

Return type:

tuple

Returns:

a tuple of the station location (latitude, longitude and elevation in degrees, degrees and meters)

aiv_utils.metadata.get_station_rotation(station)

Return the station rotation for a given station.

Parameters:

station (str | DeviceProxy) – The station name (eg. “s10-3”, “s8-1”) or an SpsStation DeviceProxy.

Return type:

float

Returns:

the station rotation in degrees

aiv_utils.metadata.get_station_static_delays(station)

Fetch platform spec file for given station and return static delays per TPM.

Parameters:

station (str | DeviceProxy) – The station name (eg. “s10-3”, “s8-1”) or an SpsStation DeviceProxy.

Return type:

list[list[int]]

Returns:

a list of lists of sixteen integers representing the static delays for each of the antennas for a TPM, ordered by ADC pair index.