<div dir="ltr">Hi:<div><br></div><div>I think the mask command will help:</div><div><br></div><div>Here is an example of how I used it.</div><div><br></div><div><div> range_only = snowh_rate_dom </div><div> range_only = mask(snowh_rate_dom,(snowh_rate_dom.ge.0.1),True)</div></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 14, 2017 at 5:38 AM, Imran Hosen <span dir="ltr"><<a href="mailto:hosen.imran09@gmail.com" target="_blank">hosen.imran09@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><div>Dear NCL users,<br><br></div>Good day!<br><br></div>I'm a new user of NCL. I want to extract temperature (T2) from wrfout file for the specific grid points where the LU_INDEX = 2.<br clear="all"><div><div><div><br><div class="m_-5882793990897017700gmail_signature" data-smartmail="gmail_signature"><div>For example,<br></div><div>f = addfile("./<a href="http://wrfout.nc" target="_blank">wrfout.nc</a>)<br></div><div>T2 = f->T2(:,:,:)<br><br></div><div>It will extract temperature for whole domain for all time steps. In my case, I only want to extract temperature for all time steps but for the specific grids which grids represent LU_INDEX = 2.<br><br></div><div>Could you please suggest how to do it. I would grateful to you if anyone please share a script.<br><br></div><div>Thanks in advance.<br><br></div><div>Kind regards,<br></div><div>Imran<br></div><div><br></div></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><br><br clear="all"><div><br></div>-- <br><div class="gmail_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>
</div>