Skip to main content
Read the Docs PyPI version Supported Python versions License Tests Coverage

Sphara Implementation in Python

SpharaPy is a Python implementation of the SPHARA framework (Spatial Harmonic Analysis), an extension of classical spatial Fourier analysis to non-uniformly positioned samples on arbitrary surfaces in R^3. For details, see Graichen et al. (2015).

The basis functions used by SPHARA are obtained from the eigenanalysis of a discrete Laplace–Beltrami operator defined on a triangular mesh of the spatial sample locations.

The SpharaPy toolbox provides:

  • Tools to compute SPHARA basis functions

  • Routines to perform SPHARA analysis and synthesis (SPHARA transform)

  • Methods for spatial filtering in the SPHARA domain

  • Additional helper functions to design SPHARA-domain filters (ideal, Gaussian and Butterworth; low-pass, high-pass and band-pass)

These filters can be used directly with the class spharapy.spharafilter.SpharaFilter.

Requirements and Installation

Required software and packages:

  • Python >= 3.10

  • NumPy >= 1.23.5

  • SciPy >= 1.14

  • Matplotlib >= 3.6

Installation via pip:

pip install spharapy

Examples and Usage

Minimal examples are included within the source code. More detailed tutorial examples are provided in the documentation.

Citing SpharaPy

If you find this toolbox useful and publish results obtained using it, please consider citing the following publications:

  • Graichen, U., Eichardt, R., & Haueisen, J. (2019). SpharaPy: A Python toolbox for spatial harmonic analysis of non-uniformly sampled data. SoftwareX, 10, Article 100289. https://doi.org/10.1016/j.softx.2019.100289

  • Graichen, U., Eichardt, R., Fiedler, P., Strohmeier, D., Zanow, F., & Haueisen, J. (2015). SPHARA – A generalized spatial Fourier analysis for multi-sensor systems with non-uniformly arranged sensors: Application to EEG. PLOS ONE, 10(4), e0121741. https://doi.org/10.1371/journal.pone.0121741

Release files for spharapy 1.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for spharapy 1.3.0
File Size Uploaded
spharapy-1.3.0.tar.gz 461.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for spharapy 1.3.0
File Interpreter ABI Platform
spharapy-1.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 933.9 kB

Release files / spharapy-1.3.0.tar.gz

Download URL spharapy-1.3.0.tar.gz
Size 461.4 kB
Tags Source
SHA-256 checksum
How to use checksums
e9f03d57e8b9641acd212927bf500c43017a27e4b91a7bb0741a41e02a2dfcf5
BLAKE2b-256 checksum
How to use checksums
d0f313119aa9e112b38454729235f00bec3bf965634746f6c539178267db78d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / spharapy-1.3.0-py3-none-any.whl

Download URL spharapy-1.3.0-py3-none-any.whl
Size 472.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
240b00893f780491dca6161f919776651e37605946ead785ad04525d5d56766d
BLAKE2b-256 checksum
How to use checksums
f79eb93c88ce23d6008ac8e4e09d28d01a1abe5cc934610488f6f2559154a1df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

1.3.0 This release

2 release files

1.1.2

1 release file

1.1.1

1 release file

1.1.0

2 release files

1.0.15

2 release files

1.0.14

2 release files

1.0.13

2 release files

1.0.12

2 release files

1.0.11

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