Changeset 373:cf2b6b8a3973 for src/mlx/util.py
- Timestamp:
- 12/18/12 10:08:43 (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/util.py
r298 r373 2 2 import math 3 3 import time 4 import sys 4 5 5 6 #------------------------------------------------------------------------------ … … 26 27 - the seconds as an integer 27 28 - 1.0 if the value was non-negative, -1.0 if it was negative.""" 28 29 29 30 if degrees<0: 30 31 degrees = -degrees … … 32 33 else: 33 34 mul = 1.0 34 35 35 36 deg = int(degrees) 36 37 min = int((degrees*60.0)%60.0) … … 125 126 126 127 This function calculates the rhumb distance.""" 127 128 128 129 latitude1 = math.radians(latitude1) 129 130 longitude1 = math.radians(longitude1) … … 160 161 return "%.0f metres" % (visibility,) if visibility<10000 \ 161 162 else "%.1f kilometres" % (visibility/1000.0,) 163 164 #------------------------------------------------------------------------------ 165 166 secondaryInstallation="secondary" in sys.argv
Note:
See TracChangeset
for help on using the changeset viewer.