Skip to main content

1D geological prior generator for stochastic lithology and resistivity modeling

Project description

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

All dependencies are automatically installed via pip.

License

MIT License

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

geoprior1d-0.9.2.tar.gz (13.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

geoprior1d-0.9.2-py3-none-any.whl (14.9 kB view details)

Uploaded Python 3

File details

Details for the file geoprior1d-0.9.2.tar.gz.

File metadata

  • Download URL: geoprior1d-0.9.2.tar.gz
  • Upload date:
  • Size: 13.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for geoprior1d-0.9.2.tar.gz
Algorithm Hash digest
SHA256 af286161c64e1bbc4bc8e16b1f7d056f8bc1218eb570c35afbf22980609ccfea
MD5 25dfc3e5e8e682bbb425ba9261d1f976
BLAKE2b-256 551cfdbf87065c043314574fea52b2d5b9e6cad794abc85b5603aeb2eab7760d

See more details on using hashes here.

File details

Details for the file geoprior1d-0.9.2-py3-none-any.whl.

File metadata

  • Download URL: geoprior1d-0.9.2-py3-none-any.whl
  • Upload date:
  • Size: 14.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for geoprior1d-0.9.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1873f452b3692f4e51cdcf836d137a875d3ab0153624737203b7cd567bbc8f07
MD5 73761fb6e30190c2eff6d3a2516838f3
BLAKE2b-256 a324d999cc96aac7e43d98fd8d45537c39f6ddb5bf900824f5468ed3bf3ee8e1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page