DCP_getZT: Title Calculate Zeitgeber Time

View source: R/DCP_getZT.R

DCP_getZTR Documentation

Title Calculate Zeitgeber Time

Description

Calculate Zeitgeber Time based on clock time based on local sunrise time.

Usage

DCP_getZT(t, lat, long, ZT.min = -6)

Arguments

t

Recorded time in POSIXlt format. Please make sure that the input time has the correct time zone.

lat

Local latitude corresponding to the recorded time.

long

Local longitude corresponding to the recorded time.

ZT.min

The mininum of output ZT. The default is -6, which corresponds to output range of (-6, 18).

Value

Zeitgeiber time corrected by local sunrise

Examples

t = as.POSIXlt("2022-09-17 13:43:00 EST", tz="America/New_York",usetz=TRUE)
lat = 40.4406; long = -79.9959 #This is the Pittsburgh coordinates
t.correct = DCP_getZT(t, lat, long, ZT.min = -6)

DiffCircaPipeline/Rpackage documentation built on March 17, 2023, 7:32 a.m.