Skip to main content

GitHub Release DOI License PyPI - Downloads Conda Downloads Testing Build and Deploy Documentation

Map2Loop 3.2

Generate 3D geological model inputs from geological maps — a high-level implementation and extension of the original map2loop code developed by Prof. Mark Jessell at UWA. To see an example interactive model built with map2loop and LoopStructural, follow this link:

3D Model from the Hamersley region, Western Australia

Install

Option 1: Install with Anaconda

This is the simplest and recommended installation process, with:

conda install -c loop3d -c conda-forge map2loop

Option 2: Install with pip

Installation with pip will require that GDAL is installed on your system prior to map2loop installation. This is because GDAL cannot be installed via pip (at least not with one line of code), and the GDAL installation process will vary depending on your OS.

For more information on installing gdal, see GDAL's Pypi page.

Once GDAL is available on your system, map2loop can be installed with:

pip install map2loop

Option 3: From source

git clone https://github.com/Loop3D/map2loop.git

cd map2loop

conda install gdal

conda install -c loop3d -c conda-forge --file dependencies.txt

pip install .

Option 4: From source & developer mode:

git clone https://github.com/Loop3D/map2loop.git

cd map2loop

conda install gdal

conda install -c loop3d -c conda-forge --file dependencies.txt

pip install -e .

Documentation

Map2loop's documentation is available here

Usage

Our notebooks cover use cases in more detail, but here is an example of processing Loop's South Australia remote geospatial data in just 20 lines of Python.

First, let's import map2loop and define a bounding box. You can use GIS software to find one or use Loop's Graphical User Interface for the best experience and complete toolset. Remember what projection your coordinates are in!

from map2loop.project import Project
from map2loop.m2l_enums import VerboseLevel

# Note that this region is defined in the EPSG 28354 projection and
# x and y represent easting and northing respectively
bbox_3d = {
    'minx': 250805.1529856466,
    'miny': 6405084.328058686,
    'maxx': 336682.921539395,
    'maxy': 6458336.085975628,
    'base': -3200,
    'top': 1200
}

Then, specify: the state, directory for the output, the bounding box and projection from above - and hit go! That's it.

proj = Project(use_australian_state_data = "SA",
               working_projection = 'EPSG:28354',
               bounding_box = bbox_3d,
               loop_project_filename = "output.loop3d"
               )

proj.run_all()

This is a minimal example and a small part of Loop.

Our documentation and other resources outline how to extend map2loop and port to the LoopStructural modelling engine. We are working to incorporate geophysical tools and best provide visualisation and workflow consolidation in the GUI.

Loop is led by Laurent Ailleres (Monash University) with a team of Work Package leaders from:

  • Monash University: Roy Thomson, Lachlan Grose and Robin Armit
  • University of Western Australia: Mark Jessell, Jeremie Giraud, Mark Lindsay and Guillaume Pirot
  • Geological Survey of Canada: Boyan Brodaric and Eric de Kemp

Known Issues and FAQs

  • Developing with docker on Windows means you won't have GPU passthrough and can’t use a discrete graphics card in the container even if you have one.
  • If Jupyter links require a token or password, it may mean port 8888 is already in use. To fix, either make docker map to another port on the host ie -p 8889:8888 or stop any other instances on 8888.

https://loop3d.github.io/

https://github.com/Loop3D/LoopStructural

Metadata

Release files for map2loop 3.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for map2loop 3.4.0
File Size Uploaded
map2loop-3.4.0.tar.gz 286.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for map2loop 3.4.0
File Interpreter ABI Platform
map2loop-3.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 578.8 kB

Release files / map2loop-3.4.0.tar.gz

Download URL map2loop-3.4.0.tar.gz
Size 286.2 kB
Tags Source
SHA-256 checksum
How to use checksums
466b7c4a6bad09281eb7024a9bf8f16ec63764e59ef06fdcbca28af85ad42b02
BLAKE2b-256 checksum
How to use checksums
073028deb4249a5d590a727df7f79f08b92aad44a7bffc8776b6b91a7099f45a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / map2loop-3.4.0-py3-none-any.whl

Download URL map2loop-3.4.0-py3-none-any.whl
Size 292.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
818a75ba06b89b0a63ba8c978deaff890b18b6196c64dbcab50919d5fa08f2a4
BLAKE2b-256 checksum
How to use checksums
83b5deffec946157bac2d33b6a0f7a0bb87b97396034d5bfbd2eead41f2e030b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release history Release notifications | RSS feed

3.5.0

2 release files

This release

3.4.0 This release

2 release files

3.3.1

1 release file

3.3.0

1 release file

3.2.10

1 release file

3.2.9

1 release file

3.2.8

1 release file

3.2.7

1 release file

3.2.6

1 release file

3.2.5

1 release file

3.2.4

1 release file

3.2.3

1 release file

3.2.2

1 release file

3.2.1

1 release file

3.2.0

1 release file

3.1.13

1 release file

1.0.2

1 release file

1.0.1

1 release file

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page