bfieldtools.sphtools.spherical2cartesian

bfieldtools.sphtools.spherical2cartesian(sp)

Maps spherical coordinates to cartesian.

Parameters
sp: Nx3 array

spherical coordinates [r, theta, phi]

Returns
p: Nx3 array

cartesian croodinates