af2a

erfa.af2a(s, ideg, iamin, asec)[source]

Convert degrees, arcminutes, arcseconds to radians.

Parameters
schar array
idegint array
iaminint array
asecdouble array
Returns
raddouble array

Notes

Wraps ERFA function eraAf2a. The ERFA documentation is:

- - - - - - - -
 e r a A f 2 a
- - - - - - - -

Convert degrees, arcminutes, arcseconds to radians.

Given:
   s         char    sign:  '-' = negative, otherwise positive
   ideg      int     degrees
   iamin     int     arcminutes
   asec      double  arcseconds

Returned:
   rad       double  angle in radians

Returned (function value):
             int     status:  0 = OK
                              1 = ideg outside range 0-359
                              2 = iamin outside range 0-59
                              3 = asec outside range 0-59.999...

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.

Copyright (C) 2013-2020, NumFOCUS Foundation.
Derived, with permission, from the SOFA library.  See notes at end of file.