return_array_geographic_rotation¶
- HSTB.kluster.modules.beampointingvector.return_array_geographic_rotation(maintx, mainrx)¶
Use the transmitter/receiver array orientations to build a rotation matrix between the geographic/array rel reference frame.
Returns rotation matrices at each time/beam, of shape (beam, rot_i, time, xyz)
<xarray.DataArray ‘getitem-82dd48467b1f4e8b4f56bbe5e841cc9f’ (beam: 182, rot_i: 3, time: 2, xyz: 3)>dask.array<transpose, shape=(182, 3, 2, 3), dtype=float64, chunksize=(182, 3, 2, 1), chunktype=numpy.ndarray>Coordinates:* rot_i (rot_i) int32 0 1 2* time (time) float64 1.496e+09 1.496e+09* beam (beam) int32 0 1 2 3 4 5 6 7 8 … 174 175 176 177 178 179 180 181* xyz (xyz) <U1 ‘x’ ‘y’ ‘z’- Parameters
maintx (
DataArray) – orientation vector for transmitter at time of transmit, 2dim of shape (time, xyz)mainrx (
DataArray) – orientation vector for receiver at time of receive, 2dim of shape (time, xyz)
- Returns
rotation matrices at each time/beam, of shape (beam, rot_i, time, xyz)
- Return type
xr.DataArray