[ncl-talk] Power spectral analysis NCL

Lyndz olagueralyndonmark429 at gmail.com
Wed Nov 14 19:34:24 MST 2018


Dear NCL-experts,

I am trying to perform a power spectral analysis using NCL.

Attached are my script, output, and input data.

*Problem:*

I was able to do the example 1 from this page:
https://www.ncl.ucar.edu/Applications/spec.shtml
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.
Also attached is the sample expected output (expected_output.png).

Any suggestions on how I can modify my script to do this?
The output of the original script is "variance" vs "frequency".

I'll appreciate any help.

*Lyndz*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20181115/211cc87d/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_fldmean.png
Type: image/png
Size: 63548 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20181115/211cc87d/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: spec_csv_type1.ncl
Type: application/octet-stream
Size: 941 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20181115/211cc87d/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clim.csv
Type: text/csv
Size: 1926 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20181115/211cc87d/attachment.csv>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: expected_output.png
Type: image/png
Size: 14459 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20181115/211cc87d/attachment-0001.png>


More information about the ncl-talk mailing list