module Predict

Defined in:

predict.cr
predict/constants.cr
predict/coordinates.cr
predict/ext.cr
predict/satellite.cr
predict/tle.cr

Constant Summary

DEG2RAD = PI / 180.0
J2000 = 2451545.0

Julian date of the J2000 epoch (January 1 2000 12:00 GMT)

JULIAN_CENTURY_DAYS = 36525.0

Length of a Julian century in days

MINS_PER_DAY = 1440.0

Time constants

PI = Math::PI

Mathematical constants

REDUCED_JD_EPOCH = Time.new(1858, 11, 16, 12, 0, 0, kind: Time::Kind::Utc)
REDUCED_JD_OFFSET = 2400000
SECONDS_PER_DAY = 86400.0
TWO_PI = PI * 2
TWO_THIRDS = 2.0 / 3.0
VERSION = "0.1.2"
XPDOTP = MINS_PER_DAY / TWO_PI

WTF constants

Class Method Summary

Class Method Detail

def self.greenwich_sidereal_time(time : Time) #

Convert time to greenwich sidereal time in radians.


[View source]
def self.greenwich_sidereal_time(julian_date : Float64) #

Convert julian_date to greenwich sidereal time in radians.


[View source]
def self.julian_date(time) #

Converts a crystal Time to a Julian date.


[View source]