moonphase: Computes the phase of the moon

View source: R/mechanics.R

moonphaseR 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 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

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

f-silva-archaeo/skyscapeR documentation built on Sept. 24, 2023, 8:14 p.m.