It sees 3D seimsic. Deep Learning for Structural and Stratigraphy
Project description
marimo App demo on molab
Installation
pip install threey
or with uv:
uv add threey
Credits & Shout Out to
- Vincent through His works on mothree
- 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.12.tar.gz
(263.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
threey-0.0.12-py3-none-any.whl
(265.5 kB
view details)
File details
Details for the file threey-0.0.12.tar.gz.
File metadata
- Download URL: threey-0.0.12.tar.gz
- Upload date:
- Size: 263.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c55886ad90b5d172ea30e9feccd5e2ed202542983b74663c9cfd4c434fd92a65
|
|
| MD5 |
c986b1a924143311e6a8afe15fb49907
|
|
| BLAKE2b-256 |
a69ee3dfc0cbe1d5196cb0b052981609da137c8e4fc36c70b4afffc30b5509f8
|
File details
Details for the file threey-0.0.12-py3-none-any.whl.
File metadata
- Download URL: threey-0.0.12-py3-none-any.whl
- Upload date:
- Size: 265.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
31454a40ecfa87904c745d1e2af5cb31e253cb3fe3923922159f87743c54f87e
|
|
| MD5 |
8caf91c1bfe656da66d5a9d2441227bb
|
|
| BLAKE2b-256 |
6ea594c1e99fcd31db19384a246a0225cf69962f8b4a4a014cd706bc825b0c42
|