Skip to main content

SPHARA-based spatial harmonic analysis and filtering

Project description

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

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

spharapy-1.3.0.tar.gz (461.4 kB view details)

Uploaded Source

Built Distribution

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

spharapy-1.3.0-py3-none-any.whl (472.4 kB view details)

Uploaded Python 3

File details

Details for the file spharapy-1.3.0.tar.gz.

File metadata

  • Download URL: spharapy-1.3.0.tar.gz
  • Upload date:
  • Size: 461.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for spharapy-1.3.0.tar.gz
Algorithm Hash digest
SHA256 e9f03d57e8b9641acd212927bf500c43017a27e4b91a7bb0741a41e02a2dfcf5
MD5 a42014ab56bc787bb48f6dda415e0a3a
BLAKE2b-256 d0f313119aa9e112b38454729235f00bec3bf965634746f6c539178267db78d3

See more details on using hashes here.

File details

Details for the file spharapy-1.3.0-py3-none-any.whl.

File metadata

  • Download URL: spharapy-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 472.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for spharapy-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 240b00893f780491dca6161f919776651e37605946ead785ad04525d5d56766d
MD5 a6b89bee8e5c161e3ba36b95c8d0155b
BLAKE2b-256 f79eb93c88ce23d6008ac8e4e09d28d01a1abe5cc934610488f6f2559154a1df

See more details on using hashes here.

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