R/Lll2xyz.R

Defines functions Lll2xyz

Documented in Lll2xyz

Lll2xyz<-function(lat, lon)
{
 ### lat here is lattitude (not co-lat)
  DEGRAD = pi/180
  z = sin(DEGRAD*lat);
  y = cos(DEGRAD*lat)*sin(DEGRAD*lon);
  x = cos(DEGRAD*lat)*cos(DEGRAD*lon);

  return(list(x=x,y=y,z=z))
}

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.