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.

scalar(n) numpy.ndarray

The set of scalar values

dimint, optional

The dimension. Default=3

(n, dim) numpy.ndarray

The repeated and stacked set of scalar values