array_processing.algorithms.helpers module

array_processing.algorithms.helpers.compass2rij(distances, azimuths)[source]

Convert tape-and-compass survey data to Cartesian \(x\)\(y\) coordinates.

The output type is the same as the getrij() function. Note that typically, distances and azimuths will be surveyed from one of the array elements. In this case, that array element will have distance 0 and azimuth 0. However, this function can handle an arbitrary reference point for the distances and azimuths. This function assumes that all array elements lie on the same plane.

Parameters:
  • distances (array) – Distances to each array element, in meters

  • azimuths (array) – Azimuths to each array element, in degrees from true north

Returns:

numpy.ndarray with the first row corresponding to Cartesian \(x\)-coordinates and the second row corresponding to Cartesian \(y\)-coordinates, in units of km

array_processing.algorithms.helpers.getrij(latlist, lonlist)[source]

Calculate rij from lat-lon. Returns the projected geographic positions in \(x\)\(y\) with zero-mean. Typically used for array locations.

Parameters:
  • latlist (list) – List of latitude points

  • lonlist (list) – List of longitude points

Returns:

numpy.ndarray with the first row corresponding to Cartesian \(x\)-coordinates and the second row corresponding to Cartesian \(y\)-coordinates, in units of km