<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 "fatal:specx_anal: 'x' cannot contain any missing values".<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 "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"<br>load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl" <br><br>diri = "/home/kwesi/Documents/Indices/" <br><br>begin<br> <br> in =addfile(diri + "<a href="http://aao_anom.nc">aao_anom.nc</a>","r") ; open netcdf file<br> aao = in->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("ps","spec") ; Opens a ps file <br><br> res = True ; no plot mods desired<br> res@tiMainString = "AAO" ; title<br> res@tiXAxisString = "Frequency (cycles/month)" ; xaxis<br> res@tiYAxisString = "Variance" ; yaxis<br><br> plot=gsn_csm_xy(wks,spec@frq,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><br>-- <br><div class="gmail_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:"trebuchet ms",sans-serif;font-size:12.8px">College of Agriculture and Natural Sciences|</span><span style="font-family:"trebuchet ms",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:"trebuchet ms",sans-serif;font-size:12.8px"><a href="mailto:kwesi.quagraine@ucc.edu.gh" target="_blank">kwesi.quagraine@ucc.edu.gh</a>|</span><span style="font-family:"trebuchet ms",sans-serif;font-size:12.8px"><a href="mailto:kwesi.quagraine@teog.de" target="_blank">kwesi.quagraine@teog.de</a>|</span></font></div><div><span style="font-family:"trebuchet ms",sans-serif;font-size:12.8px"><font color="#0000ff">Mobile: +233266173582</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>
</div>