https://github.com/fgerick/shtns.jl
Fast spherical harmonic transforms using C library SHTns
Science Score: 49.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
✓DOI references
Found 5 DOI reference(s) in README -
✓Academic publication links
Links to: arxiv.org -
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (15.0%) to scientific vocabulary
Keywords
Repository
Fast spherical harmonic transforms using C library SHTns
Basic Info
- Host: GitHub
- Owner: fgerick
- License: other
- Language: Julia
- Default Branch: master
- Homepage: https://fgerick.github.io/SHTns.jl/
- Size: 583 KB
Statistics
- Stars: 9
- Watchers: 4
- Forks: 3
- Open Issues: 5
- Releases: 3
Topics
Metadata Files
README.md
SHTns.jl
A Julia wrapper around the SHTns spherical harmonic transform library.
[!WARNING] This is WORK IN PROGRESS and will certainly have BREAKING changes.
Installation
julia
import Pkg; Pkg.add("SHTns")
Example usage
```julia using SHTns
cfg = SHTnsCfg(64) #define configuration
θ,ϕ = SHTns.grid(cfg) #get (co-)latitude and longitude d = @. 0.3*sin(ϕ') * sin(θ) #create some spatial data (0.3 Y₁¹)
q = SHTns.analys(cfg,d) #transform to spectral space q[SHTns.LM(cfg, 1,1)] ≈ 0.3sqrt(2π/3)im #true
d2 = SHTns.synth(cfg,q) #transform back to spatial space d2 ≈ d #true ```
Or we can do the same on a CUDA-enabled GPU! ```julia using CUDA
cfg_gpu = SHTnsCfg(64; shtype=SHTns.QuickInit(;gpu=true))
d_gpu = CuArray(d)
qgpu = SHTns.analys(cfggpu,dgpu) Array(qgpu)[SHTns.LM(cfg, 1,1)] ≈ 0.3sqrt(2π/3)im
d2gpu = SHTns.synth(cfggpu,qgpu) (dgpu ≈ d2gpu) && (Array(d2gpu) ≈ d) #true ```
License
SHTns.jl is distributed under the GPL-3.0 license in agreement with the CeCILL license of SHTns.
Copyright (c) 2010-2021 Centre National de la Recherche Scientifique. written by Nathanael Schaeffer (CNRS, ISTerre, Grenoble, France). SHTns is distributed under the open source CeCILL License (GPL compatible) located in the LICENSE file.
Citation
The SHTns guidelines read:
- A related research paper has been published: Efficient Spherical Harmonic Transforms aimed at pseudo-spectral numerical simulations, also available from arXiv.
If you use SHTns for research work, please cite this paper:
@article {shtns, author = {Schaeffer, Nathanael}, title = {Efficient spherical harmonic transforms aimed at pseudospectral numerical simulations}, journal = {Geochemistry, Geophysics, Geosystems}, doi = {10.1002/ggge.20071}, volume = {14}, number = {3}, pages = {751--758}, year = {2013}, }
If you use Ishioka's recurrence (the default since SHTns v3.4), you may also want to cite his paper:
@article {ishioka2018,
author={Ishioka, Keiichi},
title={A New Recurrence Formula for Efficient Computation of Spherical Harmonic Transform},
journal={Journal of the Meteorological Society of Japan},
doi = {10.2151/jmsj.2018-019}, volume={96}, number={2}, pages={241--249},
year={2018},
}
Owner
- Name: Felix Gerick
- Login: fgerick
- Kind: user
- Location: Toulouse
- Company: French National Centre for Space Studies (CNES)
- Website: fgerick.github.io
- Repositories: 5
- Profile: https://github.com/fgerick
Researcher in rotating fluid dynamics in planetary cores
GitHub Events
Total
- Create event: 2
- Commit comment event: 3
- Release event: 1
- Issues event: 5
- Watch event: 6
- Issue comment event: 14
- Push event: 16
- Pull request event: 5
- Fork event: 2
Last Year
- Create event: 2
- Commit comment event: 3
- Release event: 1
- Issues event: 5
- Watch event: 6
- Issue comment event: 14
- Push event: 16
- Pull request event: 5
- Fork event: 2
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 4
- Total pull requests: 2
- Average time to close issues: 5 months
- Average time to close pull requests: 5 minutes
- Total issue authors: 3
- Total pull request authors: 2
- Average comments per issue: 1.75
- Average comments per pull request: 0.0
- Merged pull requests: 1
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 4
- Pull requests: 2
- Average time to close issues: 5 months
- Average time to close pull requests: 5 minutes
- Issue authors: 3
- Pull request authors: 2
- Average comments per issue: 1.75
- Average comments per pull request: 0.0
- Merged pull requests: 1
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- nschaeff (2)
- fgerick (2)
- AshtonSBradley (1)
- JuliaTagBot (1)
Pull Request Authors
- fgerick (2)
- nschaeff (1)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- julia 22 total
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 3
juliahub.com: SHTns
Fast spherical harmonic transforms using C library SHTns
- Homepage: https://fgerick.github.io/SHTns.jl/
- Documentation: https://docs.juliahub.com/General/SHTns/stable/
- License: GPL-3.0-or-later
-
Latest release: 0.3.0
published 11 months ago
Rankings
Dependencies
- actions/checkout v2 composite
- codecov/codecov-action v3 composite
- julia-actions/cache v1 composite
- julia-actions/julia-buildpkg v1 composite
- julia-actions/julia-docdeploy v1 composite
- julia-actions/julia-processcoverage v1 composite
- julia-actions/julia-runtest v1 composite
- julia-actions/setup-julia v1 composite