<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body>
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<p>Thank you so much for your help.</p>
<p><br>
</p>
<p>Best,</p>
<p><br>
</p>
<p>Yu</p>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> ncl-talk-bounces@ucar.edu &lt;ncl-talk-bounces@ucar.edu&gt; on behalf of Bill Ladwig &lt;ladwig@ucar.edu&gt;<br>
<b>Sent:</b> Tuesday, January 24, 2017 2:45:51 PM<br>
<b>To:</b> Wang,Yu<br>
<b>Cc:</b> NCL<br>
<b>Subject:</b> Re: [ncl-talk] issue with wrf_user_ll_to_ij</font>
<div>&nbsp;</div>
</div>
<div>
<div dir="auto">Hi Yu,
<div dir="auto"><br>
</div>
<div dir="auto">There is a useTime value you can set in the opt argument.&nbsp; See:</div>
<div dir="auto"><br>
</div>
<div dir="auto"><a href="http://www.ncl.ucar.edu/Document/Functions/WRF_arw/wrf_user_ll_to_ij.shtml">http://www.ncl.ucar.edu/Document/Functions/WRF_arw/wrf_user_ll_to_ij.shtml</a></div>
<div dir="auto"><br>
</div>
<div dir="auto">opt = True</div>
<div dir="auto">opt@useTime = 2&nbsp;</div>
<div dir="auto"><br>
</div>
<div dir="auto">Then pass this as the last argument to wrf_user_ll_to_ij.&nbsp;</div>
<div dir="auto"><br>
</div>
<div dir="auto">Hope this helps,</div>
<div dir="auto"><br>
</div>
<div dir="auto">Bill</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Jan 24, 2017 9:30 AM, &quot;Wang,Yu&quot; &lt;<a href="mailto:wangyu8722@ufl.edu">wangyu8722@ufl.edu</a>&gt; wrote:<br type="attribution">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div id="m_-6543451100108000940divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif" dir="ltr">
<p>To whom it may concern,</p>
<p><br>
</p>
<p>I am trying to use this function&nbsp;<span style="font-size:12pt">wrf_user_ll_to_ij on a moving nested domain&nbsp;but found things problematic for moving nested domains. Here is the prototype of this function:</span></p>
<p><span style="font-size:12pt"></span></p>
<pre style="margin-top:0px;margin-bottom:0px;padding:0px;font-size:13.3333px;line-height:12pt;font-family:courier;border-style:solid;border-width:0px 0px 15px;border-color:transparent">        function wrf_user_ll_to_ij (
                file_handle  : file or list [list added in V6.0.0],  
                lon          : numeric,                              
                lat          : numeric,                              
                opt          : logical                               
        )</pre>
The first statement is the file that needed to be handled. But for a nested domain output, each time step has a different domain region. Then how do we represent each time step for this first statement? For example. I have this file&nbsp;<span>wrfout_d02_2005-08-20_18:<wbr>00:00
 which include 12-time steps . When I want to extract one certain point from all the time steps, how do I define the first statement?</span>
<div>For example, if<br>
<div>
<pre style="margin-top:0px;margin-bottom:0px;padding:0px;font-size:13.3333px;line-height:12pt;font-family:courier;border-style:solid;border-width:0px 0px 15px;border-color:transparent">a = <strong style="margin:0px;padding:0px">addfile</strong>(&quot;./<span style="font-family:Calibri,Arial,Helvetica,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;,NotoColorEmoji,&quot;Segoe UI Symbol&quot;,&quot;Android Emoji&quot;,EmojiSymbols;font-size:16px">wrfout_d02_2005-08-<wbr>20_18:00:<a href="http://00.nc" target="_blank">00.nc</a></span>&quot;,&quot;r&quot;)</pre>
<pre style="margin-top:0px;margin-bottom:0px;padding:0px;font-size:13.3333px;line-height:12pt;font-family:courier;border-style:solid;border-width:0px 0px 15px;border-color:transparent">for i=0,11</pre>
<pre style="margin-top:0px;margin-bottom:0px;padding:0px;font-size:13.3333px;line-height:12pt;font-family:courier;border-style:solid;border-width:0px 0px 15px;border-color:transparent">  <span style="font-family:Calibri,Arial,Helvetica,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;,NotoColorEmoji,&quot;Segoe UI Symbol&quot;,&quot;Android Emoji&quot;,EmojiSymbols;font-size:16px">wrf_user_ll_to_ij(a(i), lon, lat, True)</span></pre>
<pre style="margin-top:0px;margin-bottom:0px;padding:0px;font-size:13.3333px;line-height:12pt;font-family:courier;border-style:solid;border-width:0px 0px 15px;border-color:transparent"><span style="font-family:Calibri,Arial,Helvetica,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;,NotoColorEmoji,&quot;Segoe UI Symbol&quot;,&quot;Android Emoji&quot;,EmojiSymbols;font-size:16px">This way of extracting the ith time step of the output file is not correst. Then what should I do?</span></pre>
<pre style="margin-top:0px;margin-bottom:0px;padding:0px;font-size:13.3333px;line-height:12pt;font-family:courier;border-style:solid;border-width:0px 0px 15px;border-color:transparent"><span style="font-family:Calibri,Arial,Helvetica,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;,NotoColorEmoji,&quot;Segoe UI Symbol&quot;,&quot;Android Emoji&quot;,EmojiSymbols;font-size:16px">Thanks forany help.</span></pre>
<pre style="margin-top:0px;margin-bottom:0px;padding:0px;font-size:13.3333px;line-height:12pt;font-family:courier;border-style:solid;border-width:0px 0px 15px;border-color:transparent"><span style="font-family:Calibri,Arial,Helvetica,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;,NotoColorEmoji,&quot;Segoe UI Symbol&quot;,&quot;Android Emoji&quot;,EmojiSymbols;font-size:16px">Best,</span></pre>
<pre style="margin-top:0px;margin-bottom:0px;padding:0px;font-size:13.3333px;line-height:12pt;font-family:courier;border-style:solid;border-width:0px 0px 15px;border-color:transparent"><span style="font-family:Calibri,Arial,Helvetica,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;,NotoColorEmoji,&quot;Segoe UI Symbol&quot;,&quot;Android Emoji&quot;,EmojiSymbols;font-size:16px">Yu Wang</span></pre>
<pre style="margin-top:0px;margin-bottom:0px;padding:0px;font-size:13.3333px;line-height:12pt;font-family:courier;border-style:solid;border-width:0px 0px 15px;border-color:transparent"><br></pre>
<div><span><br>
</span></div>
</div>
</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>
</div>
</div>
</body>
</html>