I Have an export from an app that gives me location in radians. Is there a simple way to convert to decimal degrees? I would like to be able to import into arcmap.
Sample:
TimeStamp | Lat | Long | Elevation | Speed |
4/12/17 12:54:40 | -1.6877674 | 0.5775370 | 184 | 2.6 |
4/12/17 12:54:50 | -1.6877689 | 0.5775332 | 182 | 2.3 |
4/12/17 12:55:00 | -1.6877694 | 0.5775296 | 181 | 2.3 |
4/12/17 12:55:10 | -1.6877685 | 0.5775274 | 182 | 0.0 |
Solved! Go to Solution.
math.degrees(-1.6877674)
-96.70194881976822
In the field calculator, if this looks about right
math.degrees(-1.6877674)
-96.70194881976822
In the field calculator, if this looks about right
Thank you! Worked great. I can't believe in my searching that didn't come up as a function, but I'm not familiar with Python so I'm sure it was operator error.
buried in the help files, but useful links there are Python is the language of the present and future since vb has been removed in PRO
Bookmarked. And I guess I'll have to learn some Python. Thanks again.
Dan's solution is correct, and what I use myself, but I just want to point out that degrees, whether lat/long or the same old degrees you remember from sixth grade math class (e.g. the angle in a wedge-shaped object) they are the same thing. The formula to convert radians to degrees, no matter what language you write, is: radians * 180/pi
Let's just say it has been a LOOONNGG time since I took 6th grade math! 🙂
Thanks for the formula, though - I've put it my notes for next time.