<html><head></head><body><div class="ydpe3993869yahoo-style-wrap" style="font-family: bookman old style, new york, times, serif; font-size: 16px;"><div style="font-family: bookman old style, new york, times, serif; font-size: 16px;"></div>
        <div dir="ltr" data-setdir="false" style="font-family: bookman old style, new york, times, serif; font-size: 16px;">Dear Lyndz,</div><div dir="ltr" data-setdir="false" style="font-family: bookman old style, new york, times, serif; font-size: 16px;">I'm interested about your previous problem with this script which was:</div><div dir="ltr" data-setdir="false" style="font-size: 16px;"><font face="courier new, courier, monaco, monospace, sans-serif">fatal:Plus: Dimension size, for dimension number 0, of operands does not match, can't continue<br></font></div><div dir="ltr" data-setdir="false" style="font-size: 16px;"><font face="courier new, courier, monaco, monospace, sans-serif">fatal:["Execute.c":8637]:Execute: Error occurred at or near line 39 in file spectral_mean_plot.ncl</font><br></div><div dir="ltr" data-setdir="false" style="font-family: bookman old style, new york, times, serif; font-size: 16px;"><br></div><div dir="ltr" data-setdir="false" style="font-family: bookman old style, new york, times, serif; font-size: 16px;">I would like to know how did you fix it.</div><div dir="ltr" data-setdir="false" style="font-family: bookman old style, new york, times, serif;"><i style=""><font size="2">Sincerely,</font></i></div><div dir="ltr" data-setdir="false" style="font-family: bookman old style, new york, times, serif;"><i style=""><font size="2">Ehsan</font></i></div><div style="font-family: bookman old style, new york, times, serif; font-size: 16px;"><br></div>
        
        </div><div id="yahoo_quoted_2530796186" class="yahoo_quoted">
            <div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
                
                <div>
                    On Friday, September 17, 2021, 09:01:12 AM GMT+4:30, Lyndz via ncl-talk <ncl-talk@mailman.ucar.edu> wrote:
                </div>
                <div><br></div>
                <div><br></div>
                <div><div id="yiv5775474057"><div><div dir="ltr">Thanks Sir Dennis!<div><br clear="none"></div><div>-Lyndz</div></div><br clear="none"><div class="yiv5775474057yqt1601973478" id="yiv5775474057yqt11183"><div class="yiv5775474057gmail_quote"><div class="yiv5775474057gmail_attr" dir="ltr">On Fri, Sep 17, 2021 at 10:39 AM Dennis Shea <<a rel="nofollow noopener noreferrer" shape="rect" ymailto="mailto:shea@ucar.edu" target="_blank" href="mailto:shea@ucar.edu">shea@ucar.edu</a>> wrote:<br clear="none"></div><blockquote class="yiv5775474057gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex;"><div dir="ltr"><div>As notes in the <a rel="nofollow noopener noreferrer" shape="rect" target="_blank" href="http://www.ncl.ucar.edu/Document/Functions/Built-in/specx_anal.shtml"><b>specx_anal</b></a> documentation: <br clear="none"></div><div>-====<br clear="none"></div><div><p>

These spectra have been normalized so that the area under the curve:

</p><blockquote>
(<i>spcx</i>(0)+<i>spcx</i>(<i>N</i>/2-1))*(df/2) +
SUM{<i>spcx</i>(1:N/2-2)*df}
</blockquote>

equals the variance of the detrended series, where
df=(1/<i>N</i>)=frequency spacing.<p>

The units are variance/(unit frequency interval).</p><p>====</p><p>You know the frequencies corresponding to  5-to-10 days.</p><p><br clear="none"></p><p>5-to-10day variance:   var_510 = SUM{<i>spcx</i>('f5->f10')*df} <br clear="none"></p><p><br clear="none"></p><p>fractional_variance = var_510/total_variance<br clear="none"></p><p><br clear="none"></p><p><br clear="none"></p></div></div><br clear="none"><div class="yiv5775474057gmail_quote"><div class="yiv5775474057gmail_attr" dir="ltr">On Thu, Sep 16, 2021 at 2:39 AM Lyndz via ncl-talk <<a rel="nofollow noopener noreferrer" shape="rect" ymailto="mailto:ncl-talk@mailman.ucar.edu" target="_blank" href="mailto:ncl-talk@mailman.ucar.edu">ncl-talk@mailman.ucar.edu</a>> wrote:<br clear="none"></div><blockquote class="yiv5775474057gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex;"><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 dir="ltr"><div dir="ltr"><div dir="ltr"><div>Dear NCL-experts,</div><div><br clear="none"></div><div>I have a sample data that I attached here and below is the script that I used to plot the spectra.</div><div><br clear="none"></div><div>I found significant peaks between 5-10 (days).</div><div><br clear="none"></div><div>I would like to ask how to estimate the fractional variance of total rainfall variability explained by this 5-10 days ISO. Im not sure if this can be estimated from the spectra. If not, any suggestions on how to do this NCL?</div><div><br clear="none"></div><div><br clear="none"></div><div>-Lyndz</div></div></div></div></div></div></div></div></div></div></div></div></div></div>
_______________________________________________<br clear="none">
ncl-talk mailing list<br clear="none">
<a rel="nofollow noopener noreferrer" shape="rect" ymailto="mailto:ncl-talk@mailman.ucar.edu" target="_blank" href="mailto:ncl-talk@mailman.ucar.edu">ncl-talk@mailman.ucar.edu</a><br clear="none">
List instructions, subscriber options, unsubscribe:<br clear="none">
<a rel="nofollow noopener noreferrer" shape="rect" target="_blank" href="https://mailman.ucar.edu/mailman/listinfo/ncl-talk">https://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></blockquote></div>
</blockquote></div></div>
</div></div><div class="yqt1601973478" id="yqt24640">_______________________________________________<br clear="none">ncl-talk mailing list<br clear="none"><a shape="rect" ymailto="mailto:ncl-talk@mailman.ucar.edu" href="mailto:ncl-talk@mailman.ucar.edu">ncl-talk@mailman.ucar.edu</a><br clear="none">List instructions, subscriber options, unsubscribe:<br clear="none"><a shape="rect" href="https://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">https://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></div></div>
            </div>
        </div></body></html>