| projection {ssBase} | R Documentation |
Transforms Spherical Coordinates to Cartesian
Description
Transforms spherical coordinates to Cartesian and rotates. Have
spherical coordinates (rho,
phi,theta). rho (rho) is the radius,
theta (theta can be thought of as the longitude and
phi (phi) the latitude. The resultant coordinates
(x,y,z) are rotated such that the point with longitude
alpha (α) and latitude beta (β) becomes
the new north pole. Thus a plot of the new x*y plane is
Azimuths projection, centered at the new reference point.
Usage
projection(rho, phi, theta, alpha, beta)
Arguments
rho |
a vector with the radius component of the original spherical coordinates for each point.
|
phi |
a vector with the latitude component of the original spherical coordinates for each point.
|
theta |
a vector with the longitude component of the original spherical coordinates for each point.
|
alpha |
a scalar giving the longitude of the centre of the new hemisphere (pole).
|
beta |
a scalar giving the latitude of the centre of the new hemisphere (pole).
|
Value
A list object containing the following vectors of the same length:
x |
the x component of the new Cartesian coordinates.
|
y |
the y component of the new Cartesian coordinates.
|
z |
the z component of the new Cartesian coordinates.
|
See Also
hemisphere
[Package
ssBase version 2.2-1
Index]