BAIT: moon command

NAME

moon - calculates lunar position

SYNOPSIS

moon [rise=#] [set=#] [ut=hh:mm:ss] [date=dd/mm/yyyy] [civil] [geocentric] [verbose] [noelev]

DESCRIPTION

This program calculates the current topocentric position of the moon using a subset of Browns formulation (Brown, Ernest, W. Tables of the Motion of the Moon Yale Univ. Press 1919) as selected by Jerome Hudson. The rms error compared to positions found the Astronomical Almanac for 1990 appears to be on the order of .01 degree. This method is about ten times more accurate than the low precision formula quoted in the blue book. Unless the geocentric option is used the the position is corrected for lunar parallax; this term can be up to one degree.

The output contains a line like.

22:37:49.4 -08:39:03 1991.2 40.9 23.3

Where the first two fields are the RA and Dec, the next is the coordinate equinox (read from the system clock), the fourth is the number of degrees that the moon is above the horizon and the last is the number of days since new moon.

The program can also calculate the Universal time at which the moon reaches a given altitude. In this mode of operation, the output will be a single field in hh:mm:ss format. No corrections for refraction are made.

The HOME_DIR environment variable must be set to point to the directory in which the file ait.config in order to determine the observatory latitude and longitude.

OPTIONS

rise=# - calculates Universal time when the moon's altitude rises to # degrees above the horizon.

set=# - calculates Universal time when the moon's altitude is # degrees above the horizon as it is setting.

ut=hh:mm:ss - uses the universal time specified instead of right now.

date=dd/mm/yyyy - uses the universal date specified instead of today. Note: the ut will be from the system clock if not overridden by the ut option. civil - changes the time display of rising and setting from Universal time to local civil time (as set by the TZ environment).

geocentric - computes the geocentric apparent position rather than the topocentric value.

[noelev] - doesn't correct the time of setting for the effects of refraction, the fact that the moon has finite diameter and for the elevation of the observatory (taken from OBSELEV in ait.config

SEE ALSO

ait.config, sun