- qspec. orthonormal_rtp ( r , axis=-1 )[source]
-
The orthonormal system $(\hat{e}_r, \hat{e}_\theta, \hat{e}_\phi)$, see
e_r, with $\hat{e}_r$ pointing in the direction ofr.- Parameters:
-
- rarray_like
The first vector of the orthonormal system. Does not have to be normalized.
- axisint
The axis along which the vector components are aligned.
- Returns:
- Raises:
-
- ValueError
If
rdoes not have 3 components along the specifiedaxis.