sl.lon1D.c2i: Convert Center Longitudes to Interface Longitudes

Description Usage Arguments Details Value Author(s) Examples

View source: R/sl.lon1D.c2i.R

Description

Convert a vector of center longitudes to a vector of interface longitudes, that is, longitudes between the center longitudes and 'extrapolated' boundary longitudes. It is ensured that the extrapolated values do not increase the range beyond 360 degree (see comment below in 'Details').

Usage

1
sl.lon1D.c2i(lon.c)

Arguments

lon.c

a vector of length N with center longitudes in increasing or decreasing order.

Details

THE CHECK OF EXTRAPOLATED VALUES NEEDS OPTIMIZATION (CURRENTLY ONLY GOOD FOR 'SMALL ADJUSTMENTS')!

Value

A vector of length N+1 with interface longitudes in increasing or decreasing order.

Author(s)

Helge Goessling

Examples

1
2
sl.lon1D.c2i(c(-100,-50,0,50))
## [1] -125  -75  -25   25   75

helgegoessling/spheRlab documentation built on Sept. 29, 2017, 6:36 a.m.