Skip to main content

It sees 3D seimsic. Deep Learning for Structural and Stratigraphy

Project description

threey

Installation

pip install threey

or with uv:

uv add threey

Credits & Shout Out to

  1. Vincent through His works on mothree
  2. timothygebhard through they work of js-colormaps for making the Matplotlib's colormap evaluator for JavaScript

Usage

from threey import Seismic3DViewer

# the data's axis are configured to be in this order
# axis 0: vertical slice / z / xy-plane
# axis 1 and 2: could be any of the vertical planes, xz-plane or yz-plane
# z axis is perpendicular to earth surface, not the computer screen :D
synthetic_data = np.load("path/to/3d_np_array.npy")
synthetic_fault_data = np.load("path/to/3d_np_array_label.npy")

vmin, vmax = synthetic_data.min(), synthetic_data.max()

sample_cube = memoryview(synthetic_data)
sample_label = memoryview(synthetic_fault_data)

labels = {"fault":sample_label}
kwargs_labels = {"fault":dict(cmap="inferno", alpha=0.5)} # store the colormap and alpha for the label here!

_dimensions = dict(
    inline=sample_cube.shape[1],
    crossline=sample_cube.shape[2],
    depth=sample_cube.shape[0]
)

area = mo.ui.anywidget(
    Seismic3DViewer(
        data_source = sample_cube, # this should be a memoryview of 3D np.ndarray
        cmap_data = "seismic", # default to "seismic"
        dark_mode=False if mo.app_meta().theme != "dark" else True,
        labels=labels, # this should be a dict, e.g. {"label1": memoryview(label1_3d_npy)}
        kwargs_labels=kwargs_labels, # this also should be a dict {"label1": dict(cmap='inferno', alpha=0.5)}
        show_label= False,
        vmin = vmin,
        vmax = vmax,
        is_2d_view = False, # default to True
        dimensions=_dimensions,
        height=500
    )
)
area

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

threey-0.0.11.tar.gz (263.3 kB view details)

Uploaded Source

Built Distribution

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

threey-0.0.11-py3-none-any.whl (265.6 kB view details)

Uploaded Python 3

File details

Details for the file threey-0.0.11.tar.gz.

File metadata

  • Download URL: threey-0.0.11.tar.gz
  • Upload date:
  • Size: 263.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for threey-0.0.11.tar.gz
Algorithm Hash digest
SHA256 f81e5e1034a5c767ca82b8d4d6849a8b6c504c562c60087a60710faa99d1ef05
MD5 13e8aff80f42c4accd554f087c9affd0
BLAKE2b-256 9832357f693670b7907e6e26712c19bf8f17fb04da58207663e601979843a063

See more details on using hashes here.

File details

Details for the file threey-0.0.11-py3-none-any.whl.

File metadata

  • Download URL: threey-0.0.11-py3-none-any.whl
  • Upload date:
  • Size: 265.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for threey-0.0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 56a4216c83f59e5234963d14d4f4136edff164b1bd9a4334d4a7c094f8a69757
MD5 b0934c1b35983f4c6a3d831cd05a8ed4
BLAKE2b-256 125ce8fe159a639037ba75787fd2454a71257c6d805134eb922f8209fccddb8f

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