sl.proj.mollweide: Mollweide Projection

sl.proj.mollweideR Documentation

Mollweide Projection

Description

Transform longitude/latitude coordinates according to approximated Mollweide projection (20th-order polynomial fit).

Usage

sl.proj.mollweide(lon, lat)

Arguments

lon

a scalar, vector, or array with N elements specifying the longitudes of the points.

lat

a scalar, vector, or array with N elements specifying the latitudes of the points.

Details

Since the original Mollweide projection requires implicit/iterative solving and can thus be expensive for large data sets, this function approximates the Mollweide projection by a 20th-order polynomial fit.

This function is intended mainly for internal use by the spheRlab base plotting functions (sl.plot.init(), sl.plot.lines(), etc.).

Value

a list with elements x and y providing the projected coordinates in the approximate ranges -180<x<180 and -90<y<90.

Author(s)

Helge Goessling

See Also

sl.plot.init

Examples

xy = sl.proj.mollweide(lon=seq(-180,180,30),lat=seq(-90,90,15))
plot(xy$x, xy$y)

helgegoessling/spheRlab documentation built on April 8, 2024, 8:34 a.m.