Click or drag to resize
SOFAAf2a Method
Convert degrees, arcminutes, arcseconds 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 Af2a(
	string s,
	int ideg,
	int iamin,
	double asec,
	ref double rad
)

Parameters

s
Type: SystemString
Sign: '-' = negative, otherwise positive
ideg
Type: SystemInt32
Degrees
iamin
Type: SystemInt32
Arcminutes
asec
Type: SystemDouble
Arcseconds
rad
Type: SystemDouble
Angle in radian

Return Value

Type: Int32
Status: 0 = OK, 1 = ideg outside range 0-359, 2 = iamin outside range 0-59, 3 = asec outside range 0-59.999...
Remarks
Notes:
  1. The result is computed even if any of the range checks fail.
  2. Negative ideg, iamin and/or asec 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