Skip to main content

Spherical Harmonic Decomposition

This project contains a python class SHD that provides functionalities to perform Spherical Harmonic Decompositions on trajectories.

Features:

  • Convert cartesian coordinates to spherical and vice versa.
  • Load trajectory data from different file formats.
  • Distribute trajectory points along a generated grid.
  • Compute the spherical harmonic expansion of the trajectory.
  • Compute tension and bending coefficients.
  • Plot the spectrum of the spherical harmonic expansion.

Installation

The package can be installed using pip:

pip install sphericalHarmonicDecomposition

Requirements:

This class leverages several libraries including:

  • numpy
  • matplotlib
  • icosphere
  • orthopoly
  • MDAnalysis
  • scipy

Make sure these libraries are installed to use this class effectively.

Usage:

To use the class, instantiate an object of SHD and then call the desired methods. For instance:

from sphericalHarmonicDecomposition import SHD

sph = SHD(name="SPH",
          Lmin=2,Lmax=10,
          expansionMode="abs",
          radiusMode="expansion")

sph.loadSPtraj("traj.sp")

sph.generateIcosahedralGrid(2)
sph.distributeTrajPointsAlongGrid()

sph.sphericalHarmonicExpansion()
sph.compute()

Metadata

Release files for sphericalHarmonicDecomposition 1.0.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 sphericalHarmonicDecomposition 1.0.3
File Size Uploaded
sphericalHarmonicDecomposition-1.0.3.tar.gz 20.3 kB Details

Built distribution (wheel)

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

Total release size: 40.8 kB

Release files / sphericalHarmonicDecomposition-1.0.3.tar.gz

Download URL sphericalHarmonicDecomposition-1.0.3.tar.gz
Size 20.3 kB
Tags Source
SHA-256 checksum
How to use checksums
b5c12642df575739cd6e42ced81b40ed1c9617d938d2df2d23be2f669becb505
BLAKE2b-256 checksum
How to use checksums
c2dd6b6cdc7a640b6a304afcb449da728f0ec7bb175d582d8ed9325628b04154
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.5

Release files / sphericalHarmonicDecomposition-1.0.3-py3-none-any.whl

Download URL sphericalHarmonicDecomposition-1.0.3-py3-none-any.whl
Size 20.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f563fc5c365e23dad86436b30260ca7af71e1ef120d62f936dbc5f968b2a4e44
BLAKE2b-256 checksum
How to use checksums
17d343facfb3861d8312686205a49423e31cb6620b082b4e71b1eb3959771008
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.5

Release history Release notifications | RSS feed

This release

1.0.3 This release

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.0.1

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