Metadata-Version: 2.4
Name: geoprior1d
Version: 0.9.6
Summary: 1D geological prior generator for stochastic lithology and resistivity modeling
Author-email: Jesper Nørgaard <jesn@geus.dk>
Maintainer-email: Thomas Mejer Hansen <cultpenguin@gmail.com>
License: MIT
Project-URL: Homepage, https://github.com/yourusername/geoprior1d
Project-URL: Documentation, https://github.com/yourusername/geoprior1d/blob/main/README.md
Project-URL: Repository, https://github.com/yourusername/geoprior1d
Project-URL: Issues, https://github.com/yourusername/geoprior1d/issues
Project-URL: Changelog, https://github.com/yourusername/geoprior1d/blob/main/CHANGELOG.md
Keywords: geophysics,geology,resistivity,lithology,prior,stochastic,monte-carlo,subsurface
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Science/Research
Classifier: Topic :: Scientific/Engineering
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: numpy>=1.20.0
Requires-Dist: h5py>=3.0.0
Requires-Dist: matplotlib>=3.3.0
Requires-Dist: pandas>=1.2.0
Requires-Dist: scipy>=1.6.0
Requires-Dist: tqdm>=4.60.0
Dynamic: license-file

# geoprior1d

[![PyPI version](https://badge.fury.io/py/geoprior1d.svg)](https://badge.fury.io/py/geoprior1d)
[![Python versions](https://img.shields.io/pypi/pyversions/geoprior1d.svg)](https://pypi.org/project/geoprior1d/)
[![License](https://img.shields.io/pypi/l/geoprior1d.svg)](LICENSE)

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

## Installation

### From PyPI
```bash
pip install geoprior1d
```

### From source
```bash
cd geoprior1d

# Basic installation
pip install .

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

## Quick Start

### Command Line

```bash
# 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

```python
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](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
