vec2ang performs the geometrical transform from the 3D position vectors (x,y,z) of points into their angles on the sphere: , ,
vec2ang, [[0.,0.],[0.,0.],[1.,-10.]], lat, lon, /astro | |
print,lat | |
print,lon |
will return 90.0000, -90.0000 and 0.00000, 0.00000, the latitudes and longitudes in Degrees or the North and South poles. Note that in this example the input 3D location of South pole was not normalized.
Version 3.83, 2024-11-13