Cookbook

  1. Download de package

Go to the page:

https://pypi.python.org/pypi/waipy/

Download waipy-version.tar.gz

  1. Unpacked in you download dir:

    tar -vzxf waipy-version.tar.gz
  2. Enter into the directory:

    cd waipy-version
  3. Install package:

    python setup.py install
  4. Open ipython:

    ipython
    import waipy
    # loading data for test
    data,time = waipy.load_txt('sst_nino3.dat',0.25,1871)
    # normalizing time series
    data_norm = waipy.normalize(data)
    # calculating continuos wavelet transform using Morlet wavelet
    result = waipy.cwt(data_norm,0.25,1,0.25,2*0.25,7/0.25,0.72,6,'Morlet')
    # ploting the result - impath: 'Users/you/figures/'
    waipy.wavelet_plot('SST_NINO3',time,data,0.03125,result,impath)
    
    
    CROSS ANALYSIS
    cross_power, coherence = waipy.cross_wavelet(result['wave'],result['wave'])
    waipy.plot_cross(cross_power,time,result)
    waipy.plot_cohere(coherence,time,result)
Read the Docs v: latest
Versions
latest
Downloads
PDF
HTML
Epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.