geo2sph: Convert geographic to spherical coordinates
Description
Convert latitude (lat) and longitude (lon) to spherical
coordinates (theta, phi) with theta in \([0,pi]\) and
phi in \([0,2*pi)\). All values lat, lon, theta, phi
are assumed to be in radians.
Usage
geo2sph(...)
Arguments
...
A data.frame with columns lat and lon,
or named vectors of lat and lon.