moonphase: Computes the phase of the moon

Description Usage Arguments See Also Examples

View source: R/mechanics.R

Description

This function calculates the moon phase, in percentage of full. It is a wrapper for function swe_pheno_ut of package swephR.

Usage

1
moonphase(time, timezone, calendar)

Arguments

time

Either a string containing the date and time in the format "YYYY-MM-DD HH:MM:SS" (see timestring), or a numeric containing the julian date (see time2jd).

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

swe_pheno_ut

Examples

1
2
# Moonphase at noon GMT on Christmas day 2018:
moonphase('2018/12/25 12:00:00', 'GMT')

skyscapeR documentation built on Oct. 30, 2021, 1:06 a.m.