You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/pyssht/SSHT_Python_Documentation.md
+26-3Lines changed: 26 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,11 @@
1
1
# SSHT Python Documentation
2
2
3
-
This guide is intended to explain the python interface of SSHT. For a description of the workings of SSHT see [here](http://astro-informatics.github.io/ssht/"SSHT documentation")
3
+
This guide is intended to explain the python interface of SSHT. For a
4
+
description of the workings of SSHT see
5
+
[here](http://astro-informatics.github.io/ssht/"SSHT documentation"). The
6
+
python package also offers an interface to some of the functionality from
7
+
[ducc0](https://pypi.org/project/ducc0/), including forward and inverse
8
+
transforms.
4
9
5
10
## pyssht.forward
6
11
@@ -22,6 +27,11 @@ Performs the forward spherical harmonic transform.
22
27
4.`'DH'`[Driscoll & Healy sampling]
23
28
5.`'GL'`[Gauss-Legendre sampling]
24
29
*`Reality` determines if the signal is real or complex, Boolean (default = False)
30
+
*`backend` the backend that runs the transforms:
31
+
1.`'SSHT'` this package
32
+
2.`'ducc'` interface to [ducc0](https://pypi.org/project/ducc0/). "MW_pole"
33
+
is not available in this backend.
34
+
*`nthreads`: number of threads when calling into the `'ducc'` backend. Ignored otherwise.
25
35
26
36
#### Output
27
37
@@ -54,6 +64,11 @@ Performs the inverse spherical harmonic transform.
54
64
4.`'DH'`[Driscoll & Healy sampling]
55
65
5.`'GL'`[Gauss-Legendre sampling]
56
66
*`Reality` determines if the signal is real or complex, Boolean (default = False)
67
+
*`backend` the backend that runs the transforms:
68
+
1.`'SSHT'` this package
69
+
2.`'ducc'` interface to [ducc0](https://pypi.org/project/ducc0/). "MW_pole"
70
+
is not available in this backend.
71
+
*`nthreads`: number of threads when calling into the `'ducc'` backend. Ignored otherwise.
57
72
58
73
#### Output
59
74
@@ -105,6 +120,11 @@ Performs the adjoint of the inverse spherical harmonic transform.
105
120
1.`'MW'`[McEwen & Wiaux sampling (default)]
106
121
2.`'MWSS'`[McEwen & Wiaux symmetric sampling]
107
122
*`Reality` determines if the signal is real or complex, Boolean (default = False)
123
+
*`backend` the backend that runs the transforms:
124
+
1.`'SSHT'` this package
125
+
2.`'ducc'` interface to [ducc0](https://pypi.org/project/ducc0/). "MW_pole"
126
+
is not available in this backend.
127
+
*`nthreads`: number of threads when calling into the `'ducc'` backend. Ignored otherwise.
108
128
109
129
#### Output
110
130
@@ -770,10 +790,13 @@ Function to rotate a set of spherical harmonic coefficients by the set of Euler
770
790
*`beta` rotation angle \(\beta\), type `double`
771
791
*`gamma` rotation angle \(\gamma\), type `double`
772
792
*`L` the band limit of the signal, non-zero positive integer
773
-
*`dl_array` if set should be the precomputed small Wigner D matrix for angle \(\beta\) and harmonic band limit `L`. If not set this is calculated in the function.
793
+
*`dl_array` if set should be the precomputed small Wigner D matrix for angle \(\beta\) and harmonic band limit `L`. If not set this is calculated in the function. (This parameter is ignored when using the `ducc` backend.)
774
794
*`M` if set is the azimuthal band limit of the function to be rotated, default `M=L`.
775
795
*`Axisymmetric` set if the function is axisymmetric and axisymmetric harmonic coefficients are parsed.
776
-
*`Keep_dl` if set the output is changed to allow one to keep the computed `dl_array`
796
+
*`Keep_dl` if set the output is changed to allow one to keep the computed `dl_array`. (This parameter is ignored when using the `ducc` backend.)
797
+
*`backend` the backend that runs the transforms:
798
+
1.`'SSHT'` this package
799
+
2.`'ducc'` interface to [ducc0](https://pypi.org/project/ducc0/)
0 commit comments