CAACoordinateTransformation_DMSToDegrees: CAACoordinateTransformation_DMSToDegrees

Description Usage Arguments Value Note Author(s) References Examples

View source: R/CAACoordinateTransformation_DMSToDegrees.R

Description

CAACoordinateTransformation_DMSToDegrees

Usage

1
CAACoordinateTransformation_DMSToDegrees(Degrees, Minutes, Seconds, bPositive)

Arguments

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

Value

Returns the value in degrees which was converted from degrees, minutes and seconds.

Note

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).

Author(s)

C++ code by PJ Naughter, imported to R by Jinlong Zhang

References

Meeus, J. H. (1991). Astronomical algorithms. Willmann-Bell, Incorporated.

Examples

1
CAACoordinateTransformation_DMSToDegrees(Degrees = 30, Minutes = 23, Seconds = 46, bPositive = TRUE)

helixcn/skycalc documentation built on March 31, 2021, 5:45 a.m.