Skip to main content

geoprior1d

PyPI version Python versions License

1D geological prior generator for stochastic lithology and resistivity modeling.

Installation

From PyPI

pip install geoprior1d

From source

cd geoprior1d

# Basic installation
pip install .

# Development installation (editable mode)
pip install -e .

Quick Start

Command Line

# Copy example file and show usage (doesn't run, just prepares the file)
geoprior1d

# Then run with the copied example file
geoprior1d daugaard_standard.xlsx --plot

# Or use your own input file
geoprior1d input.xlsx -n 10000 -d 90 --plot

# With custom output filename
geoprior1d input.xlsx -n 10000 -d 90 -o my_output.h5

# With parallel processing (use all CPU cores)
geoprior1d input.xlsx -n 10000 -d 90 -j -1

# All options combined
geoprior1d input.xlsx -n 10000 -d 90 -s 1 --plot -j 4 -o output.h5

Python API

from geoprior1d import geoprior1d

# Generate priors
filename, flags = geoprior1d(
    input_data="daugaard_matlab.xlsx",
    Nreals=10000,
    dmax=90,
    dz=1,
    doPlot=1,
    n_processes=None,      # Optional: use -1 for all cores, or specify number
    output_file=None       # Optional: specify custom output filename
)

print(f"Output saved to: {filename}")

Input File Format

See CLAUDE.md for detailed format specification and code architecture.

Requirements

  • Python >= 3.8
  • numpy >= 1.20.0
  • h5py >= 3.0.0
  • matplotlib >= 3.3.0
  • pandas >= 1.2.0
  • scipy >= 1.6.0
  • tqdm >= 4.60.0
  • openpyxl >= 3.0.0

All dependencies are automatically installed via pip.

License

MIT License

Metadata

Release files for geoprior1d 0.9.9.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for geoprior1d 0.9.9.3
File Size Uploaded
geoprior1d-0.9.9.3.tar.gz 21.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for geoprior1d 0.9.9.3
File Interpreter ABI Platform
geoprior1d-0.9.9.3-py3-none-any.whl Python 3 none any Details

Total release size: 49.4 kB

Release files / geoprior1d-0.9.9.3.tar.gz

Download URL geoprior1d-0.9.9.3.tar.gz
Size 21.4 kB
Tags Source
SHA-256 checksum
How to use checksums
4b953c597de3838ab9714226d2d6294afa0d9fe910ab9080a331215437209337
BLAKE2b-256 checksum
How to use checksums
60fec114229199013430e1627f502918429a19921a3a9f8c6be0c27c6ff0164b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / geoprior1d-0.9.9.3-py3-none-any.whl

Download URL geoprior1d-0.9.9.3-py3-none-any.whl
Size 28.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e570dc526e18ce9ec063f08bbe5880e81d58387c7aa34c7e591db8d82694833c
BLAKE2b-256 checksum
How to use checksums
c3b9201471876532b14f9d22e108e36f0ffff00e5b23f6adf8b8bedf5e6af35e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

0.9.9.3 This release

2 release files

0.9.9

2 release files

0.9.8

2 release files

0.9.7

2 release files

0.9.6

2 release files

0.9.5

2 release files

0.9.3

2 release files

0.9.2

2 release files

0.9.1

2 release files

0.9.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page