Astro::Montenbruck::Helpers - Helper functions for scripts.
Version 1.00
Helper functions for scripts, mainly string related.
"parse_geocoords(l => number, m => number)"
"dmsz_str($x, decimal => boolean)"
"dms_str($x)"
"dms_or_dec_str($x, decimal => boolean, places => N, sign => boolean)"
"hms_str($x, $decimal => boolean)"
"latde_str($h, $decimal => boolean)"
Parse geographical coordinates
l — longitude in degrees
m — latitude in degrees
List of formatted longitude and latitude, e.g: 037E35, 55N45.
037E35
55N45
Given ecliptic longitude $x, return string with Zodiac position: 12:30 Aqu or 312.50 Aqu depending on decimal option.
12:30 Aqu
312.50 Aqu
decimal — return decimal degrees instead of degrees and minutes.
Given ecliptic longitude $x, return string of formatted degrees, minutes and seconds, e.g.: 312:30:02.
312:30:02
Format ecliptic longitude $x.
decimal — return decimal degrees instead of degrees and minutes. Default is false
places — number of arc-degrees digits. If $x = 1, 3 gives 001, 2 gives 01, 1 gives 1. Default is 3
$x = 1
3
001
2
01
1
sign — if true, the number will be prefixed with + or -, depending on its sign. Default: false.
Format time value $x.
Format time value $h.
Format geographical latitude and longitude.
$lat — latitude, degrees, positive northward
$lat — longitude, degrees, positive westward
A string DD[N|S]MM, DDD[W|E]MM. For instance, latitude 55.75 and longitude -37.58 will be formatted to 55N45, 037E35.
DD[N|S]MM, DDD[W|E]MM
55N45, 037E35
You can find documentation for this module with the perldoc command.
perldoc Astro::Montenbruck::CoCo
Sergey Krushinsky, <krushi at cpan.org>
<krushi at cpan.org>
Copyright (C) 2009-2019 by Sergey Krushinsky
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Astro::Montenbruck, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Astro::Montenbruck
CPAN shell
perl -MCPAN -e shell install Astro::Montenbruck
For more information on module installation, please visit the detailed CPAN module installation guide.