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.1.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.1-py3-none-any.whl (265.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: threey-0.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 3aa622362b86d0094b677641c00f3bfd1ed191be0127af208e86088286e4e572
MD5 a8d83614cfcfd1d32ab0ea5410d3a014
BLAKE2b-256 6646007068da5d16e4443da6fa125b377371bc8bdf8982a0d1c8c8826b9306ee

See more details on using hashes here.

File details

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

File metadata

  • Download URL: threey-0.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5100f0bb75ab28b17100dfe3c21a723f7a3ea01292b5338ac521e39f08abb0c3
MD5 1001c0cdcdcee26f05ab9e82a212d58a
BLAKE2b-256 4773da012192595af595d786e37952a6fac72739074e42bc8ccfe87ef54f9c26

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