Hi Statalisters,
I need to convert GPS longitude and latitude data from the Decimal Minutes Second (DMS) format to the Decimal Degrees (DD) format.
An example of my DMS-coded data is:
Latitude: 77.30.30 (north), Longitude: 164.45.15 (east).
The corresponding DD format I need would be:
Latitude: 77,508333, Longitude: 164,754167.
I found that the conversion formula is: Decimal Degrees = Degrees + ((Minutes / 60) + (Seconds / 3600)).
Is there a simple way to carry out this conversion in Stata? I have a large number of observations.
Many thanks,
Sophia
I need to convert GPS longitude and latitude data from the Decimal Minutes Second (DMS) format to the Decimal Degrees (DD) format.
An example of my DMS-coded data is:
Latitude: 77.30.30 (north), Longitude: 164.45.15 (east).
The corresponding DD format I need would be:
Latitude: 77,508333, Longitude: 164,754167.
I found that the conversion formula is: Decimal Degrees = Degrees + ((Minutes / 60) + (Seconds / 3600)).
Is there a simple way to carry out this conversion in Stata? I have a large number of observations.
Many thanks,
Sophia
Comment