@spiceErrorCheck<EOL>def vnormg(v, ndim):
v = stypes.toDoubleVector(v)<EOL>ndim = ctypes.c_int(ndim)<EOL>return libspice.vnormg_c(v, ndim)<EOL>
Compute the magnitude of a double precision vector of arbitrary dimension.

http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/vnormg_c.html

:param v: Vector whose magnitude is to be found. 
:type v: Array of floats
:param ndim: Dimension of v 
:type ndim: int
:return: magnitude of v calculated in a numerically stable way
:rtype: float