def get_track(degrees):
    """
    Converts degree measurement to cardinal track
    """
    track = ''

    if 0 <= degrees < 39:
        track = 'N'
    elif 39 <= degrees < 84:
        track = 'NE'
    elif 84 <= degrees < 129:
        track = 'E'
    elif 129 <= degrees < 174:
        track = 'SE'
    elif 174 <= degrees < 219:
        track = 'S'
    elif 219 <= degrees < 264:
        track = 'SW'
    elif 264 <= degrees < 309:
        track = 'W'
    elif 309 <= degrees < 354:
        track = 'NW'
    elif 354 <= degrees:
        track = 'N'

    return track