mkCalibration function

Create calibration of solar elevation to measured light level.

Create calibration of solar elevation to measured light level.

Using a set of light level data from a known location create a calibration function to return the expected light level given solar elevation.

mkCalibration(x, known = NULL, elim = c(-36, 12), choose = TRUE)

Arguments

  • x: a data frame containing at least gmt and light
  • known: a known position - as a 2-element c(x, y) coordinate
  • elim: a 2-element vector of the range of solar elevation to define
  • choose: logical - choose segments from a plot or use all the data?

Details

It is assumed that the data frame x has columns "gmt" with POSIXct date-times and "light" with numeric light level data.

Returns

A function, defined by approxfun.

Author(s)

Michael D. Sumner

See Also

approxfun

  • Maintainer: Michael D. Sumner
  • License: GPL-3
  • Last published: 2023-04-21