Giter Site home page Giter Site logo

wavelet coherence issue about waipy HOT 2 CLOSED

nelerey avatar nelerey commented on July 25, 2024 1
wavelet coherence issue

from waipy.

Comments (2)

mabelcalim avatar mabelcalim commented on July 25, 2024

Hi Nele,
This issue is already fix! Install new version of waipy (python3 setup.py install) and try this on:

figname= 'figs/example.png' cross_power, coherence, phase_angle = waipy.cross_wavelet(result['wave'],result1['wave']) waipy.plot_cohere('signals',coherence,x,result, result1,figname)

Check the new waipy version and some new examples at:
cwa changeFreq example

and some prêt-à-porter version:
cwa prêt-à-porter

from waipy.

Kangarooamso avatar Kangarooamso commented on July 25, 2024

Hi
On running this code;
result = waipy.cwt(data_norm, 1, 1, 0.25, 2, 4/0.25, 0.72, 6, mother='Morlet',name='x'),
the following error occurs,
/home/okama/anaconda2/lib/python2.7/site-packages/waipy/cwt/lib_wavelet.pyc in wavelet(Y, dt, mother, param)
130 k_neg = [e * (-1) for e in k_neg] # negative part
131 k_neg = k_neg[1:-1] # delete the first value of k_neg = last value of k_pos
--> 132 k = np.concatenate((k_pos,k_neg), axis =1) # vector of symmetric
133 # compute fft of the padded time series
134 f = np.fft.fft(x,n)

AxisError: axis 1 is out of bounds for array of dimension 1

How do i solve it?

from waipy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.