sl.lat1D.c2i: Convert Center Latitudes to Interface Latitudes

Description Usage Arguments Value Author(s) Examples

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

Description

Convert a vector of center latitudes to a vector of interface latitudes, that is, latitudes between the center latitudes and 'extrapolated' boundary latitudes. It is ensured that the extrapolated values are within the valid range [-90,90].

Usage

1
sl.lat1D.c2i(lat.c)

Arguments

lat.c

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

Value

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

Author(s)

Helge Goessling

Examples

1
2
3
sl.lat1D.c2i(lat.c=c(70,76,82,88))
## Should return:
## [1] 67 73 79 85 90

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