Ignore:
Timestamp:
04/30/12 14:42:59 (12 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

Most of the remaining messages are implemented

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/util.py

    r97 r134  
    149149    return (radians2nm(d), math.degrees(tc))
    150150
     151#------------------------------------------------------------------------------
     152
     153def visibility2String(visibility):
     154    """Convert the given visibility expressed in metres into a string."""
     155    return "%.0f metres" % (visibility,) if visibility<10000 \
     156           else "%.1f kilometres" % (visibility/1000.0,)
Note: See TracChangeset for help on using the changeset viewer.