Giter VIP home page Giter VIP logo

midgard's Introduction

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.

Latest version Python versions Code style: black

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.

midgard's People

Contributors

annsilje avatar dahmic77 avatar gahjelle avatar ingridfausk avatar sarmil avatar takluyver avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.