2023-12-01 15:52:31 +01:00
# [PyWavelets](https://pywavelets.readthedocs.io/en/latest/) -- Wavelet Transforms in Python
## The goal
How do we do wavelet transforms under Python?
Questions to [David Rotermund ](mailto:davrot@uni-bremen.de )
You might want to read: [A Practical Guide to Wavelet Analysis ](https://paos.colorado.edu/research/wavelets/ ) -> [PDF ](https://paos.colorado.edu/research/wavelets/bams_79_01_0061.pdf )
2023-12-01 16:03:21 +01:00
```shell
2023-12-01 16:00:21 +01:00
pip install PyWavelets
```
2023-12-01 15:52:31 +01:00
## Which [continuous mother wavelets](https://pywavelets.readthedocs.io/en/latest/ref/cwt.html#continuous-wavelet-families) are available?
2023-12-01 15:59:30 +01:00
```python
import pywt
wavelet_list = pywt.wavelist(kind="continuous")
print(wavelet_list)
```
2023-12-01 16:03:21 +01:00
```Python console
2023-12-01 15:59:30 +01:00
['cgau1', 'cgau2', 'cgau3', 'cgau4', 'cgau5', 'cgau6', 'cgau7', 'cgau8', 'cmor', 'fbsp', 'gaus1', 'gaus2', 'gaus3', 'gaus4', 'gaus5', 'gaus6', 'gaus7', 'gaus8', 'mexh', 'morl', 'shan']
```
2023-12-01 16:05:02 +01:00
* The mexican hat wavelet "mexh"
* The Morlet wavelet "morl"
* The complex Morlet wavelet ("cmorB-C" with floating point values B, C)
* The Gaussian wavelets ("gausP" where P is an integer between 1 and and 8)
* The complex Gaussian wavelets ("cgauP" where P is an integer between 1 and 8)
* The Shannon wavelets ("shanB-C" with floating point values B and C)
* The frequency B-spline wavelets ("fpspM-B-C" with integer M and floating point B, C)
see [Choosing the scales for cwt ](https://pywavelets.readthedocs.io/en/latest/ref/cwt.html#choosing-the-scales-for-cwt )
## Visualizing wavelets