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.5.1

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.5.1
File Size Uploaded Provenance
map2loop-3.5.1.tar.gz 287.9 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 582.2 kB

Release files / map2loop-3.5.1.tar.gz

Download URL map2loop-3.5.1.tar.gz
Size 287.9 kB
Tags Source
SHA-256 checksum
How to use checksums
a1a6d93cc0cdfa989b556bbeb9934a89580fa6b1c2062c3a03bdb9206a6fbe0e
BLAKE2b-256 checksum
How to use checksums
df4572728d0b965089a58ac74ee05c769e50860824a9b672946359464455381c
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.5.1-py3-none-any.whl

Download URL map2loop-3.5.1-py3-none-any.whl
Size 294.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6ddd36f1c52dbef5b2070ce35631a195f36dd8f2c57c5839ed427af2620b92cf
BLAKE2b-256 checksum
How to use checksums
9372d76f8ca0e8a7bc5a5c9fbd77b1337ce8805f0a5e2b4ec8a73bc9e12091ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Security for map2loop 3.5.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

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