The visibility km to sm conversion seems to be wrong. (meter to feet conversion used??).
Exactly! They use ft/m=0.305 instead of s.m./km=1.609