search for: geo2sph

Displaying 1 result from an estimated 1 matches for "geo2sph".

2012 Dec 31
2
code to convert 3D geographical coordinates to Cartesian?
...some package (of which I'm currently unaware) has already coded this The Right Way. For now, for the atmospheric model with which I need to work, I believe I can just assume a spherical earth with r=6370 km, and just add that to the elevation. 3. composition of the two (e.g., sph2cart(geo2sph(lat.lon.elev))), noting that package=pracma uses the mathematics convention that azimuth=? and polar angle=? (vs the reverse physics convention). Net: the task seems straightforward enough, but there's certainly scope for error, so I'd prefer to use tested, well-used code if availabl...