mean wind direction calculation finally seems to be correct