Click or drag to resize

SOFAPv2s Method

Convert position/velocity from Cartesian to spherical coordinates.

Namespace: ASCOM.Astrometry.SOFA
Assembly: ASCOM.Astrometry (in ASCOM.Astrometry.dll) Version: 6.0.0.0 (6.6.9999.9999)
Syntax
public void Pv2s(
	double[,] pv,
	ref double theta,
	ref double phi,
	ref double r,
	ref double td,
	ref double pd,
	ref double rd
)

Parameters

pv  Double
pv-vector
theta  Double
Longitude angle (radians)
phi  Double
Latitude angle (radians)
r  Double
Radial distance
td  Double
Rate of change of theta
pd  Double
Rate of change of phi
rd  Double
Rate of change of r
Remarks
Note
  1. If the position part of pv is null, theta, phi, td and pd are indeterminate. This Is handled by extrapolating the position through unit time by using the velocity part of pv. This moves the origin without changing the direction of the velocity component. If the position And velocity components of pv are both null, zeroes are returned for all six results.
  2. If the position is a pole, theta, td and pd are indeterminate. In such cases zeroes are returned for all three.
See Also