moon

Astronomical Libraries

© 2013-2025, Markus Popp -- hosted at » GibHub «

Coordinates

Namespace: mpopp75\AstronomyLibs

Uses the following methods:

Enter coordinates in either float form (e.g. 19.59475) or text form (e.g. 19° 16' 32.6") and have it converted to its counterpart.

Set decimals for the float format (e.g. 3 decimals to get 19.595 for 19.59475) or for the arcsecond part of the text format (e.g. 3 decimals to get 19° 16' 32.629" for 19° 16' 32.629285").

For conversions from float to text you can set the format of the text representation, for example:

Input allows negative values for degrees, as well as directions N, S, E, W (S & W being converted to negative float values).

Float Coordinate Text Coordinate Format Decimals