<div dir="ltr">Hi Fangda,<div><br></div><div>Thanks for the feedback. I'll take a look at how that error is being thrown, because it probably should give something more useful than not being able to find the variable (e.g. 'file(s) not found' would have been more useful). Glad it's working for you now.</div><div><br></div><div>Regards,</div><div><br></div><div>Bill</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 18, 2018 at 7:17 PM, Fangda <span dir="ltr"><<a href="mailto:tengfangda@gmail.com" target="_blank">tengfangda@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">Hi:<div><br></div><div>Thanks for all your help, I have checked the variable list using "ncl_filedump",  a<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">nd the variable of QNICE is indeed in wrfout file when I use the thompson scheme.</span></div><div><br></div><div>I did a mistake that I wrote the wrong filepath to my wrfout files, as I run the same case with four microphysic schemes.

<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">The "wrf_user_getvar" works well now when I change to the correct filepath.</span></div><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><br></span></div><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">Best wishes!</span></div><span class="HOEnZb"><font color="#888888"><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><br></span></div><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">Fangda</span></div></font></span><div><div class="h5"><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">2018-04-19 0:12 GMT+08:00 Barry Lynn <span dir="ltr"><<a href="mailto:barry.h.lynn@gmail.com" target="_blank">barry.h.lynn@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi:<div><br></div><div>Within your ncl program, you can do print(fin), where </div><div>fin = <span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0);font-family:"Courier New";font-size:19px">addfile(filename,"r")</span></div><div><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0);font-family:"Courier New";font-size:19px"><br></span></div><div><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0);font-family:"Courier New";font-size:19px">filename is the name of your wrf output file.</span></div></div><div class="gmail_extra"><div><div class="m_-1224899340449897203h5"><br><div class="gmail_quote">On Wed, Apr 18, 2018 at 6:45 PM, Bill Ladwig <span dir="ltr"><<a href="mailto:ladwig@ucar.edu" target="_blank">ladwig@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">Hi Fangda,<div><br></div><div>The first step is to look at your data. Are you sure QNICE is a variable in your WRF output file? Don't assume. Use the 'ncdump -h your_wrf_file' command or ncl_filedump (<a href="https://www.ncl.ucar.edu/Document/Tools/ncl_filedump.shtml" target="_blank">https://www.ncl.ucar.edu/Docu<wbr>ment/Tools/ncl_filedump.shtml</a>) to look at the contents of your WRF file. If you don't see QNICE in there, you won't be able to read it. The absence or presence of variables in the output file is determined by your WRF configuration and also how you have your registry set up. I don't remember QNICE being one that is written out by default, so you might need to modify the registry, rebuild, and re-run if it's not there.</div><div><br></div><div>Hope this helps,</div><div><br></div><div>Bill</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="m_-1224899340449897203m_5043888310431545510h5">On Wed, Apr 18, 2018 at 7:49 AM, Fangda <span dir="ltr"><<a href="mailto:tengfangda@gmail.com" target="_blank">tengfangda@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="m_-1224899340449897203m_5043888310431545510h5"><div dir="ltr">Hello Everyone<div><br></div><div>When I use wrf_user_getvar function to deal with Ice Number concentration in wrfout files, I get this message:</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">fatal:No valid instance of variable QNICE found in file list<br>fatal:["Execute.c":8640]:Execu<wbr>te: Error occurred at or near line 662 in file /usr/local/ncl6.4.0/lib/ncarg/<wbr>nclscripts/wrf/WRFUserARW.ncl<br>fatal:["Execute.c":8640]:Execu<wbr>te: Error occurred at or near line 1716 in file /usr/local/ncl6.4.0/lib/ncarg/<wbr>nclscripts/wrf/WRFUserARW.ncl</blockquote><div><br></div><div>Does it mean I cann't read QNICE using this function? How can I read QNICE in WRF output file with ncl?<br></div><div><br></div>I appreciate your help, thanks.<span class="m_-1224899340449897203m_5043888310431545510m_4637838949576460758HOEnZb"><font color="#888888"><div><br><div>Fangda</div><div><br></div><div><br></div></div></font></span></div>
<br></div></div><span>______________________________<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>
<br>______________________________<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></blockquote></div><br><br clear="all"><div><br></div></div></div><span>-- <br><div class="m_-1224899340449897203m_5043888310431545510gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Barry H. Lynn, Ph.D<div><div>Senior Lecturer,</div><div><div><span style="color:rgb(136,136,136)">The Institute of the Earth Science, </span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">The Hebrew University of Jerusalem, </span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">Givat Ram, Jerusalem 91904, Israel </span><br style="color:rgb(136,136,136)"></div><span style="color:rgb(136,136,136)">Tel: 972 547 231 170</span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">Fax: (972)-25662581</span></div></div><div><span style="color:rgb(136,136,136)"><br></span></div><div>C.E.O, Weather It Is, LTD<br>Weather and Climate Focus<br><a href="http://weather-it-is.com" target="_blank">http://weather-it-is.com</a><br>Jerusalem, Israel<br>Local: 02 930 9525<br>Cell: 054 7 231 170<br>Int-IS: x972 2 930 9525<br>US 914 432 3108<br></div></div></div>
</span></div>
</blockquote></div><br></div></div></div></div>
</blockquote></div><br></div>