data(weather)
(coord <- weather[1:5, 3:4])
(z <- RFfctn(RMtrafo(new=RC_CARTESIAN_COORD), coord))
(z1 <- RFearth2cartesian(coord)) ## equals z
z1 - z ## 0, i.e., z1 and t(z) are the same
dist(z)
(d <- RFearth2dist(coord))
d - dist(z) ## 0, i.e., d and dist(z) are the same
## projecction onto planes
RFoptions(zenit=c(-122, 47))
RFearth2cartesian(coord, system="gnomonic")
RFearth2cartesian(coord, system="orthographic")
Run the code above in your browser using DataLab