<div dir="ltr">The &#39;specx_anal&#39; documentation clearly states that &quot;Missing values are not
allowed. &quot;<br>=================<br><h2><span style="font-weight:normal">Prototype</span></h2>
<pre>        function specx_anal (
                x    [*] : numeric,  
                iopt [1] : integer,  
                jave [1] : integer,  
                pct  [1] : numeric   
        )

        <a href="http://www.ncl.ucar.edu/Document/Functions/return_val.shtml">return_val</a> [1] :  float or double
</pre>
<a name="Arguments"></a>
<h2><span style="font-weight:normal">Arguments</span></h2>
<em>x</em>
<p class="gmail-indent">A one-dimensional array containing the data.  Missing values are not
allowed. <br></p><p class="gmail-indent">==================</p><p class="gmail-indent">You could do</p><p class="gmail-indent">     aao@_FillValue = 0.0      ; change: _FillValue = 3.000000060858434e+33</p><p class="gmail-indent">     delete(aao@_FillValue)   ; delete recognition of _FillValue <br></p><p class="gmail-indent">There will be no error messages returned bu specx_anal and you will get &#39;numbers&#39;<br></p><p class="gmail-indent">***BUT***</p><p class="gmail-indent">they are *not* the correct numbers. These 0-values will affect the calculated spectrum.</p><p class="gmail-indent"><br></p><p class="gmail-indent">=================</p><p class="gmail-indent">You must ****intelligently**** fill the _FillValue locations. Any old numbers (eg: 0) will not accomplist this taks.</p><p class="gmail-indent"><br></p><p class="gmail-indent">++++++++++++++++++++++++++++++++++++++++++++++++</p><p class="gmail-indent">Please become familiar with:  <a href="https://climatedataguide.ucar.edu/">https://climatedataguide.ucar.edu/</a></p><p class="gmail-indent">Search fo AAO (or, equivalently, SAM)</p><p class="gmail-indent"><a href="https://climatedataguide.ucar.edu/climate-data/overview-climate-indices">https://climatedataguide.ucar.edu/climate-data/overview-climate-indices</a><br></p><p class="gmail-indent"><a href="https://climatedataguide.ucar.edu/climate-data/marshall-southern-annular-mode-sam-index-station-based">https://climatedataguide.ucar.edu/climate-data/marshall-southern-annular-mode-sam-index-station-based</a></p><p class="gmail-indent">The latter has &quot;Get Data (External)&quot;  .... Click and get the data you want.</p><p class="gmail-indent"><br></p><p class="gmail-indent"><br></p><p class="gmail-indent"><br></p><p class="gmail-indent"><br></p><p class="gmail-indent">  <br></p><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 17, 2017 at 3:52 AM, Kwesi Quagraine <span dir="ltr">&lt;<a href="mailto:starskykwesi@gmail.com" target="_blank">starskykwesi@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Hello NCLers, I am currently trying to make a spectral analysis plot from a AAO indices (timeseries 1980-2016) netcdf file using the script (following spec_1 from ncl website) below and I get this error &quot;fatal:specx_anal: &#39;x&#39; cannot contain any missing values&quot;.<br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><br>[1] I have tried setting aao@_FillValue = 0 but to no avail<br><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Any help will be much appreciated.<br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><br><br>load &quot;$NCARG_ROOT/lib/ncarg/<wbr>nclscripts/csm/gsn_code.ncl&quot;<br>load &quot;$NCARG_ROOT/lib/ncarg/<wbr>nclscripts/csm/gsn_csm.ncl&quot; <br><br>diri    = &quot;/home/kwesi/Documents/<wbr>Indices/&quot;  <br><br>begin<br>  <br>   in  =addfile(diri + &quot;<a href="http://aao_anom.nc" target="_blank">aao_anom.nc</a>&quot;,&quot;r&quot;)            <wbr>               ; open netcdf file<br>   aao  = in-&gt;AAO <br>   <br>  printVarSummary(aao)<br><br>  d = 1<br>  sm = 7<br>  pct = 0.10<br><br>  spec = specx_anal(aao,d,sm,pct)<br><br>  wks  = gsn_open_wks(&quot;ps&quot;,&quot;spec&quot;)     <wbr>           ; Opens a ps file <br><br>   res = True                       ; no plot mods desired<br>   res@tiMainString = &quot;AAO&quot;                   ; title<br>   res@tiXAxisString = &quot;Frequency (cycles/month)&quot;  ; xaxis<br>   res@tiYAxisString = &quot;Variance&quot;                  ; yaxis<br><br>   plot=gsn_csm_xy(wks,spec@frq,<wbr>spec@spcx,res)     ; create plot   <br>end<br><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">printVarSummary(aao) gives;<br clear="all"></div><div style="font-family:verdana,sans-serif;font-size:small" class="gmail_default">​Variable: aao<br>Type: double<br>Total Size: 3552 bytes<br>            444 values<br>Number of Dimensions: 1<br>Dimensions and sizes:    [time | 444]<br>Coordinates: <br>            time: [   0.. 443]<br>Number Of Attributes: 4<br>  long_name :    Antarctic Oscillation Index<br>  units :    1<br>  _FillValue :    3.000000060858434e+33<br>  missing_value :    3.000000060858434e+33<br>​</div><span class="HOEnZb"><font color="#888888"><br>-- <br><div class="m_-7291441856003378282gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div><div><font color="#0000ff" face="trebuchet ms, sans-serif">Try not to become a man of success but rather a man of value-Albert Einstein</font></div><div><font color="#0000ff" face="trebuchet ms, sans-serif"><br></font></div><div><font color="#0000ff"><font face="trebuchet ms, sans-serif">University of Cape Coast|</font><span style="font-family:&quot;trebuchet ms&quot;,sans-serif;font-size:12.8px">College of Agriculture and Natural Sciences|</span><span style="font-family:&quot;trebuchet ms&quot;,sans-serif;font-size:12.8px">Department of Physics|</span></font></div><div><font color="#0000ff" face="trebuchet ms, sans-serif">Team Leader|Recycle Up! Ghana|Technology Without Borders|</font></div><div><font color="#0000ff"><font face="trebuchet ms, sans-serif">Other emails: </font><span style="font-family:&quot;trebuchet ms&quot;,sans-serif;font-size:12.8px"><a href="mailto:kwesi.quagraine@ucc.edu.gh" target="_blank">kwesi.quagraine@ucc.<wbr>edu.gh</a>|</span><span style="font-family:&quot;trebuchet ms&quot;,sans-serif;font-size:12.8px"><a href="mailto:kwesi.quagraine@teog.de" target="_blank">kwesi.quagraine@teog.de</a><wbr>|</span></font></div><div><span style="font-family:&quot;trebuchet ms&quot;,sans-serif;font-size:12.8px"><font color="#0000ff">Mobile: <a href="tel:+233%2026%20617%203582" value="+233266173582" target="_blank">+233266173582</a></font></span></div></div><div><font color="#0000ff" face="trebuchet ms, sans-serif">Skype: quagraine_cwasi</font></div><div><font color="#0000ff" face="trebuchet ms, sans-serif">Twitter: @Pkdilly</font></div><div><br></div></div></div></div></div></div></div></div>
</font></span></div>
<br>______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/<wbr>mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>