Description Usage Arguments Value Note Author(s) References Examples
View source: R/CAACoordinateTransformation_DMSToDegrees.R
CAACoordinateTransformation_DMSToDegrees
1 | CAACoordinateTransformation_DMSToDegrees(Degrees, Minutes, Seconds, bPositive)
|
Degrees |
Degrees The degree part of the angular value to convert. |
Minutes |
Minutes The minute part of the angular value to convert. |
Seconds |
Seconds The second part of the angular value to convert. |
bPositive |
bPositive true if the input value corresponds to a non-negative value with false implying the value is positive |
Returns the value in degrees which was converted from degrees, minutes and seconds.
To convert the angle 21D 44' 07" you would use DMSToDegrees(21, 44, 7, true).
To convert the angle -12D 47' 22" you would use DMSToDegrees(12, 47, 22, false) or DMSToDegrees(-12, -47, -22, true).
To convert the angle -0D 32' 41" you must use DMSToDegrees(0, 32, 41, false).
C++ code by PJ Naughter, imported to R by Jinlong Zhang
Meeus, J. H. (1991). Astronomical algorithms. Willmann-Bell, Incorporated.
1 | CAACoordinateTransformation_DMSToDegrees(Degrees = 30, Minutes = 23, Seconds = 46, bPositive = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.