@spiceErrorCheck<EOL>def vhatg(v1, ndim):
v1 = stypes.toDoubleVector(v1)<EOL>vout = stypes.emptyDoubleVector(ndim)<EOL>ndim = ctypes.c_int(ndim)<EOL>libspice.vhatg_c(v1, ndim, vout)<EOL>return stypes.cVectorToPython(vout)<EOL>
Find the unit vector along a double precision vector of arbitrary dimension.

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

:param v1: Vector to be normalized. 
:type v1: list[ndim]
:param ndim: Dimension of v1 (and also vout). 
:type ndim: int
:return: Unit vector v / abs(v).
:rtype: list[ndim]