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
The FLAG code provides functionality to perform fast and exact
20
-
Fourier-Laguerre and Fourier-Bessel transforms on the ball.
28
+
The FLAG code provides functionality to perform fast and exact Fourier-Laguerre and Fourier-Bessel transforms on the ball. More details may be found in the extensive `documentation <https://astro-informatics.github.io/flag/>`_.
21
29
22
-
DOCUMENTATION
30
+
BASIC USAGE
23
31
================================
32
+
First install flag for python by running
24
33
25
-
See doc/index.html
34
+
.. code-block:: bash
26
35
27
-
INSTALLATION
28
-
================================
36
+
pip install pyflag
29
37
38
+
Then you can call it from python to perform forward and inverse flag transforms and their adjoints by
30
39
31
-
.. code-block:: bash
40
+
.. code-block:: python
41
+
42
+
import pyflag as flag
43
+
import numpy as np
44
+
45
+
L =10# Angular bandlimit
46
+
P =5# Radial bandlimit
47
+
tau =1# Laguerre scaling factor
48
+
spin =0# Spin of signal
49
+
reality =0# Real or complex signals
50
+
51
+
# Create a random complex signal (c indexing)
52
+
f = np.random.rand(P, L, 2*L-1) +1j*np.random.rand(P, L, 2*L-1)
See the `code webiste <https://astro-informatics.github.io/flag/>`_ for full documentation and installation procedures.
28
+
The FLAG code provides functionality to perform fast and exact Fourier-Laguerre and Fourier-Bessel transforms on the ball. More details may be found in the extensive `documentation <https://astro-informatics.github.io/flag/>`_.
24
29
25
30
INSTALLATION
26
31
================================
27
32
This package can easily be installed from PyPi by running
28
33
29
34
.. code-block:: bash
30
35
31
-
pip install flag
36
+
pip install pyflag
32
37
pip list
33
38
34
39
or alternatively from source by first compiling the C++ code and running
@@ -39,6 +44,28 @@ or alternatively from source by first compiling the C++ code and running
39
44
40
45
from the root directory.
41
46
47
+
BASIC USAGE
48
+
================================
49
+
First install flag for python, then you can call it from any python script to perform forward and inverse flag transforms and their adjoints by
50
+
51
+
.. code-block:: python
52
+
53
+
import pyflag as flag
54
+
import numpy as np
55
+
56
+
L =10# Angular bandlimit
57
+
P =5# Radial bandlimit
58
+
tau =1# Laguerre scaling factor
59
+
spin =0# Spin of signal
60
+
reality =0# Real or complex signals
61
+
62
+
# Create a random complex signal (c indexing)
63
+
f = np.random.rand(P, L, 2*L-1) +1j*np.random.rand(P, L, 2*L-1)
0 commit comments