geo.functions: Geographical functions

Description Usage Arguments Details

Description

Some useful geographical functions

Usage

1
2
3
4
5
ll2utm     (rlat, rlon, iz=32)
ll2utm.grid(lat, lon, round=-2, iz=32)

Dist(x,y,xi,yi)
which.nearest(xo,yo,xi,yi)

Arguments

rlat

latitude

rlon

longitude

lat

latitude (numeric vector)

lon

longitude (numeric vector)

iz

UTM zone

round

rounding on the UTM target coordinates

x

numeric x coordinate

y

numeric y coordinate

xi, xo

numeric vector of x coordinates

yi, yo

numeric vector of y coordinates

Details

ll2utm converts geographical coordinates (latitude/longitude) in UTM WGS84, while ll2utm.grid does the same on vectors of coordinates, applying some rounding, supposed they are on a regular grid in the target UTM system.


jobonaf/pesco documentation built on May 19, 2019, 2:58 p.m.