BAIT: sun command

NAME

sun - calculates solar position

SYNOPSIS

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

DESCRIPTION

This program calculates the current position of the sun using the `low precision' formula published in the Astronomical Almanac. It also has a flag to calculate the time to reach a given altitude.

The output contains a line like.

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

Where the first two fields are the RA and Dec, the next is the coordinate epoch and the last is the number of degrees that the sun is above the horizon.

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.

[help] - displays options.

[civil] - changes the time display of rising and setting from Universal time to local civil time (as set by the TZ environment).

[noelev] - disables the correction of the time of setting for the effects of refraction, the fact that the sun has finite diameter and for the elevation of the observatory (taken from OBSELEV in ait.config ).