g2dl: Transform longitudes between a system of 0-360E and 180W-180E

View source: R/g2dl.R

g2dlR Documentation

Transform longitudes between a system of 0-360E and 180W-180E

Description

Transform longitudes between a system starting at the Greenwich line (greenwich=TRUE), going from 0 to 360 degrees, and one starting at the date line (greenwich=FALSE) going from -180 to 180 degrees.

Usage

g2dl(x, greenwich = TRUE, verbose = FALSE, ...)

Arguments

x

the input object

greenwich

a boolean; if TRUE longitudes are transformed to a system starting at the Greenwich line (0-360E); if FALSE longitudes are transformed to a system starting at the date line (180W-180E)

verbose

a boolean; if TRUE print information about progress

...

other arguments

lon

longitudes

lat

latitudes

d

dimensions

Details

g2dl is an S3 method and will redirect to a fitting function depending on the input. The output of g2dl is of the same class and format as the input. The attribute 'greenwich' (attr(x,'greenwich')) holds information about the longitude system of an object.

Value

an object of the same type as the input


metno/esd documentation built on April 29, 2024, 3:34 p.m.