Re: [R] code to convert 3D geographical coordinates to Cartesian?

2012-12-31 Thread David Winsemius
On Dec 30, 2012, at 8:14 PM, Tom Roche wrote: https://stat.ethz.ch/pipermail/r-help/2012-December/332658.html Is there packaged code to convert geographical coordinates (e.g., longitude, latitude, elevation) to Cartesian coordinates in 3-space? ... Net: the task seems straightforward

Re: [R] code to convert 3D geographical coordinates to Cartesian?

2012-12-31 Thread Tom Roche
summary: I'm looking for packaged, tested code to convert geographical coordinates (e.g., longitude, latitude, elevation) to Cartesian coordinates (x,y,z) in 3-space. I know of R code for 2-space and for spherical - Cartesian. This can be extended (I attach a quick kludge extending

[R] code to convert 3D geographical coordinates to Cartesian?

2012-12-30 Thread Tom Roche
Is there packaged code to convert geographical coordinates (e.g., longitude, latitude, elevation) to Cartesian coordinates in 3-space? I can see how to do this using 1. a spherical-to-Cartesian conversion like pracma::sph2cart(tpr) http://cran.r-project.org/web/packages/pracma/ 2. a

Re: [R] code to convert 3D geographical coordinates to Cartesian?

2012-12-30 Thread Bert Gunter
Have you checked the spatial stats task view on CRAN? http://cran.r-project.org/web/views/Spatial.html -- Bert On Sun, Dec 30, 2012 at 6:49 PM, Tom Roche tom_ro...@pobox.com wrote: Is there packaged code to convert geographical coordinates (e.g., longitude, latitude, elevation) to Cartesian

Re: [R] code to convert 3D geographical coordinates to Cartesian?

2012-12-30 Thread Tom Roche
https://stat.ethz.ch/pipermail/r-help/2012-December/332658.html Is there packaged code to convert geographical coordinates (e.g., longitude, latitude, elevation) to Cartesian coordinates in 3-space? ... Net: the task seems straightforward enough, but there's certainly scope for error, so I'd