Click or drag to resize
SOFATf2a Method
Convert hours, minutes, seconds to radians.

Namespace: ASCOM.Astrometry.SOFA
Assembly: ASCOM.Astrometry (in ASCOM.Astrometry.dll) Version: 6.0.0.0 (6.3.0.2839)
Syntax
public int Tf2a(
	string s,
	int ihour,
	int imin,
	double sec,
	ref double rad
)

Parameters

s
Type: SystemString
sign: '-' = negative, otherwise positive
ihour
Type: SystemInt32
Hours
imin
Type: SystemInt32
Minutes
sec
Type: SystemDouble
Seconds
rad
Type: SystemDouble
Angle in radians

Return Value

Type: Int32
Status: 0 = OK, 1 = ihour outside range 0-23, 2 = imin outside range 0-59, 3 = sec outside range 0-59.999...
Remarks
Notes:
  1. The result is computed even if any of the range checks fail.
  2. Negative ihour, imin and/or sec produce a warning status, but the absolute value is used in the conversion.
  3. If there are multiple errors, the status value reflects only the first, the smallest taking precedence.
See Also