Learn R Programming

oce (version 0.9-18)

siderealTime: Convert a POSIXt time to a sidereal time

Description

Convert a POSIXt time to a sidereal time

Usage

siderealTime(t)

Arguments

t
a time, in POSIXt format, e.g. as created by as.POSIXct, as.POSIXlt, or numberAsPOSIXct

Value

  • A sidereal time, in hours in the range from 0 to 24.

Details

The method is taken from Chapter 7 of Meeus (1982). The small correction that he discusses after his equation 7.1 is not applied here.

References

Meeus, Jean, 1982. Astronomical formuae for Calculators. Willmann-Bell. Richmond VA, USA. 201 pages

Examples

Run this code
t <- ISOdatetime(1978, 11, 13, 0, 0, 0, tz="UTC")
print(siderealTime(t))

Run the code above in your browser using DataLab