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

sl.lat1D.c2iR Documentation

Convert Center Latitudes to Interface Latitudes

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

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

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

FESOM/spheRlab documentation built on April 6, 2024, 6:52 p.m.