NovasTer2Cel Method
This function rotates a vector from the terrestrial to the celestial system.
Namespace: ASCOM.Tools.Novas31Assembly: ASCOM.AstrometryTools (in ASCOM.AstrometryTools.dll) Version: 3.0.0-rc.1+86c25ce733aebb4d8b1b8a62e84770ea5e972bea
public static short Ter2Cel(
double JdHigh,
double JdLow,
double DeltaT,
Method Method,
Accuracy Accuracy,
OutputVectorOption OutputOption,
double xp,
double yp,
double[] VecT,
ref double[] VecC
)
Public Shared Function Ter2Cel (
JdHigh As Double,
JdLow As Double,
DeltaT As Double,
Method As Method,
Accuracy As Accuracy,
OutputOption As OutputVectorOption,
xp As Double,
yp As Double,
VecT As Double(),
ByRef VecC As Double()
) As Short
- JdHigh Double
- High-order part of UT1 Julian date.
- JdLow Double
- Low-order part of UT1 Julian date.
- DeltaT Double
- Value of Delta T (= TT - UT1) at the input UT1 Julian date.
- Method Method
- Selection for method: 0 ... CIO-based method; 1 ... equinox-based method
- Accuracy Accuracy
- Selection for accuracy
- OutputOption OutputVectorOption
- 0 ... The output vector is referred to GCRS axes; 1 ... The output
vector is produced with respect to the equator and equinox of date.
- xp Double
- Conventionally-defined X coordinate of celestial intermediate pole with respect to
ITRF pole, in arcseconds.
- yp Double
- Conventionally-defined Y coordinate of celestial intermediate pole with respect to
ITRF pole, in arcseconds.
- VecT Double
- Position vector, geocentric equatorial rectangular coordinates, referred to ITRF
axes (terrestrial system) in the normal case where 'option' = 0.
- VecC Double
- Position vector, geocentric equatorial rectangular coordinates, referred to GCRS
axes (celestial system) or with respect to the equator and equinox of date, depending on 'Option'.
Int16
0 ... everything is OK
1 ... invalid value of 'Accuracy'
2 ... invalid value of 'Method'
> 10 ... 10 + error from function 'CioLocation'
> 20 ... 20 + error from function 'CioBasis'
'x' = 'y' = 0 means no polar motion transformation.
The 'option' flag only works for the equinox-based method.
Supported in: 2.0