https://github.com/fgerick/shtns.jl

Fast spherical harmonic transforms using C library SHTns

https://github.com/fgerick/shtns.jl

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

geophysical-fluid-dynamics geophysical-modeling gpu legendre spherical-geometry spherical-harmonics
Last synced: 4 months ago · JSON representation

Repository

Fast spherical harmonic transforms using C library SHTns

Basic Info
Statistics
  • Stars: 9
  • Watchers: 4
  • Forks: 3
  • Open Issues: 5
  • Releases: 3
Topics
geophysical-fluid-dynamics geophysical-modeling gpu legendre spherical-geometry spherical-harmonics
Created about 8 years ago · Last pushed 5 months ago
Metadata Files
Readme License

README.md

SHTns.jl

Stable Dev Build Status Codecov

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:

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)

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

  • Versions: 3
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 22 Total
Rankings
Dependent repos count: 9.9%
Average: 24.6%
Dependent packages count: 39.4%
Last synced: 5 months ago

Dependencies

.github/workflows/CI.yml actions
  • 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