LLtoUTM: Transverse Mercator Projection

Description Usage Arguments Value

View source: R/LLtoUTM.R

Description

Project latitude and longitude spatial coordinates using a Transverse Mercator projection. Units are in kilometers, the minimum projected coordinates in the x and y direction are 0, and projected coordinates are scaled to 1 kilometer.

Usage

1
LLtoUTM(cm, lat, lon, xcol = "x", ycol = "y", minx = NULL, miny = NULL)

Arguments

cm

iCentral meridian. A common choice is the mean of the longitude values in your data set

lat

Vector of latitudes.

lon

Vector of longitudes.

xcol

Name of the transformed x coordinates output by the function.

ycol

Name of the transformed y coordinates output by the function.

minx

A minimum x coordinate to center by. Defaults to setting the minimum transformed coordinate to 0.

miny

A minimum y coordinate to center by. Defaults to setting the minimum transformed coordinate to 0.

Value

A list returning the transformed coordinates, central meridian argument, minimum x coordinate, and minimum y coordinate.


michaeldumelle/DumelleEtAl2021STLMM documentation built on Dec. 21, 2021, 5:56 p.m.