Metadata-Version: 2.4
Name: pivtools
Version: 0.4.4
Summary: PIVTOOLs - Particle Image Velocimetry Tools with CLI and GUI
Author-email: Morgan Taylor <m.t.taylor@soton.ac.uk>
License-Expression: BSD-3-Clause
Project-URL: Homepage, https://github.com/MTT69/python-PIVTOOLs
Project-URL: Repository, https://github.com/MTT69/python-PIVTOOLs
Project-URL: Issues, https://github.com/MTT69/python-PIVTOOLs/issues
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Science/Research
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Scientific/Engineering :: Image Processing
Classifier: Framework :: Flask
Requires-Python: >=3.12
Description-Content-Type: text/markdown
License-File: LICENSE
License-File: NOTICE
Requires-Dist: dask[distributed]==2025.7.0
Requires-Dist: dask-jobqueue
Requires-Dist: dask-image
Requires-Dist: loguru==0.7.3
Requires-Dist: numpy==2.2.6
Requires-Dist: opencv-python==4.12.0.88
Requires-Dist: pandas==2.3.1
Requires-Dist: pillow==11.3.0
Requires-Dist: PyYAML==6.0.2
Requires-Dist: scipy==1.16.1
Requires-Dist: tifffile==2025.6.11
Requires-Dist: tqdm==4.67.1
Requires-Dist: numba==0.61.2
Requires-Dist: psutil==6.1.1
Requires-Dist: pytest==8.4.2
Requires-Dist: rawpy==0.25.1
Requires-Dist: scikit-image==0.25.2
Requires-Dist: lvpyio==1.3.1; sys_platform != "darwin"
Requires-Dist: bottleneck==1.6.0
Requires-Dist: scikit-learn==1.7.2
Requires-Dist: threadpoolctl==3.6.0
Requires-Dist: Flask==3.1.1
Requires-Dist: flask-cors==6.0.1
Requires-Dist: matplotlib==3.10.5
Requires-Dist: imagecodecs
Requires-Dist: imageio-ffmpeg>=0.5.0
Dynamic: license-file

# PIVTOOLs

Particle Image Velocimetry Tools - A comprehensive toolkit for PIV analysis with both command-line and GUI interfaces.

We present **PIVTOOLS**, an open-source Python framework built for community expansion with a React-based GUI, which integrates planar, stereoscopic, and ensemble PIV pipelines into a single end-to-end environment. Computationally intensive routines are implemented in optimised C and parallelised with Dask, enabling datasets of terabyte scale to be processed efficiently on both workstations and distributed HPC clusters.

The framework provides a complete pipeline from raw image import to image preprocessing, parallel vector computation, calibration, and interactive visualisation. Ensemble extensions allow direct estimation of Reynolds stresses from correlation maps, offering statistical fidelity beyond what is achievable with instantaneous methods. Validation against synthetic channel flow demonstrates mean velocity profiles accurate to within 1% of DNS reference down to \( y^+ \approx 40-50 \) with instantaneous PIV, and to \( y^+ \approx 15 \) with ensemble methods. Instantaneous Reynolds stresses agree with windowed DNS data, while ensemble processing recovers a higher fraction of turbulent energy due to reduced windowing effects.

## Features

- Planar, stereoscopic, and ensemble PIV pipelines
- React-based GUI for interactive analysis
- Optimized C extensions for performance
- Parallel processing with Dask
- Support for terabyte-scale datasets
- Complete pipeline from image import to visualization

## Installation

Install PIVTOOLs with a single command:

```bash
pip install pivtools
```

This installs the complete toolkit including:
- **Core utilities** for image handling and vector processing
- **Command-line interface** (`pivtools-cli`) for automated workflows
- **React-based GUI** (`pivtools-gui`) for interactive analysis

The package includes pre-compiled C extensions for optimal performance on Windows, macOS, and Linux.

## Quick Start

### Initialize a new PIVTOOLs workspace

```bash
pivtools-cli init
```

This creates a default `config.yaml` file in your current directory that you can edit to configure your PIV analysis.

### Run PIV analysis (command-line)

```bash
pivtools-cli run
```

This runs the PIV analysis using the `config.yaml` in your current directory.

### Launch the GUI

```bash
pivtools-gui
```

This starts the React-based GUI where you can interactively configure and run PIV analysis.

## Configuration

Both `pivtools-cli` and `pivtools-gui` applications use `config.yaml` in the current working directory.

When you run either `pivtools-cli init` or start `pivtools-gui` for the first time, if no `config.yaml` exists in the current directory, it automatically copies the default config from the package to `config.yaml` in your current working directory.

For detailed configuration options, see [piv.tools/manual](https://piv.tools/manual).

## Requirements

- Python 3.12+

## License

BSD 3-Clause License - See [LICENSE](LICENSE) for details.

**Note:** Pre-built binaries link against GPL-licensed libraries (FFTW3, GSL). Binary distributions must comply with GPL terms unless these dependencies are replaced with alternatively-licensed implementations. See the LICENSE and NOTICE files for complete details.

## Contributing

Contributions welcome! Please see the GitHub repository for issues and pull requests.
