DATA Step, Macro, Functions and more

function for lat/long conversions?

Reply
Frequent Contributor
Posts: 91

function for lat/long conversions?

SAS folks-

I have been looking in the documentation for a SAS function for converting latitude/longitude from degrees minutes seconds to decimal degrees.

I could use the formula

VALUE = (degrees) + (minutes/60) + (seconds/3600);

but was looking for a shortcut.

Thanks for your help!

Wendy T.
Frequent Contributor
Posts: 102

Re: function for lat/long conversions?

I've been using SAS for GIS related work for many years, and I am not aware of anything.
PROC Star
Posts: 1,561

Re: function for lat/long conversions?

If you use this often, you can write your own function using proc fcmp.
Ask a Question
Discussion stats
  • 2 replies
  • 196 views
  • 0 likes
  • 3 in conversation