sl.plot.landsea: Plot Land-Sea Mask of a Grid

sl.plot.landseaR Documentation

Plot Land-Sea Mask of a Grid

Description

Plot a land-sea mask based on an unstructured ocean grid.

Usage

sl.plot.landsea(plot.init.res, lon, lat, elem, col.land = "grey", col.sea = "white", lwd = 1, lty = 1, polar.bg.res = 1)

Arguments

plot.init.res

a spheRlab plot specifics list as returned by sl.plot.init (or a variant thereof).

lon

a vector of length N specifying the longitudes of the grid nodes.

lat

a vector of length N specifying the latitudes of the grid nodes.

elem

an Nex3 matrix providing the vertex indices of each triangular element spanned by the grid nodes. Note that Ne ~= 2xN.

col.land

the land colour. (Will be drawn at the beginning into the whole domain.)

col.sea

the ocean colour. (Each ocean element will be filled with this colour).

lwd

CURRENTLY NOT USED. Will be needed once coastlines can be drawn with this function.

lty

CURRENTLY NOT USED. Will be needed once coastlines can be drawn with this function.

polar.bg.res

a scalar specifying the resolution (in degrees) at which the background triangles are drawn.

Details

First the whole plot domain is filled with col.land. For a polar projection, this is achieved with triangles that have one vertex at the projection North Pole and two points on the plot boundary, separated by polar.bg.res degrees. Second all visible ocean elements (triangles) are added.

Note

1) This function could be amended slightly to enable drawing just the coastline of an ocean grid.

2) For more sophisticated plotting of more realistic coastlines and other geographical standard datasets, see sl.plot.naturalearth.

Author(s)

Helge Goessling

See Also

sl.plot.elem, sl.plot.naturalearth

Examples

## To be provided ...

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