conversion_coordinates: Conversions of Coordinates

lonlat2UTMR Documentation

Conversions of Coordinates

Description

Functions to convert coordinates.

Usage

lonlat2UTM(lon, lat = NULL, details = FALSE)
UTM2lonlat(X, zone, hemisphere)

getUTMzone(lon, lat = NULL)
getUTMzone2(lon)
getUTMhemisphere(lat)

Arguments

lon, lat

coordinates given as two vectors or as a matrix (or a data frame).

details

a logical value indicating whether to return information on the UTM zones (see below).

X

a matrix or a data frame giving the UTM coordinates.

zone, hemisphere

an integer and a character string giving the UTM square

Details

lonlat2UTM works for all UTM zones. If the coordinates cover several UTM zones and/or hemispheres, a warning is issued and the the options details is switched to TRUE.

getUTMzone returns the UTM zone for all cases, including the special zones for Svalbard and Norway (latitude between 72 and 84 degrees North and longitude between 0 and 9 degrees East, and all latitudes for longitudes between 9 and 42 degrees East). getUTMzone2 is a faster version that works only outside these special zones.

Value

the returned value depends on the function.

Author(s)

Emmanuel Paradis


emmanuelparadis/sentinel documentation built on May 2, 2024, 4:52 a.m.