wrapLon: Wrap Locations Around the Dateline.

View source: R/SGAT.R

wrapLonR Documentation

Wrap Locations Around the Dateline.

Description

These functions wrap and unwrap a sequence of longitudes around the dateline.

Usage

wrapLon(lon, lmin = -180)

unwrapLon(lon, lmin = -180)

Arguments

lon

a vector of longitudes

lmin

western boundary for wrapped longitudes

Details

The wrapLon function wraps the longitudes back into the interval [lmin,lmin+360). The unwrapLon function unwraps a sequence of longitudes so the the initial point lies in [lmin,lmin+360), but the subsequent longitudes in the sequence may wander outside that range.

Value

a vector of longitudes


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