Learn R Programming

astroFns (version 4.2-1)

gmst1: GMST1 (Greenwich Mean Siderial Time at 0h, UT1) from UT1 date

Description

Calculate Greenwich Mean Siderial Time at 0h, UT1 (GMST1) from UT1 year, month, and day.

Usage

gmst1(yr = 2012, mo = 1, dy = 1)

Arguments

yr

UT1 year (integer)

mo

UT1 month (integer)

dy

UT1 day (integer)

Value

Returns fractional hours of GMST1 with class fracHrs. The corresponding print method gives hh:mm:ss format rounded to n decimal places in seconds by setting options('digits.secs'=n).

Details

Function calculates Greenwich Mean Siderial Time at 0h, UT1 (GMST1) given UT1 year, month, and day.

References

Explanatory Supplement to the Astronomical Almanac Seidelmann (ed), c. 1992

See Also

ymd2jd

Examples

Run this code
# NOT RUN {
  out <- gmst1(yr=2012, mo=7, dy=8)
  str(out)
  out
# }

Run the code above in your browser using DataLab