<div dir="ltr">Thank you. I will try with it.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 6, 2017 at 8:39 PM, Mary Haley <span dir="ltr"><<a href="mailto:haley@ucar.edu" target="_blank">haley@ucar.edu</a>></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-size:small">The error message is telling you that there's something wrong with argument 0 passed to wrf_contour.  Argument 0 refers to the first argument in the list, which is "a(itime)" in this case.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">The issue is that when you use addfiles to open a series of files, you need to use square brackets, [], to access a single file, and not curved brackets, (). This is because addfiles returns a "List" object, and lists in NCL need to be access with square brackets.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">You have:</div><div class="gmail_default" style="font-size:small">







<p class="m_-4200623425211831713gmail-p1"><span class="m_-4200623425211831713gmail-s1"><span class="m_-4200623425211831713gmail-Apple-converted-space">        </span>contour = </span><span class="m_-4200623425211831713gmail-s2">wrf_contour</span><span class="m_-4200623425211831713gmail-s1">(a(itime),wks,t,t_<wbr>res)</span></p><p class="m_-4200623425211831713gmail-p1"><span class="m_-4200623425211831713gmail-s1">and this should be:</span></p><p class="m_-4200623425211831713gmail-p1"><span class="m_-4200623425211831713gmail-s1">







</span></p><p class="m_-4200623425211831713gmail-p1"><span class="m_-4200623425211831713gmail-s1"><span class="m_-4200623425211831713gmail-Apple-converted-space">        </span>contour = </span><span class="m_-4200623425211831713gmail-s2">wrf_contour</span><span class="m_-4200623425211831713gmail-s1">(a[itime],wks,t,t_<wbr>res)</span></p><span class="HOEnZb"><font color="#888888"><p class="m_-4200623425211831713gmail-p1"><span class="m_-4200623425211831713gmail-s1">--Mary</span></p><p class="m_-4200623425211831713gmail-p1"><span class="m_-4200623425211831713gmail-s1"><br></span></p></font></span></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Mon, Sep 4, 2017 at 4:40 AM, swati shewale <span dir="ltr"><<a href="mailto:shewaleswati16@gmail.com" target="_blank">shewaleswati16@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><div>Hiiii<br><br></div>I want to do panel plotting using WRF output. I have total 8 files, each contains single time step (one day, 3 hrly datafiles so total 8 files). out of eight times I want to plot 6 time step (panel plot) for variable slp and temperature.<br><br>It shows below error.<br><br>fatal:Argument type mismatch on argument (0) of (wrf_contour) can not coerce<br>fatal:["Execute.c":8567]:Execu<wbr>te: Error occurred at or near line 44 in file temp.ncl<br>(0)    Error: gsn_panel: all of the plots passed to gsn_panel appear to be invalid<br><br> Attached herewith script. <br><br>Thank you in advance. Any help will be appreciated<div><div><br><br></div></div></div>
<br></div></div><span class="">______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">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/mailma<wbr>n/listinfo/ncl-talk</a><br>
<br></span></blockquote></div><br></div>
</blockquote></div><br></div>