<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div class="">Hi Lyndz,</div>
<div class=""><br class="">
</div>
<div class="">I believe going back to the wavelet function is your best bet. The examples are there to help guide your decision making, but the actual function explicitly tells the user what each component executes. </div>
<div class=""><br class="">
</div>
<div class=""><a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/wavelet.shtml" class="">https://www.ncl.ucar.edu/Document/Functions/Built-in/wavelet.shtml</a></div>
<div class=""><br class="">
</div>
<div class="">Prototype<br class="">
<br class="">
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>function wavelet (</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>y        [*] : numeric,  </div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>mother   [1] : integer,  </div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>dt       [1] : numeric,  </div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>param    [1] : numeric,  </div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>s0       [1] : numeric,  </div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>dj       [1] : numeric,  </div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>jtot     [1] : integer,  </div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>npad     [1] : integer,  </div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>noise    [1] : integer,  </div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>isigtest [1] : integer,  </div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>siglvl   [1] : numeric,  </div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>nadof    [*] : numeric   </div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>)</div>
<div class=""><br class="">
</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span></div>
return_val [2][jtot][dimsizes(y)] :  float or double</div>
<div class=""><br class="">
</div>
<div class="">…</div>
<div class=""><br class="">
</div>
<div class="">dt<br class="">
The amount of time between each y value; i.e. the sampling time. (Most commonly, dt = 1.0.)<br class="">
<br class="">
<br class="">
</div>
<div class=""><br class="">
</div>
<div class="">Cheers,</div>
<div class="">-Jonathan</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<br class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">On Oct 1, 2021, at 10:36 AM, Lyndz via ncl-talk <<a href="mailto:ncl-talk@mailman.ucar.edu" class="">ncl-talk@mailman.ucar.edu</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">
<div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">
<div dir="ltr" class="">
<div dir="ltr" class="">
<div dir="ltr" class="">
<div dir="ltr" class="">
<div dir="ltr" class="">
<div dir="ltr" class="">
<div dir="ltr" class="">
<div dir="ltr" class="">
<div dir="ltr" class="">
<div dir="ltr" class="">
<div class="">Dear NCL-experts,</div>
<div class=""><br class="">
</div>
<div class="">I would like to plot the wavelet from a daily time series (40 summers; 121 days)</div>
<div class="">X axis is years and Y axis is Period (days).</div>
<div class=""><br class="">
</div>
<div class="">The examples on the web page appear to be for one value per year only.</div>
<div class=""><br class="">
</div>
<div class="">I attached the sample data to this email and the script from here: </div>
<div class=""><a href="https://www.ncl.ucar.edu/Applications/wavelet.shtml" class="">https://www.ncl.ucar.edu/Applications/wavelet.shtml</a><br class="">
<br class="">
</div>
<div class="">I encounter this error:</div>
<div class=""><font color="#ff0000" class="">fatal:NclOneDValGetRangeIndex: Non-monotonic coordinate value being used, can't complete coordinate subscript<br class="">
fatal:Could not obtain coordinate indexes, unable to perform subscript<br class="">
fatal:["Execute.c":8637]:Execute: Error occurred at or near line 92 in file wavelet.ncl</font><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">I would like to ask, what values should I put in these lines (for the power() and sig():</div>
<div class=""><br class="">
</div>
<div class=""><b class="">plot(0) = gsn_csm_contour(wks,power({0:43},0:121),res)</b></div>
<div class=""><b class="">plot(1) = gsn_csm_contour(wks,SIG({0:43},0:121),res)</b><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">Is it correct to specify dt = 122 for the wavelet function?</div>
<div class=""><br class="">
</div>
<div class="">I'll appreciate any help on this.</div>
<div class=""><br class="">
</div>
<div class="">Sincerely,</div>
<div class="">Lyndz</div>
<div class=""><br class="">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<span id="cid:f_ku83ofqa0"><sample_jjas_rain_data.csv></span><span id="cid:f_ku843gim1"><wavelet_plot.ncl></span>_______________________________________________<br class="">
ncl-talk mailing list<br class="">
<a href="mailto:ncl-talk@mailman.ucar.edu" class="">ncl-talk@mailman.ucar.edu</a><br class="">
List instructions, subscriber options, unsubscribe:<br class="">
https://mailman.ucar.edu/mailman/listinfo/ncl-talk</div>
</blockquote>
</div>
<br class="">
</body>
</html>