R/merc.sphr.ll.R

Defines functions `merc.sphr.ll`

`merc.sphr.ll` <-
function(LON0, x, y)
  {
    R.MAPK= MAPconstants()$R.MAPK
    RAD2DEG=180/pi
    
    
    phi = 90 - RAD2DEG * 2 * atan(exp(-y / R.MAPK));
    lam = RAD2DEG * (x / R.MAPK) + LON0;
    return(list(lat=phi, lon=lam))
  }

Try the GEOmap package in your browser

Any scripts or data that you put into this service are public.

GEOmap documentation built on Sept. 1, 2023, 5:09 p.m.