geoana.spatial.repeat_scalar#
- geoana.spatial.repeat_scalar(scalar, dim=3)#
Stack spatially distributed scalar values to simplify multiplication with a vector.
Where the input argument scalar defines a set of n spatially distributed scalar values,
repeat_scalar
repeats and stacks the input array to produce an (n, dim) array which is better for multiplying the scalar values with vector arrays.- Parameters:
- scalar(n) numpy.ndarray
The set of scalar values
- dimint, optional
The dimension. Default=3
- Returns:
- (n, dim) numpy.ndarray
The repeated and stacked set of scalar values