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

sl.lon1D.c2iR Documentation

Convert Center Longitudes to Interface Longitudes

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

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

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

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