<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Might help to see the output of that printVarSummary(f) line. <div class=""><div class=""><br class=""></div><div class="">By subscripting the list, it should mean that wrf_contour() receives the direct pointer to the netcdf and not a list. </div><div class=""><br class=""></div><div class="">printVarSummary( f[0] ) </div><div class=""><br class=""></div><div class="">should give you Type:file</div><div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 16 May 2016, at 09:50, Amadou Coulibaly <<a href="mailto:mpapin24@gmail.com" class="">mpapin24@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="gmail_default" style="font-family:courier new,monospace;font-size:large">Hello NCL users<br class=""><br class=""></div><div class="gmail_default" style="font-family:courier new,monospace;font-size:large">Using the following command:<br class=""><span class="im"><div class=""><font size="2" class=""> fils = systemfunc ("ls /home_dir/wrfout_d01_2014-12-13*")<br class=""> f = addfiles (fils, "r")<br class=""><br class=""></font></div></span><font size="2" class=""> printVarSummary(f) ; type list; this contiains reference (pointers) to files <br class=""></font><div class=""><font size="2" class=""><br class=""></font></div><div class=""><font size="2" class=""> nfils = dimsizes(fils)<br class=""></font></div><div class=""><font size="2" class=""> do nf=0,nfils-1<br class=""> <span style="color:rgb(0,0,255)" class="">contour_tc = wrf_contour(f[nf], wks,tc_plane(it,level,:,:),</span></font><span style="color:rgb(0,0,255)" class=""><font size="2" class="">opts)</font></span></div><div class=""><div class="gmail_default" style="font-family:courier new,monospace;font-size:large"><font size="2" class=""> end do<br class=""></font></div><div class="gmail_default" style="font-family:courier new,monospace"><font size="4" class="">I am getting another error, which is:<br class=""><span style="color:rgb(0,0,255)" class="">fatal:List subscripting used on non-list variable, can't continue</span><br class=""></font></div><div class="gmail_default" style="font-family:courier new,monospace"><font size="4" class="">Because the function "wrf_contour" expected "f" as nc_file rather than a list.<br class=""><br class=""></font></div><div class="gmail_default" style="font-family:courier new,monospace;font-size:large"><font size="2" class=""><font size="4" class="">Best </font><br class=""></font></div><div class="gmail_default" style="font-family:courier new,monospace;font-size:large"><font size="2" class=""><br class=""></font></div></div><br class=""><br class=""></div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On 16 May 2016 at 13:54, Dennis Shea <span dir="ltr" class=""><<a href="mailto:shea@ucar.edu" target="_blank" class="">shea@ucar.edu</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class=""><span class=""><div class=""><font size="2" class=""> fils = systemfunc ("ls /home_dir/wrfout_d01_2014-12-13*")<br class=""> f = addfiles (fils, "r")<br class=""><br class=""></font></div></span><font size="2" class=""> printVarSummary(f) ; type list; this contiains reference (pointers) to files</font> <br class=""><div class=""><br class=""></div><div class=""> nfils = dimsizes(fils)<br class=""></div><div class=""> do nf=0,nfils-1<br class=""> <font size="2" class="">contour_tc = wrf_contour(f[nf], wks,tc_plane(it,level,:,:),opts)</font></div><div class=""><div class="gmail_default" style="font-family:courier new,monospace;font-size:large"><font size="2" class=""> end do<br class=""><br class=""></font></div></div></div><div class="gmail_extra"><br class=""><div class="gmail_quote"><div class=""><div class="h5">On Mon, May 16, 2016 at 5:42 AM, Amadou Coulibaly <span dir="ltr" class=""><<a href="mailto:mpapin24@gmail.com" target="_blank" class="">mpapin24@gmail.com</a>></span> wrote:<br class=""></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class=""><div class="h5"><div dir="ltr" class=""><div class="gmail_default" style="font-family:courier new,monospace;font-size:large">Hello NCL users,<br class=""><br class=""></div><div class="gmail_default" style="font-family:courier new,monospace;font-size:large">I am getting an error when I tried to use "wrf_contour" function to my input data, which is in format "list" from:<br class=""><font size="2" class=""><br class="">fils = systemfunc ("ls /home_dir/wrfout_d01_2014-12-13*")<br class=""> f = addfiles (fils, "r")</font> <br class=""><br class=""></div><div class="gmail_default" style="font-family:courier new,monospace;font-size:large">And after using the following command:<br class=""> <font size="2" class="">contour_tc = wrf_contour(f,wks,tc_plane(it,level,:,:),opts)<br class=""></font><br class=""></div><div class="gmail_default" style="font-family:courier new,monospace;font-size:large">I am getting the following error:<br class="">fatal:Argument type mismatch on argument (0) of (wrf_contour) can not coerce<br class=""><br clear="all" class=""></div><div class="gmail_default" style="font-family:courier new,monospace;font-size:large">Is there a way to convert "f" from list to file format, required by "wrf_contour" function?<br class=""><br class=""></div><div class="gmail_default" style="font-family:courier new,monospace;font-size:large">Best</div><br class="">-- <br class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><b style="font-size:small;font-family:tahoma,sans-serif" class=""><font color="#000066" class=""> </font><font color="#000066" class="">COULIBALY </font><font color="#000066" class="">AMADOU </font></b><br class=""><span style="color:rgb(0,0,102);font-family:tahoma,sans-serif;font-size:small" class="">PhD Student on West African Climate System (WACS)</span><br class=""><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff" class="">FUTA</font><font style="font-size:small;font-family:tahoma,sans-serif" color="#000066" class=""> - </font><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff" class="">F</font><font style="font-size:small;font-family:tahoma,sans-serif" color="#000066" class="">ederal </font><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff" class="">U</font><font style="font-size:small;font-family:tahoma,sans-serif" color="#000066" class="">niversity of </font><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff" class="">T</font><font style="font-size:small;font-family:tahoma,sans-serif" color="#000066" class="">echnology of </font><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff" class="">A</font><font style="font-size:small;font-family:tahoma,sans-serif" color="#000066" class="">kure, <span style="color:rgb(0,0,255)" class="">N</span>igeria</font><div class=""><font color="#000066" face="tahoma, sans-serif" size="2" class=""><br class=""></font><div class=""><span style="color:rgb(76,17,48)" class=""><span style="font-family:arial,helvetica,sans-serif" class=""><i style="font-weight:bold" class="">Visiting Student - </i></span><i style="font-weight:bold" class=""><span style="font-family:arial,helvetica,sans-serif" class=""><i class=""><font size="1" class=""><span style="font-size:13px" class="">University of Cologne, Germany</span></font></i></span><br class=""></i><i class=""><span style="font-family:arial,helvetica,sans-serif" class="">Institute of Geophysics and Meteorology</span></i><span style="font-family:arial,helvetica,sans-serif" class=""><br class=""></span></span><div style="letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px" class=""><span style="color:rgb(76,17,48)" class=""><span style="font-family:arial,helvetica,sans-serif" class=""><font size="1" class="">Pohligstr. 3 / Office 3.102</font></span></span></div><div style="letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px" class=""><span style="color:rgb(76,17,48)" class=""><span style="font-family:arial,helvetica,sans-serif" class=""><font size="1" class="">D-50969 Köln</font></span></span></div></div></div><div style="color:rgb(80,0,80)" class=""><i style="color:rgb(34,34,34);font-family:"bookman old style","new york",times,serif" class=""><font size="1" class=""><span style="color:rgb(0,0,127)" class=""><span style="font-size:13px" class=""><br class=""></span></span></font></i></div><span style="font-size:small;font-family:tahoma,sans-serif;color:rgb(0,0,102)" class=""><u class="">Project</u>: </span><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff" class="">WASCAL</font><span style="font-size:small;font-family:tahoma,sans-serif;color:rgb(0,0,102)" class=""> (</span><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff" class="">W</font><span style="font-size:small;font-family:tahoma,sans-serif;color:rgb(0,0,102)" class="">est </span><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff" class="">A</font><span style="font-size:small;font-family:tahoma,sans-serif;color:rgb(0,0,102)" class="">frican </span><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff" class="">S</font><span style="font-size:small;font-family:tahoma,sans-serif;color:rgb(0,0,102)" class="">cience </span><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff" class="">S</font><span style="font-size:small;font-family:tahoma,sans-serif;color:rgb(0,0,102)" class="">ervice </span><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff" class="">C</font><span style="font-size:small;font-family:tahoma,sans-serif;color:rgb(0,0,102)" class="">entre on </span><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff" class="">C</font><span style="font-size:small;font-family:tahoma,sans-serif;color:rgb(0,0,102)" class="">limate </span><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff" class="">C</font><span style="font-size:small;font-family:tahoma,sans-serif;color:rgb(0,0,102)" class="">hange and </span><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff" class="">A</font><span style="font-size:small;font-family:tahoma,sans-serif;color:rgb(0,0,102)" class="">dapted </span><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff" class="">L</font><span style="font-size:small;font-family:tahoma,sans-serif;color:rgb(0,0,102)" class="">and <span style="color:rgb(0,0,255)" class="">U</span>se) </span><br class=""><font style="font-family:tahoma,sans-serif;font-size:small;color:rgb(0,0,102)" color="#000066" class="">Phone:<a href="tel:%28%2B234%29%20812%20965%203659" value="+2348129653659" target="_blank" class="">(+234) 812 965 3659</a> </font><font style="font-family:tahoma,sans-serif;font-size:small" color="#ff0000" class="">/</font><font style="font-family:tahoma,sans-serif;font-size:small;color:rgb(0,0,102)" color="#000066" class=""><a href="tel:%28%2B223%29%2090%2008%2026%2071" value="+22390082671" target="_blank" class="">(+223) 90 08 26 71</a> </font><font style="font-family:tahoma,sans-serif;font-size:small" color="#ff0000" class="">/</font><font style="font-family:tahoma,sans-serif;font-size:small;color:rgb(0,0,102)" color="#000066" class=""><a href="tel:%28%2B226%29%2064%2057%2037%2027" value="+22664573727" target="_blank" class="">(+226) 64 57 37 27</a> </font><font style="font-size:small;font-family:tahoma,sans-serif" color="#000066" class=""><span style="color:rgb(34,34,34)" class=""></span><font color="#ff0000" class="">/</font></font><font style="font-family:tahoma,sans-serif;font-size:small;color:rgb(0,0,102)" color="#000066" class=""><a href="tel:%2B49%2015218352574" value="+4915218352574" target="_blank" class="">+49 15218352574</a><br class=""></font><div class=""><div class=""><font style="font-size:small;font-family:tahoma,sans-serif" color="#000066" class=""></font><br class="webkit-block-placeholder"></div><div style="text-align:left" class=""><font style="font-size:small;font-family:tahoma,sans-serif" color="#000066" class=""><font color="#000066" class="">E-mail: </font><a href="mailto:mpapin24@gmail.com" style="color:rgb(0,0,255)" target="_blank" class="">mpapin24@gmail.com</a><span style="color:rgb(34,34,34)" class=""> </span><font color="#ff0000" class="">/ </font><span style="color:rgb(0,0,255)" class=""><a href="mailto:coulibalya68@yahoo.com" target="_blank" class="">coulibalya68@yahoo.com</a> </span></font></div><div class=""><br class="webkit-block-placeholder"></div></div><div class=""><font face="verdana,sans-serif" size="2" class=""><p class=""><font color="#ff9900" class="">"<i class="">The time is always right to do right": <b class="">Nelson Mandela</b></i></font></p><p class=""><i class=""><font color="#ff9900" class="">"Character is like a tree and reputation like a shadow. The shadow is what we think of it; the tree is the real thing" : <b class="">Abraham Lincoln</b></font></i></p><p class=""><i class=""><font color="#ff9900" class="">"Do what you can, with what you have, where you are" <b class="">Theodore Roosevelt</b></font></i></p></font><p class=""><b class=""><font color="#000066" size="2" class=""><i class=""> </i></font></b></p><p class=""><b class=""><font color="#000066" size="4" class=""> </font></b></p><div class=""> </div></div></div></div></div></div>
</div>
<br class=""></div></div>_______________________________________________<br class="">
ncl-talk mailing list<br class="">
<a href="mailto:ncl-talk@ucar.edu" target="_blank" class="">ncl-talk@ucar.edu</a><br class="">
List instructions, subscriber options, unsubscribe:<br class="">
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank" class="">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br class="">
<br class=""></blockquote></div><br class=""></div>
</blockquote></div><br class=""><br clear="all" class=""><br class="">-- <br class=""><div class="gmail_signature"><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><b style="font-size:small;font-family:tahoma,sans-serif" class=""><font color="#000066" class=""> </font><font color="#000066" class="">COULIBALY </font><font color="#000066" class="">AMADOU </font></b><br class=""><span style="color:rgb(0,0,102);font-family:tahoma,sans-serif;font-size:small" class="">PhD Student on West African Climate System (WACS)</span><br class=""><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff" class="">FUTA</font><font style="font-size:small;font-family:tahoma,sans-serif" color="#000066" class=""> - </font><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff" class="">F</font><font style="font-size:small;font-family:tahoma,sans-serif" color="#000066" class="">ederal </font><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff" class="">U</font><font style="font-size:small;font-family:tahoma,sans-serif" color="#000066" class="">niversity of </font><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff" class="">T</font><font style="font-size:small;font-family:tahoma,sans-serif" color="#000066" class="">echnology of </font><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff" class="">A</font><font style="font-size:small;font-family:tahoma,sans-serif" color="#000066" class="">kure, <span style="color:rgb(0,0,255)" class="">N</span>igeria</font><div class=""><font size="2" color="#000066" face="tahoma, sans-serif" class=""><br class=""></font><div class=""><span style="color:rgb(76,17,48)" class=""><span style="font-family:arial,helvetica,sans-serif" class=""><i style="font-weight:bold" class="">Visiting Student - </i></span><i style="font-weight:bold" class=""><span style="font-family:arial,helvetica,sans-serif" class=""><i class=""><font size="1" class=""><span style="font-size:13px" class="">University of Cologne, Germany</span></font></i></span><br class=""></i><i class=""><span style="font-family:arial,helvetica,sans-serif" class="">Institute of Geophysics and Meteorology</span></i><span style="font-family:arial,helvetica,sans-serif" class=""><br class=""></span></span><div style="letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px" class=""><span style="color:rgb(76,17,48)" class=""><span style="font-family:arial,helvetica,sans-serif" class=""><font size="1" class="">Pohligstr. 3 / Office 3.102</font></span></span></div><div style="letter-spacing:normal;text-transform:none;white-space:normal;word-spacing:0px" class=""><span style="color:rgb(76,17,48)" class=""><span style="font-family:arial,helvetica,sans-serif" class=""><font size="1" class="">D-50969 Köln</font></span></span></div></div></div><div style="color:rgb(80,0,80)" class=""><i style="color:rgb(34,34,34);font-family:'bookman old style','new york',times,serif" class=""><font size="1" class=""><span style="color:rgb(0,0,127)" class=""><span style="font-size:13px" class=""><br class=""></span></span></font></i></div><span style="font-size:small;font-family:tahoma,sans-serif;color:rgb(0,0,102)" class=""><u class="">Project</u>: </span><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff" class="">WASCAL</font><span style="font-size:small;font-family:tahoma,sans-serif;color:rgb(0,0,102)" class=""> (</span><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff" class="">W</font><span style="font-size:small;font-family:tahoma,sans-serif;color:rgb(0,0,102)" class="">est </span><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff" class="">A</font><span style="font-size:small;font-family:tahoma,sans-serif;color:rgb(0,0,102)" class="">frican </span><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff" class="">S</font><span style="font-size:small;font-family:tahoma,sans-serif;color:rgb(0,0,102)" class="">cience </span><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff" class="">S</font><span style="font-size:small;font-family:tahoma,sans-serif;color:rgb(0,0,102)" class="">ervice </span><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff" class="">C</font><span style="font-size:small;font-family:tahoma,sans-serif;color:rgb(0,0,102)" class="">entre on </span><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff" class="">C</font><span style="font-size:small;font-family:tahoma,sans-serif;color:rgb(0,0,102)" class="">limate </span><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff" class="">C</font><span style="font-size:small;font-family:tahoma,sans-serif;color:rgb(0,0,102)" class="">hange and </span><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff" class="">A</font><span style="font-size:small;font-family:tahoma,sans-serif;color:rgb(0,0,102)" class="">dapted </span><font style="font-size:small;font-family:tahoma,sans-serif" color="#0000ff" class="">L</font><span style="font-size:small;font-family:tahoma,sans-serif;color:rgb(0,0,102)" class="">and <span style="color:rgb(0,0,255)" class="">U</span>se) </span><br class=""><font style="font-family:tahoma,sans-serif;font-size:small;color:rgb(0,0,102)" color="#000066" class="">Phone:(+234) 812 965 3659 </font><font style="font-family:tahoma,sans-serif;font-size:small" color="#ff0000" class="">/</font><font style="font-family:tahoma,sans-serif;font-size:small;color:rgb(0,0,102)" color="#000066" class="">(+223) 90 08 26 71 </font><font style="font-family:tahoma,sans-serif;font-size:small" color="#ff0000" class="">/</font><font style="font-family:tahoma,sans-serif;font-size:small;color:rgb(0,0,102)" color="#000066" class="">(+226) 64 57 37 27 </font><font style="font-size:small;font-family:tahoma,sans-serif" color="#000066" class=""><span style="color:rgb(34,34,34)" class=""></span><font color="#ff0000" class="">/</font></font><font style="font-family:tahoma,sans-serif;font-size:small;color:rgb(0,0,102)" color="#000066" class="">+49 15218352574<br class=""></font><div class=""><div class=""><font style="font-size:small;font-family:tahoma,sans-serif" color="#000066" class=""></font><br class="webkit-block-placeholder"></div><div style="text-align:left" class=""><font style="font-size:small;font-family:tahoma,sans-serif" color="#000066" class=""><font color="#000066" class="">E-mail: </font><a href="mailto:mpapin24@gmail.com" style="color:rgb(0,0,255)" target="_blank" class="">mpapin24@gmail.com</a><span style="color:rgb(34,34,34)" class=""> </span><font color="#ff0000" class="">/ </font><span style="color:rgb(0,0,255)" class=""><a href="mailto:coulibalya68@yahoo.com" target="_blank" class="">coulibalya68@yahoo.com</a> </span></font></div><div class=""><br class="webkit-block-placeholder"></div></div><div class=""><font size="2" face="verdana,sans-serif" class=""><p class=""><font color="#ff9900" class="">"<i class="">The time is always right to do right": <b class="">Nelson Mandela</b></i></font></p><p class=""><i class=""><font color="#ff9900" class="">"Character is like a tree and reputation like a shadow. The shadow is what we think of it; the tree is the real thing" : <b class="">Abraham Lincoln</b></font></i></p><p class=""><i class=""><font color="#ff9900" class="">"Do what you can, with what you have, where you are" <b class="">Theodore Roosevelt</b></font></i></p></font><p class=""><b class=""><font size="2" color="#000066" class=""><i class=""> </i></font></b></p><p class=""><b class=""><font size="4" color="#000066" class=""> </font></b></p><div class=""> </div></div></div></div></div></div>
</div>
_______________________________________________<br class="">ncl-talk mailing list<br class=""><a href="mailto:ncl-talk@ucar.edu" class="">ncl-talk@ucar.edu</a><br class="">List instructions, subscriber options, unsubscribe:<br class="">http://mailman.ucar.edu/mailman/listinfo/ncl-talk<br class=""></div></blockquote></div><br class=""></div></div></body></html>