sl.lonlat2D.c2i: Convert Curvilinear Lon-Lat Grid Center Locations to...

sl.lonlat2D.c2iR Documentation

Convert Curvilinear Lon-Lat Grid Center Locations to Interface Locations

Description

Convert matrices of center longitudes and latitudes to corresponding matrices of interface coordinates, that is, the bounding longitudes and latitudes.

Usage

sl.lonlat2D.c2i(lon.c, lat.c, extrapol.factor = 0.5)

Arguments

lon.c

an NrowxNcol matrix with center longitudes of a curvilinear grid.

lat.c

an NrowxNcol matrix with center latitudes of a curvilinear grid.

extrapol.factor

a scalar specifiying how far the outer boundaries are extrapolated from the outermost centre locations. Default is extrapol.factor=0.5, meaning that the distance from the outermost centre locations to the outermost interface locations is 0.5 times the distance between adjacent centre locations.

Value

lon.i

an Nrow+1xNcol+1 matrix with interface longitudes of a curvilinear grid.

lat.i

an Nrow+1xNcol+1 matrix with interface latitudes of a curvilinear grid.

Author(s)

Helge Goessling

See Also

sl.plot.fld.curvilin

Examples

## To be provided ...

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