Skip to main content

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

pip install midgard

Installing Midgard from source

Midgard depends on several other brilliant Python packages, like for instance numpy, scipy, astropy 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:

flit install --dep production

If you want to develop the Midgard package, install it in editable mode using

flit install -s

On Windows, you can install in editable mode using

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)

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

midgard-0.1.1.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

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

midgard-0.1.1-py3-none-any.whl (20.9 kB view details)

Uploaded Python 3

File details

Details for the file midgard-0.1.1.tar.gz.

File metadata

  • Download URL: midgard-0.1.1.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for midgard-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f9921cc1672b41694d2acc0483fefcf1467e2067fee7482fe6d80ce01f02d292
MD5 7be3c5961a7390d3b3fbd17851dbfe13
BLAKE2b-256 d06db3c2e5bd08672e053a556e686b0ca89f235177135769de31ff21fa600d75

See more details on using hashes here.

File details

Details for the file midgard-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for midgard-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7c42b99f6c0586613f639b61dae2ce23c698e97a5c86e8f421a5ac16617ff48a
MD5 08399c2367512218782256918449b470
BLAKE2b-256 636ae736eb061c2afc5f8a3b3d44ddc251715f935d20c668fc211608d4414b58

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