Changeset 134:9ce031d5d4a9 for src/mlx/util.py
- Timestamp:
- 04/30/12 14:42:59 (12 years ago)
- Branch:
- default
- hg-Phase:
- (<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/util.py
r97 r134 149 149 return (radians2nm(d), math.degrees(tc)) 150 150 151 #------------------------------------------------------------------------------ 152 153 def 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.