Convert points in 3D cartesian space to locations of points on sphere in 'wedge' coordinates (psi, f). Wedges are defined by planes inclined at an angle psi running through a line between poles on the rim above the x axis. f is the fractional distance along the circle defined by the intersection of this plane and the curtailed sphere.
sphere.cart.to.sphere.wedge(P, phi0, R = 1)
locations of points on sphere as N-by-3 matrix with labelled columns "X", "Y" and "Z"
rim angle as colatitude
radius of sphere
2-column Matrix of 'wedge' coordinates of points on
sphere. Column names are phi
and lambda
.