Skip to main content

An easy-to-use implementation of the Munter time calculation

Project description

Munter.py

Helps you speed up your tour and trip planning.

Disclaimer

The time calculations produced by this program are not guaranteed to be accurate. Any harm or hazard encountered due to blindly trusting these estimates is your own fault.

Installation

If you use pip, then simply pip install munter.py.

If you don't use pip, then download the source code and unpack it into its own directory. You can invoke it directly via python munter.py [options].

How to use it

For detailed information, see:

./munter.py --help

The program supports both imperial and metric, and has four "travel modes" at this time: uphill, flat, downhill, bushwhacking. It also supports a simple fitness modifier: slow, average, fast.

By default, the output will be the time in hours and minutes of the specified leg. If you prefer, you can use the -p switch to get a "prettier" output.

There is also a GUI mode available, based on WxPython, which can be used by simply invoking like so:

./munter.py -g

Use as a library

You can also use Munter.py programmatically from Python, like so:

import munter
est = munter.time_calc(distance=3.2, elevation=2300, fitness='slow')

This will store a value like "3.64914" in the est variable.

Workflow

My workflow involves planning my tour using tools like ArcGIS or CalTopo. Then, I take the stats between each leg (distance, vertical gain/loss) of the tour and run them through Munter.py and record its output to my field notebook.

The text-based "pretty" format can be directly transferred to e.g. the format used by SnowPit Technologies' "Avalanche Field Notebook" or your own personal format (e.g. RitR No. 471).

Future plans

  • Better documentation

Version History

  • 2.3.0 (Jul 2020)

    Implement 'auto-start in GUI' feature.

    The program tries to detect whether it was invoked from a terminal or not, and if not, it will automatically switch to GUI mode. Useful for invocation via e.g. dmenu(1).

  • 2.2.1 (Jun 2020)

    Complete fixes recommended by pylint(1).

  • 2.2.0 (Jun 2020)

    Implement GUI mode.

  • 2.1.0 (Jun 2020)

    Implement fitness modifier. Make some text changes and other miscellaneous and minor improvements.

  • 2.0.1 (Jun 2020)

    README improvement.

  • 2.0.0 (Jun 2020)

    Package for distribution as a standalone program (and library).

  • 1.0.2 (Jun 2020)

    A few small bugfixes.

  • 1.0.1 (Jun 2020)

    Add LICENSE and README.

  • 1.0.0 (Jun 2020)

    First released version. Includes sensible defaults and a rudimentary CLI "GUI".

  • pre-1.0.0 (Mar 2017)

    In use privately/internally since 2017.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

munter.py-2.3.0.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

munter.py-2.3.0-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file munter.py-2.3.0.tar.gz.

File metadata

  • Download URL: munter.py-2.3.0.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.3

File hashes

Hashes for munter.py-2.3.0.tar.gz
Algorithm Hash digest
SHA256 d37770d7222dd106c6197964122298bd4710b0cc4400ed5d82927b6e1da3b50a
MD5 67ce84a856cc9ca728fe7f88297e9be0
BLAKE2b-256 1caf386cedcc34213f048e71885c332a5d52744f5bb814b16731df7690164e84

See more details on using hashes here.

File details

Details for the file munter.py-2.3.0-py3-none-any.whl.

File metadata

  • Download URL: munter.py-2.3.0-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.3

File hashes

Hashes for munter.py-2.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8c7a312694dcaa750b8aefe6a4b0baef68128617f5fbab58c79be6186d4a086a
MD5 df0f0a477874eadd7b0c1ff059b64054
BLAKE2b-256 b2ce14c44549a36f0549809b27284644e8023fd654048dfd9a85c9503ab2b835

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page