<div dir="ltr"><div dir="ltr"><div>Dear NCL-experts,</div><div><br></div><div>I am trying to perform a power spectral analysis using NCL.</div><div><br></div><div>Attached are my script, output, and input data.</div><div><br></div><div><b>Problem:</b></div><div><br></div><div>I was able to do the example 1 from this page: <a href="https://www.ncl.ucar.edu/Applications/spec.shtml">https://www.ncl.ucar.edu/Applications/spec.shtml</a></div><div>However, instead of variance, I would like the y axis to be the square of rainfall (power to 2) and the x-axis to be in years.</div><div>Also attached is the sample expected output (expected_output.png).</div><div><br></div><div>Any suggestions on how I can modify my script to do this?</div><div>The output of the original script is "variance" vs "frequency".</div><div><br></div><div>I'll appreciate any help.</div><br clear="all"><div><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><font face="comic sans ms, sans-serif"><b><u>Lyndz</u></b></font></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>