Midgard, the Python Geodesy library
Project description
Midgard, the Python Geodesy library
Midgard is a collection of useful Python utilities used by the Geodetic institute at the Norwegian Mapping Authority (Kartverket). Although some of these are geodesy-specific, many are also useful in more general settings.
Note: Midgard is still in pre-alpha status. Its functionality will change, and it should not be depended on in any production-like setting.
Installing Midgard
Midgard is available at PyPI. You can install it by simply running
python -m pip install midgard
Installing Midgard from source
Midgard depends on several other brilliant Python packages, like for instance numpy, scipy, etc. We recommend using the Anaconda distribution to ease the installation of these dependencies.
Install Anaconda
Go to www.anaconda.com/download, and download Anaconda for Python 3.
Download the Midgard source code
If you have not already done so, download the Midgard source code from Github:
github.com/kartverket/midgard. Then
enter the main midgard
directory before running the install command below.
cd midgard
Install dependencies
You should now install the necessary dependencies using the
environment.yml
-file. You can do this either in your current conda
environment, or choose to create a new midgard
-environment. In order to use
midgard
in other projects you need to install midgard
in the same
environment as those projects.
To install midgard
in your current environment, do
conda env update -f environment.yml
To install midgard
in a new environment named midgard
and activate it, do
conda env create -n midgard -f environment.yml
conda activate midgard
Install the Midgard package
To do the actual installation of Midgard, use the flit
packaging tool:
python -m flit install --dep production
If you want to develop the Midgard package, install it in editable mode using
python -m flit install -s
On Windows, you can install in editable mode using
python -m flit install --pth-file
Using Midgard
Midgard comes organized into different subpackages. To see info about the different subpackages, use the Python help system:
>>> import midgard
>>> help(midgard)
Information about individual subpackages is also available on the Midgard website.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file midgard-1.3.0.tar.gz
.
File metadata
- Download URL: midgard-1.3.0.tar.gz
- Upload date:
- Size: 1.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.28.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eec5fe91edcd68990891db90eca4deef87ea2282907a84dc3056189ccc458834 |
|
MD5 | d98e080c35aad1874ffccd5529fc2b09 |
|
BLAKE2b-256 | 99635254c4f66bffbe42e9c307d8b2662e0245e2b8b8ab6d1ba9a94aaaa73fb1 |
File details
Details for the file midgard-1.3.0-py2.py3-none-any.whl
.
File metadata
- Download URL: midgard-1.3.0-py2.py3-none-any.whl
- Upload date:
- Size: 390.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.28.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c60499a23de446fcadd0b89b3b3cfb004d102390d7173fb40afb46dc1137a53 |
|
MD5 | db96e1f53644fd39872e63de0a4fbe81 |
|
BLAKE2b-256 | a5e5a38b3dc3b91d92d274351938b54854afe415053365767f9fca1ae4313f7a |