Next / Previous / Contents / Shipman's homepage

5. Constants

These constants are exported by the sidereal.py module.

FIRST_GREGORIAN_YEAR

The year when the Gregorian calendar took over from the flawed Julian calendar: 1583.

PI_OVER_180

The value of (π/180). Multiply degrees by this value to get radians.

TWO_PI

The value of (2π). Used for normalizing angles.

PI_OVER_12

The value of (π/12). Multiply hours by this value to get radians.

JULIAN_BIAS

A constant amount removed from Julian dates for internal storage, to allow for more precision in times of day. For a discussion, see Section 9, “class JulianDate: Julian date and time”.