moonphase {skyscapeR} | R Documentation |
Computes the phase of the moon
Description
This function calculates the moon phase, in percentage of full. It is a wrapper
for function swe_pheno_ut
of package swephR.
Usage
moonphase(time, timezone, calendar)
Arguments
time |
Either a string containing the date and time in the format "YYYY-MM-DD HH:MM:SS"
(see |
timezone |
(Optional) Timezone of input either as a known acronym (e.g. "GMT", "CET") or a string with continent followed by country capital (e.g. "Europe/London"). See timezones for details. Only needed if time is a string. Defaults to system timezone. |
calendar |
(Optional) Calendar used in parameter time. G for gregorian and J for julian. Only needed if time is a string. Defaults to Gregorian. |
See Also
Examples
# Moonphase at noon GMT on Christmas day 2018:
moonphase('2018/12/25 12:00:00', 'GMT')
[Package skyscapeR version 1.0.0 Index]