<div dir="ltr"><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Dear NCL experts,</div><div><br></div><div>I would like to do Example 5 from this link:</div><div><a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/specx_anal.shtml">https://www.ncl.ucar.edu/Document/Functions/Built-in/specx_anal.shtml</a><br></div><div><br></div><div>I would like to get the mean spectrum of a one dimensional time series.</div><div>The above example requires that the input has the following format</div><div><br></div><div><b>x(nseg,ntim)</b></div><div><b><br></b></div><div>How do I convert my one dimensional data to this format? I would like to plot the JJAS mean spectrum and red noise.</div><div><br></div><div>I am attaching my sample data here. </div><div>This is JJAS daily rainfall anomaly from 1979-2018.</div><div><br></div><div>I'll appreciate any help on this matter.</div><div><br></div><div>Sincerely,</div><div>Lyndz</div></div></div></div></div></div></div></div></div></div></div></div></div>