A 3D array-like NumPy-based data structure for large sparsely-populated volumes
Project description
chunky3d
A 3D array-like NumPy-based data structure for large sparsely-populated volumes
Build
Introduction
This library provides a data structure, Sparse
, which represents 3D volumetric data
and supports a subset of np.ndarray
features.
Example
>>> import numpy as np
>>> from chunky3d import Sparse
>>> s = Sparse(shape=(64, 64, 64))
>>> s[0, 0, 0]
0
>>> s.dtype
numpy.float64
>>> s.nchunks
8
>>> s.nchunks_initialized
0
>>> s[1, 2, 3] = 3
>>> s.nchunks_initialized
1
>>> s[:2, 2, 3:5]
array([[0., 0.],
[3., 0.]])
Features
chunky3d.sparse_func
- a collection of functions for analyzing chunked arrays, including morphological operations (opening, closing), thinning, connected components- Fast load and save using
msgpack
- Operations on arrays using
.run()
, with possible acceleration usingmultiprocessing
- Accelerated lookup using
numba
- Interpolation (point probe)
- Origin and spacing: representing 3D space with non-uniform spacing for different axes
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
chunky3d-0.0.3.tar.gz
(23.0 kB
view details)
Built Distribution
chunky3d-0.0.3-py3-none-any.whl
(23.7 kB
view details)
File details
Details for the file chunky3d-0.0.3.tar.gz
.
File metadata
- Download URL: chunky3d-0.0.3.tar.gz
- Upload date:
- Size: 23.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 768037c8b24977e898a884564cc1447c4a125ba058ffa048e78ab0ca7c9044a5 |
|
MD5 | 015ef673904309cf98fb5f22890afbe1 |
|
BLAKE2b-256 | 40273b336304ff7ab4390041e34d827e1ebca0c319a072c1a3a250cf3a02288e |
File details
Details for the file chunky3d-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: chunky3d-0.0.3-py3-none-any.whl
- Upload date:
- Size: 23.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49741b94644a18f13388af04f7c619c4d0e90f61b31865588a9994cc2f252523 |
|
MD5 | 5fd0da56f6409565bd0bfd1686d82750 |
|
BLAKE2b-256 | cc55356229f8059be9b03c56a0e5bcf30ad9e58c3ae6cfcaf0b685cb49a759b3 |