<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="gmail-p1"><span class="gmail-s1"><span class="gmail-Apple-converted-space"> </span>contour = </span><span class="gmail-s2">wrf_contour</span><span class="gmail-s1">(a(itime),wks,t,t_res)</span></p><p class="gmail-p1"><span class="gmail-s1">and this should be:</span></p><p class="gmail-p1"><span class="gmail-s1">
</span></p><p class="gmail-p1"><span class="gmail-s1"><span class="gmail-Apple-converted-space"> </span>contour = </span><span class="gmail-s2">wrf_contour</span><span class="gmail-s1">(a[itime],wks,t,t_res)</span></p><p class="gmail-p1"><span class="gmail-s1">--Mary</span></p><p class="gmail-p1"><span class="gmail-s1"><br></span></p></div></div><div class="gmail_extra"><br><div class="gmail_quote">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><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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]:<wbr>Execute: 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>______________________________<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>