[ncl-talk] power spectra for seasonal rainfall dataset

Dennis Shea shea at ucar.edu
Thu Feb 20 16:55:08 MST 2020


The *mjoclivar_7.ncl *script invokes the *mjo_spectra*
<http://www.ncl.ucar.edu/Document/Functions/Diagnostics/mjo_spectra.shtml>
procedure. This is a driver which computes and plots the seasonally
averaged spectra. The seasonal spectra are internally calculated via the
*mjo_spectra_season*
<http://www.ncl.ucar.edu/Document/Functions/Diagnostics/mjo_spectra_season.shtml>
function.

The issue is that the data array:  precip(time,lat,lon ===> precip(3496, 1,
1)
contains daily precipitation for March-April-May [MAM] only. for years:
1981-2018 [38 years].

Each season is 92 days. So (38 years )*(92 days)= 3496 days.

The *mjo_spectra* procedure and *mjo_spectra_season *function are expecting
complete years not a concatenated series.

I've attached a script and plot that performs segment averaging spectra
from 38 segments of 92 days..

HTH
D



On Thu, Feb 20, 2020 at 9:09 AM Edwin Marco via ncl-talk <ncl-talk at ucar.edu>
wrote:

> Hello NCL users,
>
> I am new to ncl, I was wondering if you could help me on how to go about
> plotting power spectra for a specific rainfall season, let say, March-May
> rainfall season. I have been trying to use
> https://ncl.ucar.edu/Applications/Scripts/mjoclivar_7.ncl but I am
> getting difficult on how I can customize  mjoclivar_7.ncl for my season of
> interest. I am attaching my sample data for your help.
> Edwin
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200220/a7f334ab/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rainfall_spectra_1981_2018_mam.ncl
Type: application/octet-stream
Size: 2886 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200220/a7f334ab/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Marco.png
Type: image/png
Size: 74877 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200220/a7f334ab/attachment.png>


More information about the ncl-talk mailing list