Skip to main content

A GPU-accelerated NetCDF viewer and editor

Project description

Pynoply

A GPU-accelerated NetCDF viewer and editor

PyPI version Python 3.10+ License: MIT Development Status CI

⚠️ Alpha Version - Work in Progress

Pynoply is currently in alpha development. Features are being actively developed and the API may change. Use at your own risk and please report any issues you encounter!

Features

  • GPU-Accelerated Visualization - Leverages VisPy for hardware-accelerated rendering
  • Multi-dimensional Data - Navigate through time series and depth layers
  • Multiple Colormaps - Viridis, Magma, Plasma, and more
  • Attribute Editing - Modify NetCDF global and variable attributes
  • Format Conversion - Save with compression and format options
  • Smart GPU Selection - Automatically detects and uses dedicated GPUs (NVIDIA, Intel)
  • Integrated File Browser - Browse and open NetCDF files directly
  • Real-time Monitoring - Track GPU, RAM, and CPU usage

Installation

From PyPI (Recommended)

pip install pynoply

From Source (Development)

# Clone the repository
git clone https://github.com/polymood/Pynoply.git
cd Pynoply

# Create a virtual environment (recommended)
python3 -m venv .venv
source .venv/bin/activate  # On Windows: .venv\Scripts\activate

# Install in editable mode with dependencies
pip install -e .

Usage

After installation, launch Pynoply from the command line:

pynoply

Or run as a Python module:

python -m pynoply

Requirements

  • Python 3.10 or higher
  • PyQt6
  • NumPy
  • xarray
  • VisPy
  • psutil
  • Matplotlib
  • Pillow

For GPU acceleration, NVIDIA drivers (for NVIDIA GPUs) or Mesa (for Intel/AMD) are required.

GPU Selection

Pynoply automatically detects available GPUs and prefers dedicated GPUs (e.g., NVIDIA) over integrated graphics. You can manually select which GPU to use:

  1. Open Tools → GPU Settings
  2. Select your preferred GPU
  3. Click Apply & Restart

Development

Project Structure

Pynoply/
├── src/
│   └── pynoply/
│       ├── __init__.py          # Package initialization
│       ├── __main__.py          # Entry point
│       ├── main_window.py       # Main application window
│       ├── constants.py         # Application constants
│       ├── gpu/                 # GPU detection and management
│       ├── workers/             # Background worker threads
│       ├── widgets/             # Custom Qt widgets
│       ├── dialogs/             # Dialog windows
│       └── utils/               # Utility functions
├── pyproject.toml               # Project metadata and dependencies
├── README.md                    # This file
└── LICENSE                      # MIT License

Running Tests

# Install development dependencies
pip install -e ".[dev]"

# Run tests (once test suite is created)
pytest

Code Style

This project uses:

  • Black for code formatting
  • Ruff for linting
  • mypy for type checking
# Format code
black src/

# Lint
ruff check src/

# Type check
mypy src/

Contributing

Contributions are welcome! This is an alpha project, so there's plenty of room for improvement:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Roadmap

  • Complete test coverage
  • Add more export formats (GeoTIFF, PNG with georeferencing)
  • Implement variable creation and deletion
  • Add plotting capabilities
  • Improve performance for very large datasets
  • Add plugins system
  • Documentation and tutorials

Known Issues

  • Large datasets (> 10GB) may cause memory issues
  • Some NetCDF engines may not support all file types
  • GPU detection on non-Linux systems is limited

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

Contact


Note: This is alpha software. Expect bugs, incomplete features, and breaking changes!

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

pynoply-0.1.0a0.tar.gz (27.1 kB view details)

Uploaded Source

Built Distribution

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

pynoply-0.1.0a0-py3-none-any.whl (27.6 kB view details)

Uploaded Python 3

File details

Details for the file pynoply-0.1.0a0.tar.gz.

File metadata

  • Download URL: pynoply-0.1.0a0.tar.gz
  • Upload date:
  • Size: 27.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pynoply-0.1.0a0.tar.gz
Algorithm Hash digest
SHA256 5e7b5ec28d83b43ca4f845a4c41fb80fbc7875407984a946d431b63bdd25871d
MD5 4404037e95ad191a8075ed2b7019097f
BLAKE2b-256 352107828700848fa4c6b0801f9f9b0083ff9b5947f2eb49cd7ff90d9a1c93c6

See more details on using hashes here.

Provenance

The following attestation bundles were made for pynoply-0.1.0a0.tar.gz:

Publisher: publish-pypi.yml on polymood/Pynoply

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pynoply-0.1.0a0-py3-none-any.whl.

File metadata

  • Download URL: pynoply-0.1.0a0-py3-none-any.whl
  • Upload date:
  • Size: 27.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pynoply-0.1.0a0-py3-none-any.whl
Algorithm Hash digest
SHA256 fe4a76ad7955638a09992503537a862f0054f0ff2f71dfe572daf58c89be1daf
MD5 0db1aab126e60ecd4d8e8adc771093de
BLAKE2b-256 03573fbd20dff0597e4edc5a18802d294489b4a3fd03ee68db189156a1fcbfd3

See more details on using hashes here.

Provenance

The following attestation bundles were made for pynoply-0.1.0a0-py3-none-any.whl:

Publisher: publish-pypi.yml on polymood/Pynoply

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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