dhcomp
Rationale
There does not seem to be any permissively licenced drill hole compositing software in python. dhcomp is a MIT licenced open source one function utility that (currently) composites geophysical data to a set of intervals.
Installation
Installation
pip install dhcomp
Usage
from matplotlib import pyplot as plt
from dhcomp.composite import composite
import numpy as np
rng = np.random.default_rng(42)
nsteps = 100
int_1 = rng.gamma(1,4,nsteps)
int_2 = rng.gamma(1,2,nsteps)
def create_intervals(rnums):
tmp = np.cumsum(rnums)
# wrap the result
fr = tmp[0:-1]
to = tmp[1:]
return fr, to
fr1, to1 = create_intervals(int_1)
fr2, to2 = create_intervals(int_2)
# use nsteps-1 because we loose a step
v1 = np.cumsum(rng.standard_normal(nsteps-1))
v2 = np.cumsum(rng.standard_normal(nsteps-1))
c2,_ = composite(fr1, to1, fr2, to2, v2.reshape(-1,1))
plt.plot(fr1,v1,'.-',label='process 1')
plt.plot(fr2,v2,'.-',label='process 2')
plt.plot(fr1,c2,'.-',label='process 2 values composited\nto process 1 intervals')
plt.legend()
plt.xlabel('steps')
plt.ylabel('value')
plt.title('resampled irregular time series')
plt.show()
Usage
https://www.fractalgeoanalytics.com/articles/2023-01-13-compositing-drill-hole-intervals/
Metadata
Release files for dhcomp 0.4.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dhcomp-0.4.7.tar.gz | 8.3 kB | Without provenance | Details for dhcomp-0.4.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dhcomp-0.4.7-py3-none-any.whl | Python 3 | none | any | Details for dhcomp-0.4.7-py3-none-any.whl |
Total release size: 15.7 kB
Release files / dhcomp-0.4.7.tar.gz
| Download URL | dhcomp-0.4.7.tar.gz |
|---|---|
| Size | 8.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d4186312ff0c5e99e6e7f5f3a82e24b9cc0d583773a4dacc032fd53b4c50de52
|
|
BLAKE2b-256 checksum How to use checksums |
9b46b11b25bd1f591be80f76b1b807acb34ecc69d0dfd1122b62fb9022e548bc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.24
|
Release files / dhcomp-0.4.7-py3-none-any.whl
| Download URL | dhcomp-0.4.7-py3-none-any.whl |
|---|---|
| Size | 7.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e3e4653cd790de7c43a067e6e88196307e088012946a3693b923db4302115870
|
|
BLAKE2b-256 checksum How to use checksums |
2e392caacc0ab0fc668b0578f84d8ad587c36cdcb42b6c5f835e47ce4e9979f8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.24
|
Security for dhcomp 0.4.7
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.