[rv, rad] = ERFA.af2a(s, ideg, iamin, asec)
Convert degrees, arcminutes, arcseconds to radians.
s char sign: '-' = negative, otherwise positive
ideg int degrees
iamin int arcminutes
asec double arcseconds
rad double angle in radians
int status: 0 = OK
1 = ideg outside range 0-359
2 = iamin outside range 0-59
3 = asec outside range 0-59.999...
-
The result is computed even if any of the range checks fail.
-
Negative ideg, iamin and/or asec produce a warning status, but the absolute value is used in the conversion.
-
If there are multiple errors, the status value reflects only the first, the smallest taking precedence.
This revision: 2021 May 11
Copyright (C) 2013-2021, NumFOCUS Foundation. Derived, with permission, from the SOFA library.