SofaPvstar Method

Position-velocity vector to spherical polar coordinates.

Definition

Namespace: ASCOM.Tools
Assembly: ASCOM.AstrometryTools (in ASCOM.AstrometryTools.dll) Version: 3.0.0-rc.1+86c25ce733aebb4d8b1b8a62e84770ea5e972bea
C#
public static int Pvstar(
	double[] pv,
	ref double ra,
	ref double dec,
	ref double pmr,
	ref double pmd,
	ref double px,
	ref double rv
)

Parameters

pv  Double
Position-velocity vector (length 6).
ra  Double
Returned right ascension (radians).
dec  Double
Returned declination (radians).
pmr  Double
Returned proper motion in RA (radians/year).
pmd  Double
Returned proper motion in Dec (radians/year).
px  Double
Returned parallax (arcsec).
rv  Double
Returned radial velocity (km/s).

Return Value

Int32
Status code: 0 = OK, <0 indicates an error condition.

Exceptions

ArgumentNullExceptionThrown if any array parameter is null.
ArgumentExceptionThrown if any array parameter has incorrect length.

Version Information

.NET Standard

Supported in: 2.0

See Also