coord: Geolocation Estimation by the Threshold Method

View source: R/SGAT.R

coordR Documentation

Geolocation Estimation by the Threshold Method

Description

Estimate location from two consecutive twilights by a threshold method

Usage

coord(tFirst, tSecond, type, degElevation = -6)

Arguments

tFirst

factor or character vector representing the times of the first twilight in the format "Y-m-d H:M:S".

tSecond

factor or character vector representing the times of the second twilight in the format "Y-m-d H:M:S".

type

vector with elements 1 or 2, defining the elements of tFirst as sunrise or sunset respectively.

degElevation

sun elevation angle (90-zenith).

Details

This package and the GeoLight package provide some common functionality, but are based on different astronomical approximations. This function provides a drop-in replacement for the coord function from the GeoLight package to allow easy comparison of the two systems.

Value

location estimates stored as a two column (lon,lat) matrix.


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