View source: R/lunar.package.R
lunar.distance | R Documentation |
Returns the distance of the moon from the earth on specified dates.
lunar.distance(x, shift = 0, ..., name = FALSE, strict = FALSE)
x |
A vector of |
shift |
The number of hours by which to shift the distance calculation. By default distance is calculated at 12 noon UT. |
... |
Other optional arguments are ignored. |
name |
Optional parameter indicating whether the return is a factor variable consisting of a lunar distance label, or the lunar distance in earth radii. By default lunar phase is returned in earth radii. |
strict |
Optional parameter indicating whether the return should employ strict definitions for distance labels, that is, with apogee and perigee within 5 definition breaks the distance categories evenly into 20 The 'average' category is the same in both definitions. |
Distance to the moon is returned in units of earth radii, or as a 5-level factor variable referring to the moon's perigee (at about 56 earth radii) and apogee (at about 63.8 earth radii).
Adapted from Stephen R. Schmitt: Lunar Phase Computation: https://web.archive.org/web/20140716104947/http://mysite.verizon.net/res148h4j/zenosamples/zs_lunarphasecalc.html, Last accessed: 1 September 2014.
lunar.distances
lunar.distance(as.Date("2004-03-24"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.