solarspatialtools.spatial.magnitude

solarspatialtools.spatial.magnitude(vec)

Get the magnitude of a vector

Parameters

vecnumeric

the 2-D cartesian vector as an (x, y) indexable

Returns

magnitudenumeric

the magnitude of the vector