lunar.metric.mean: Average Lunar Metrics

View source: R/lunar.package.R

lunar.metric.meanR Documentation

Average Lunar Metrics

Description

Returns an average measurement around specified dates.

Usage

lunar.metric.mean(
  x,
  towards = -6,
  ...,
  by = c("date", "hours", "day", "night"),
  type = c("illumination", "distance")
)

Arguments

x

A vector of Date values.

towards

The directed window size from x in days. By default the window looks back 7 days including x.

...

Other optional arguments are ignored.

by

The exposure interval and integration basis. The default is to represent a day's illumination by the illumination at 12 noon UT. The other options integrate midrange illuminations over hours. Options 'day' and 'night' are not currently implemented, but will be used to limit exposure intervals. The use of an unimplemented option in a function call will result in a NULL value being returned.

type

Whether illumination or distance metrics are to be returned. The use of an unimplemented option in a function call will result in a NULL value being returned.

Details

This in an internal support function that integrates a lunar measurement over time using step sizes of days or hours.

See Also

lunar.illumination

lunar.distance

Examples

## Not run: 
lunar.metric.mean(as.Date("2004-03-24"), type="illumination")

## End(Not run)

lunar documentation built on June 13, 2022, 5:06 p.m.