-
Notifications
You must be signed in to change notification settings - Fork 103
/
__init__.py
78 lines (65 loc) · 2.7 KB
/
__init__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
"""
pyshtools
=========
pyshtools a scientific package that can be used to perform spherical harmonic
transforms and reconstructions, rotations of data expressed in spherical
harmonics, and multitaper spectral analyses on the sphere.
This module imports the following classes and subpackages into the
main namespace:
SHCoeffs : Class for spherical harmonic coefficients.
SHGrid : Class for global grids.
SHWindow : Class for localized spectral analyses.
Slepian : Class for Slepian functions.
SHGravCoeffs : Class for gravitational potential spherical harmonic
coefficients.
SHMagCoeffs : Class for magnetic potential spherical harmonic
coefficients.
shclasses : All pyshtools classes and subclasses.
shtools : All Python-wrapped Fortran 95 routines.
constants : pyshtools constants.
legendre : Legendre functions.
expand : Spherical harmonic expansion routines.
shio : Spherical harmonic I/O, storage, and conversion
routines.
spectralanalysis : Global and localized spectral analysis routines.
rotate : Spherical harmonic rotation routines.
gravmag : Gravity and magnetics routines.
utils : pyshtools utilities.
backends : Routines for selecting the spherical harmonic
transform backend.
For further information, consult the web documentation at
https://shtools.github.io/SHTOOLS/
and the GitHub project page at
https://github.com/SHTOOLS/SHTOOLS
"""
from importlib.metadata import version, PackageNotFoundError
# ---- Import shtools subpackages ----
from . import backends
from . import constants
from . import shclasses
from . import datasets
from . import legendre
from . import expand
from . import shio
from . import spectralanalysis
from . import rotate
from . import gravmag
from . import utils
# ---- Import principal classes into pyshtools namespace
from .shclasses import SHCoeffs
from .shclasses import SHGrid
from .shclasses import SHWindow
from .shclasses import Slepian
from .shclasses import SHGravCoeffs
from .shclasses import SHMagCoeffs
try:
__version__ = version('pyshtools')
except PackageNotFoundError:
# package is not installed
pass
__author__ = 'SHTOOLS developers'
# ---- Define __all__ for use with: from pyshtools import * ----
__all__ = ['constants', 'shclasses', 'legendre', 'expand', 'shio', 'shtools',
'spectralanalysis', 'rotate', 'gravmag', 'utils', 'backends',
'SHCoeffs', 'SHGrid', 'SHWindow', 'Slepian', 'SHGravCoeffs',
'SHMagCoeffs', 'datasets']