xarray_parmod

PlasmaCalcs.tools.xarray_tools.xarray_vectors.xarray_parmod(A, B, *, signed=False)

return the magnitude of the component of A parallel to B. Equivalent: |(A dot Bhat) Bhat|

signed: bool; whether to return signed result instead, i.e. (A dot Bhat), without taking abs.