almanac - Generate almanac data for a given location
almanac # The White House by default almanac sun venus mars # Only these bodies almanac -latitude 52.07 -longitude 4.29 -height 4 # The Hague almanac -help almanac -version
This option specifies the date as a string that can be parsed by Date::Manip. If Date::Manip can not be loaded an error occurs. If this option is specified, -tomorrow is ignored.
-tomorrow
This option specifies the strftime format used to display dates and times.
strftime
The default is -format '%d-%b-%Y %H:%M:%S %Z'.
-format '%d-%b-%Y %H:%M:%S %Z'
If asserted, this Boolean option attempts to display the time in GMT. All that it really does is
local $ENV{TZ} = 'GMT';
which may or may not have the desired effect.
The default is -nogmt.
-nogmt
This option displays the documentation for this script. The script then exits.
This option specifies the latitude of the observer north of the Equator, in degrees.
The default is latitude 38.898748.
latitude 38.898748
This option specifies the longitude of the observer east of Greenwich, in degrees. West longitudes are negative.
The default is longitude -77.037684
longitude -77.037684
This Boolean option causes the date to be tomorrow rather than today. It is ignored if -date is specified.
-date
The default is -notomorrow.
-notomorrow
This option displays the version of this script. The script then exits.
This Perl script displays today's solar and planetary almanac for the position given on the command line, in latitude north of the Equator, longitude east of the prime meridian, and meters above sea level. If no position is given on the command line, the contents of environment variable ALMANAC_POSITION are broken on spaces and used as the posiiton. If this environment variable is not found, the position of the White House in Washington DC USA is used.
ALMANAC_POSITION
You can look a day ahead by specifying -tomorrow.
Note that unless -gmt is asserted, displayed times are local to the system executing the script, not to the location specified by the -latitude and -longitude options.
-gmt
-latitude
-longitude
The operation of this script is affected by the following environment variables:
This environment variable contains option names and values. These are parsed out using Text::QuoteWords::shellwords().
Text::QuoteWords::shellwords()
Option names must be specified in full, without leading dashes.
Option values must be separate tokens, and may not be specified with name=value syntax.
name=value
Boolean options must be specified with a value of 1 (true) or 0 (false).
1
0
For example, the value
format '%Y-%m-%d %H:%M:%S' gmt 1
is equivalent to specifying
-format '%Y-%m-%d %H:%M:%S' -gmt
on the command line.
Thomas R. Wyant, III wyant at cpan dot org
Copyright (C) 2012-2019 by Thomas R. Wyant, III
This program is free software; you can redistribute it and/or modify it under the same terms as Perl 5.10.0. For more details, see the full text of the licenses in the directory LICENSES.
This program is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose.
To install Astro::Coord::ECI::VSOP87D, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Astro::Coord::ECI::VSOP87D
CPAN shell
perl -MCPAN -e shell install Astro::Coord::ECI::VSOP87D
For more information on module installation, please visit the detailed CPAN module installation guide.