twilightPairs: Extract sunrise/sunset pairs

View source: R/SGAT.R

twilightPairsR Documentation

Extract sunrise/sunset pairs

Description

Convert streams of twilights to sunrise/sunset pairs

Usage

twilightPairs(twilight, rise)

Arguments

twilight

the observed times of twilight as POSIXct.

rise

logical vector indicating which twilights are sunrise.

Details

This function converts the twilight, rise format used by Stella and Estelle into successive sunrise and sunset pairs.

Value

A dataframe with columns

Twilight1

times of earlier twilight as POSIXct objects

Twilight2

times of later twilight as POSIXct objects

Day

logical vector indicating whether the twilights span a day.

Mid

the midpont of the two twilights.


SWotherspoon/SGAT documentation built on June 1, 2022, 10:49 p.m.