Skip to main content

napari-sediment

License BSD-3 PyPI Python Version tests codecov napari hub

This napari plugin is designed to hyper-spectral images of sediment cores. It is composed of three interfaces allowing the user to:

  • import HDR images
  • normalize the images using white and dark references
  • mask unwanted regions
  • perform spectral dimensionality reduction via minimum noise fraction analysis
  • perform spatial dimensionality reduction based on pixel purity indices
  • identify representative end-members by clustering pure pixels
  • select relevant regions in spectra to compute absorption indices and create absorption maps

Pre-processing: Sediment widget

The sediment widget allows the user to import an HDR image and to normalize it using white and dark references. The widget also allows the user to mask unwanted regions of the images.

Documentation

You can find a detailed documentation here.

Installation

Create a conda environment and activate it. If you don't have conda installed you can for example install miniforge.

conda create -n sediment python=3.12 napari pyqt -c conda-forge
conda activate sediment

Then you can install napari-sediment use:

pip install napari-sediment

Or you can install the latest development version directly from the GitHub repository:

pip install git+https://github.com/guiwitz/napari-sediment.git

On Windows, there is sometimes an issue installing PyTorch (needed for pixel classification) leading to an error about loading a dependency (typically fbgemm.dll). In that case we recommend the following:

conda create -n sediment python=3.12 napari pyqt -c conda-forge
conda activate sediment
pip install napari-sediment
pip uninstall torch
conda install -c conda-forge pytorch llvm-openmp

Contributing

Contributions are very welcome. Tests can be run with tox, please ensure the coverage at least stays the same before you submit a pull request.

License

Distributed under the terms of the BSD-3 license, "napari-sediment" is free and open source software

Authors

This plugin has been developed by Guillaume Witz at the Data Science Lab of the University of Bern in collaboration with Petra Zahajská, Institue of Geography of the University of Bern. Funding for development was provided by Prof. Martin Grosjean, Institute of Geography of the University of Bern.

Issues

If you encounter any problems, please file an issue along with a detailed description.

Metadata

Release files for napari-sediment 0.5.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 napari-sediment 0.5.3
File Size Uploaded
napari_sediment-0.5.3.tar.gz 24.5 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for napari-sediment 0.5.3
File Interpreter ABI Platform
napari_sediment-0.5.3-py3-none-any.whl Python 3 none any Details

Total release size: 24.6 MB

Release files / napari_sediment-0.5.3.tar.gz

Download URL napari_sediment-0.5.3.tar.gz
Size 24.5 MB
Tags Source
SHA-256 checksum
How to use checksums
945404ed80866d26a461e71c1c53028a665ce4cfefd9364715be77fedc04e7e5
BLAKE2b-256 checksum
How to use checksums
886cd09851fc8a4da9f590446fa64082617e6e4aba005e20780e3ace502c41b0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 27, 2026.

Transparency log

Release files / napari_sediment-0.5.3-py3-none-any.whl

Download URL napari_sediment-0.5.3-py3-none-any.whl
Size 119.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e358a2c95ba7437ccc6d38a8bb5c9ef7b14f41af9143538bd02c56f4a2483020
BLAKE2b-256 checksum
How to use checksums
b09ab45c2656ecea2c524eb263fd4a81ddf9e15dd828f64d135fbb22ab9c8f52
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 27, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.5.3 This release

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.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