Installation#

mapmetnet is available on PyPI, and can be installed using pip:

pip install mapmetnet

If you are so inclined, you can also install mapmetnet from source, via a local clone of the relevant Github repository:

git clone https://github.com/MeteoSwiss/mapmetnet.git
cd mapmetnet
pip install -e .

Please refer to the code contributing guidelines for more details, inclduing on how to set up a suitable development environment for mapmetnet (should you be interested to contribute).

Logging#

mapmetnet comes with a built-in logging setup relying on a NullHandler to avoid bothering users with unwanted messages. Should you wish to see/record the log messages (e.g. for debugging purposes), you can do so by setting up your own handler, e.g. via:

import logging

logging.basicConfig(level=logging.INFO)
logging.getLogger('mapmetnet').setLevel(logging.DEBUG)

# ... your code using mapmetnet here ...