xyz2latlon: Convert back and forth between latitude/longitude and XYZ-space
Description
Convert back and forth between latitude/longitude and XYZ-space
Usage
xyz2latlon(x, y, z)
latlon2xyz(latitude, longitude)
lonlat2xyz(longitude, latitude)
Arguments
x, y, z
numeric vectors
latitude, longitude
vectors of latitude and longitude values
Value
a matrix each row of which describes the latitudes and longitudesa matrix each row of which contains the x, y, and z coordinates of a point on a unit sphere