get_times¶
- HSTB.kluster.modules.orientation.get_times(pingtime, additional)¶
Given ping time and beamwise time addition, return the time for each beam. Provides unique times, as by just adding ping time and twtt, you might end up with duplicate times. To get back to beamwise times, an index is provided that you can select by.
- Parameters
pingtime (
DataArray) – 1dim array of timestamps representing time of pingadditional (
DataArray) – 2dim (time/beam) array of timestamps representing additional delay
- Returns
tuple – tuple of numpy arrays, 2d indices of original rx_tstmp Dataarray, used to reconstruct array
np.array – 1d indices of time of receive that can be used to reconstruct non-unique timestamps
xr.DataArray – 1 dim array of timestamps for unique times of receive