Skip to content
mwyauPublic

About

Rust spherical harmonic transforms library

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

RustSHT

RustSHT implements spherical harmonic transforms in Rust, using DUCC as its numerical reference. It supports scalar and spin-weighted synthesis and analysis, their adjoints, scalar derivatives and gradient-only synthesis on Gauss–Legendre (GL), Clenshaw–Curtis (CC) and Fejér-1 (F1) grids through Rust and Python APIs.

Rust API migration

The former rustsht::pyspharm Rust module has been removed. Its numerical functions now live beside their mathematical owners:

Former path Current path
rustsht::pyspharm::associated_legendre_{f32,f64} rustsht::legendre::pointwise::associated_legendre_{f32,f64}
rustsht::pyspharm::specintrp_{f32,f64} rustsht::evaluation::interpolate_spectrum_at_longitude_{f32,f64}
rustsht::pyspharm::synthesize_at_point(s)_{f32,f64} rustsht::evaluation::synthesize_at_point(s)_{f32,f64}
rustsht::pyspharm::{GeodesicPoint, geodesic_points} rustsht::grid::geodesic::{GeodesicPoint, geodesic_points}
GeodesicPoint::pyspharm_lat_lon_degrees GeodesicPoint::legacy_lat_lon_degrees

The pointwise basis keeps its non-Condon–Shortley phase, packing order and degree-zero normalization. The Python package and spharm_rs API are unchanged.

References

License

GPL-2.0-or-later. Copyright (c) 2026 Albert M. W. Yau and contributors.

About

Rust spherical harmonic transforms library

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages