Convert DD (decimal degrees) position to DMS (degrees, minutes, seconds).
##### Inputs:
`dd_lat` and `dd_lon` 2 strings representing the latitude and the longitude in degree -i.e. 2 floats included in [-90, 90] and [-180, 180]. Note that latitude 0 is north, longitude 0 is east.
##### Outputs:
A tuple of DMS latitudes formated as follows:
`DDD*mm'ss.sss"C`
With:
- `DDD`: degrees
- `mm`: minutes
- `ss.sss`: seconds rounded to 3 decimals
- `C`: first letter uppercase of the cardinal direction
##### ressources
about WGS 84 on [Wikipedia](https://en.wikipedia.org/wiki/World_Geodetic_System#WGS84)
def f(l,d):
    a= abs(l)
    a1=int(a)
    a=60*(a-a1)
    a2=int(a)
    a=round(60*(a-a2),3)
    return '{:03}*{:02}\'{:06.3f}"{}'.format(a1,a2,a,d)

def convert_to_dms(lat, lon):
    a = float(lat)
    ns = ["S","N"][a>=0]
    b = float(lon)
    we = ["W","E"][b>=0]
    return f(a,ns), f(b,we)
def f(l,d):
    a= abs(l)
    a1=int(a)
    a=60*(a-a1)
    a2=int(a)
    a=round(60*(a-a2),3)
    return '{:03}*{:02}\'{:06.3f}"{}'.format(a1,a2,a,d)

def convert_to_dms(lat, lon):
    a = float(lat)
    ns = ["S","N"][a>=0]
    b = float(lon)
    we = ["W","E"][b>=0]
    return f(a,ns), f(b,we)