Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (5.4%) to scientific vocabulary
Last synced: 6 months ago · JSON representation ·

Repository

Basic Info
  • Host: GitHub
  • Owner: FractalGeoAnalytics
  • License: mit
  • Language: Python
  • Default Branch: master
  • Size: 69.3 KB
Statistics
  • Stars: 2
  • Watchers: 1
  • Forks: 1
  • Open Issues: 0
  • Releases: 0
Created over 3 years ago · Last pushed about 2 years ago
Metadata Files
Readme License Citation

README.md

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

```python from matplotlib import pyplot as plt from dhcomp.composite import composite import numpy as np rng = np.random.defaultrng(42) nsteps = 100 int1 = 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 = createintervals(int1) fr2, to2 = createintervals(int2)

use nsteps-1 because we loose a step

v1 = np.cumsum(rng.standardnormal(nsteps-1)) v2 = np.cumsum(rng.standardnormal(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/

Owner

  • Name: FractalGeoAnalytics
  • Login: FractalGeoAnalytics
  • Kind: organization

Citation (CITATION.cff)

cff-version: 1.2.0
title: pytsg
message: >-
  If you use this software, please cite it using the
  metadata from this file.
type: software
authors:
  - given-names: Ben
    family-names: Chi
    email: ben@fractalgeoanalytics.com
repository-code: 'https://github.com/FractalGeoAnalytics/dhcomp'
url: 'https://www.fractalgeoanalytics.com'
abstract: Drill hole compositing
license: MIT
date-released: '2022-08-10'

GitHub Events

Total
Last Year

Dependencies

.github/workflows/python-publish.yml actions
  • actions/checkout v3 composite
  • actions/setup-python v3 composite
  • pypa/gh-action-pypi-publish 27b31702a0e7fc50959f5ad993c78deac1bdfc29 composite
poetry.lock pypi
  • black 22.6.0 develop
  • click 8.1.3 develop
  • colorama 0.4.5 develop
  • mypy-extensions 0.4.3 develop
  • pathspec 0.9.0 develop
  • platformdirs 2.5.2 develop
  • tomli 2.0.1 develop
  • typing-extensions 4.3.0 develop
  • numpy 1.23.1
pyproject.toml pypi
  • black ^22.6.0 develop
  • numpy ^1.21
  • pandas *
  • python ^3.6