parse_stack_mesh#
- parse_stack_mesh(r, t, p)[source]#
Validate that three coordinate arrays share an identical shape.
Used by
StackMeshMixinmethods to confirm thatr,t,pdescribe a single set of \(N\)-D points (rather than independent 1-D axes).- Parameters:
- r
np.ndarray Radial coordinate array.
- t
np.ndarray Colatitude coordinate array.
- p
np.ndarray Longitude coordinate array.
- r
- Returns:
- out
tuple[np.ndarray,np.ndarray,np.ndarray] The input arrays unchanged as a 3-tuple
(r, t, p).
- out
- Raises:
ValueErrorIf
r,t, andpdo not all have the same shape.