GithubHelp home page GithubHelp logo

polarch / spherical-harmonic-transform Goto Github PK

View Code? Open in Web Editor NEW
132.0 132.0 40.0 1.25 MB

A collection of MATLAB routines for the Spherical Harmonic Transform and related manipulations in the spherical harmonic spectrum.

License: BSD 3-Clause "New" or "Revised" License

MATLAB 100.00%

spherical-harmonic-transform's People

Contributors

chris-hld avatar leomccormack avatar polarch avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

spherical-harmonic-transform's Issues

3D data

how can o use it with 3D datas?

Lack of MATLAB/Octave version compatibility

There is no information what version of MATLAB is suitable for running the library and demo.
I've found that MATLAB demo run OK for 2015b, but fails for release 2011b, 2009b.
In version 2011b, the source of problems is expression "h.Position(3)" present in demo.
If I comment all of those expressions, demo is run OK in 2011b

There is no information what MATLAB packages are required to run the library and demo.
At least, one required package is "Symbolic Math Toolbox" (which is referenced in w3j.m module)

  1. Octave works for most of the demo, but fails at the code that uses "Symbolic Math Toolbox".

Outdated `inverseSHT` header documentation

The documentation of the inverseSHT function parameters is very confusing and should be updated, if possible. :)

function F = inverseSHT(F_N, dirs, basisType)
%INVERSE_SHT Perform the inverse spherical harmonic transform
%
% N: maximum order of harmonics
% F: the spherical function recreated at directions 'dirs'
% dirs: [azimuth inclination] angles in rads for each evaluation point,
% where inclination is the polar angle from zenith
% theta = pi/2-elevation
% basisType: 'complex' or 'real' spherical harmonics
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Error when cloning with LFS objects

I tried a git pull after the two recent commits. The pull, failed and I didn't pay much attention to fixing it. I removed the entire directory and restarted with a fresh clone, resulting in the following error.

git clone https://github.com/polarch/Spherical-Harmonic-Transform.git
Cloning into 'Spherical-Harmonic-Transform'...
remote: Enumerating objects: 146, done.
remote: Counting objects: 100% (16/16), done.
remote: Compressing objects: 100% (14/14), done.
remote: Total 146 (delta 4), reused 9 (delta 2), pack-reused 130
Receiving objects: 100% (146/146), 1.25 MiB | 3.37 MiB/s, done.
Resolving deltas: 100% (70/70), done.
Downloading Gaunt_matrices_30_30_30_sparse.mat (291 MB)
Error downloading object: Gaunt_matrices_30_30_30_sparse.mat (73d84a6): Smudge error: Error downloading Gaunt_matrices_30_30_30_sparse.mat (73d84a6ed72dcba68cc21b027768185fe6d975a77a1e335ab35fef8e9185908a): batch response: This repository is over its data quota. Account responsible for LFS bandwidth should purchase more data packs to restore access.

Errors logged to 'Spherical-Harmonic-Transform/.git/lfs/logs/20231207T203923.679184.log'.
Use `git lfs logs last` to view the log.
error: external filter 'git-lfs filter-process' failed
fatal: Gaunt_matrices_30_30_30_sparse.mat: smudge filter lfs failed
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'

I'm unsure if this was also causing the issue when doing git pull on an existing clone. Either way, this may hinder a lot of people who are interested in your valuable repo! :)

My first impression from quickly looking up the error is that this is a minor misconfiguration of the repository, which can be fixed in the repo settings on GitHub, i.e., it requires your intervention. However, I don't have experience with LFS so far.

Nan when the SH order reaches 160

Hi!

I like your code very much. However, I obtained NAN while using inverseSHT when the spherical harmonic order reaches 160. What is the upper bound of the order? Can you also compute higher order transform?

Many thanks,
Jia

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.