CampbellSunriseSunset: Calculate sunrise and sunset times based on location and date...

View source: R/CampbellSunriseSunset.R

CampbellSunriseSunsetR Documentation

Calculate sunrise and sunset times based on location and date for Campell *.dat files

Description

Calculates sunrise and sunset for each unique day from the TIMESTAMP information of the logger file. Uses function sunriseset from package maptools

Usage

CampbellSunriseSunset(data, location = Agface.loc, DayLightSaving = FALSE)

Arguments

data

Data frame with a TIMESTAMP entry

location

Location of the measurement for which to calculate sunrise and sunset. Given in matrix format containing x and y coordinates. Defaults to Agface.loc.

DayLightSaving

Logical. If TRUE one hour is subtracted from the calculated sunrise and sunset times.

Value

Returns a data frame with Date and sunrise/sunset information for each TIMESTAMP.


MarkusLoew/CampbellLogger documentation built on March 22, 2022, 3:29 a.m.