pysurfline.utils.degToCompass

pysurfline.utils.degToCompass(num: float) str

convert numerical (deg) direction into a cardinal string eg. N, S, W with a 22.5 deg accuracy.

Parameters

num (float) – angle in degrees

Returns

cardinal string

Return type

str