Learn R Programming

GEOmap (version 2.5-11)

GLOB.XY: Convert from GLOBAL LAT-LON to X-Y

Description

Convert from GLOBAL LAT-LON to X-Y

Usage

GLOB.XY(LAT, LON, PROJ.DATA)

Value

x

X in whatever units

y

Y in whatever units

Arguments

LAT

Latitude

LON

Longitude

PROJ.DATA

Projection list

Author

Jonathan M. Lees<jonathan.lees.edu>

Details

Units should be given according to the projection. This is the inverse of XY.GLOB.

References

Snyder, John P., Map Projections- a working manual, USGS, Professional Paper, 1987.

See Also

XY.GLOB

Examples

Run this code


proj = setPROJ(type = 2, LAT0 =23, LON0 = 35)

### get lat-lon
LL = XY.GLOB(200, 300, proj)


##  find x-y again, should be the same
XY = GLOB.XY(LL$lat, LL$lon, proj)
XY


Run the code above in your browser using DataLab