<div dir="ltr">Thank you, sir. I have solved the problem from your previous code (April 6).<div><img src="cid:ii_ju9izimo0" alt="polyg_mar.png" width="336" height="436"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Apr 9, 2019 at 12:13 PM Dennis Shea <<a href="mailto:shea@ucar.edu">shea@ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><br></div><div>[1] The variable looks like:</div><div><br></div><div> double pre(time, longitude, latitude) ;<br> pre:long_name = "precipitation" ;<br> pre:units = "mm" ;<br> pre:<b>_FillValue = NaN </b>; <span style="color:rgb(0,0,255)"><b><=== NaN not recognized by NC</b></span>L<br><br><br></div><div>[2] The precipitation *does* have values of 0.0. In fact: <b>*MANY*</b> of them</div><div><br></div><div> <b>%></b> <span style="color:rgb(0,0,255)"><b>ncl_filedump</b></span> <a href="http://all_mar.nc" target="_blank">all_mar.nc</a> -v pre | less</div><div><br></div><div> This is <b>*your*</b> responsibility to look-at (explore) the variable.</div><div><br></div></div><div>[3] <b>*You*</b> set values 0.0 to _FillValue</div><div><br></div><div> nonzerototmar = <b>where</b>(totmar.eq.0.0, prc2_reorder@_FillValue, totmar)</div><div><br></div><div> By default: _FillValue are set to background (no color)</div><div><br></div><div>[4] The polyg geolocation scripts [29-31] examples had the plotting in the following loop.<br></div><div><br></div><div> do i =0,nLoc-1<br> do j = 0,nRad-1<br> </div><div>[SNIP]<br></div><div><br></div><div>--</div><div>You had no plotting whatsoever. <br></div><div><br></div><div>Attached is a subset of what I *think* you intended.</div><div>I'm done!</div><div><br></div><div><br></div><div><br></div></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Apr 5, 2019 at 6:49 PM Md. Jalal Uddin <<a href="mailto:dmjalal90@gmail.com" target="_blank">dmjalal90@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Sir,<div><br></div><div>As I don't have 0.0 value within 500 km. What should I do to get the precipitation value within circles?</div><div><br></div><div>It would be a great help to me.</div><div><br></div><div>Best Regards,</div><div>Jalal</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Apr 2, 2019 at 6:59 AM Md. Jalal Uddin <<a href="mailto:dmjalal90@gmail.com" target="_blank">dmjalal90@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Sorry, sir. I don't have the 0.0 value within 500 km. Please look at the attached figures.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Apr 1, 2019 at 10:14 PM Dennis Shea <<a href="mailto:shea@ucar.edu" target="_blank">shea@ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><pre><span style="font-family:arial,helvetica,sans-serif">[1] Save time: change <b>N=180</b> to (say) <b>N=90</b><br></span></pre><pre><span style="font-family:arial,helvetica,sans-serif"> <a href="http://www.ncl.ucar.edu/Document/Functions/Built-in/gc_inout.shtml" target="_blank"><b>gc_inout</b></a> while written in "C" , it is not particularly 'fast'. It is best to reduce the number of points to check.<br><br>[2] <span style="font-family:arial,helvetica,sans-serif"><b> *YOU**</b> should put timing checks into your code. </span>This will tell you where the time is being spent. EG: <br><br>beg_script = <b>get_cpu_time</b>()<br> :<br> :<br> beg_geo_circle = <b>get_cpu_time</b>()<br> circle = <b>geolocation_circle</b>(slat, slon, srad, sradu, N, optgeo) ; circle is type list<br><b> print</b>("geolocation_circle: " + (<b>get_cpu_time</b>() - beg_geo_circle)+" seconds")<br> :<br> :<br> beg_gc_inout = <b>get_cpu_time</b>()<br> latlon_circle := <b>gc_inout</b>(lat2d,lon2d, poly_lat,poly_lon)<br> print("gc_inout: " + (<b>get_cpu_time</b>() - beg_gc_inout)+" seconds")<br> :<br> :<br></span></pre><pre><span style="font-family:arial,helvetica,sans-serif"> : at end of script<br></span></pre><pre><span style="font-family:arial,helvetica,sans-serif">print("Script: Total time: " + (<b>get_cpu_time</b>() - beg_script)+" seconds")<br><br>[3] <br>It seems you have 0.0 in your data as both a valid value and as a missing value [_FillValue]?<br>In your case, you [possibly] have 0.0 values <b>within</b> and<b> outside</b> 500km. Is that correct?<br>Currently, values outside the circle are set to False by gc_inout. <br>You have also, reset value 0.0 to _FillValue.<br></span></pre><pre><span style="font-family:arial,helvetica,sans-serif">If True, you will have to add code to draw a circle.<br><br><br></span></pre><pre><span style="font-family:arial,helvetica,sans-serif"><br></span></pre><br></div></div></div></div></div></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Mar 29, 2019 at 5:21 AM Md. Jalal Uddin <<a href="mailto:dmjalal90@gmail.com" target="_blank">dmjalal90@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">In addition, the do loop is too slow. How can I make it faster?</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Mar 29, 2019 at 5:04 PM Md. Jalal Uddin <<a href="mailto:dmjalal90@gmail.com" target="_blank">dmjalal90@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Thank you, sir, for your kind help. I was able to mask data for multiple cyclone's centres, but the figure did not show the whole circle data (circle_mar.png). I attached the output figure and code in the attachment. Could I have your kind suggestion?<div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Mar 29, 2019 at 11:35 AM Dennis Shea <<a href="mailto:shea@ucar.edu" target="_blank">shea@ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div>Please see examples 29 and 30 at:</div><div><br></div><div><a href="https://www.ncl.ucar.edu/Applications/polyg.shtml" target="_blank"><b>https://www.ncl.ucar.edu/Applications/polyg.shtml</b></a><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Mar 28, 2019 at 2:54 AM Md. Jalal Uddin <<a href="mailto:dmjalal90@gmail.com" target="_blank">dmjalal90@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">Hi all,<div><br></div><div>Could anyone give me the idea to mask rainfall data for multiple circles? geolocation_circle produce ''circle_lat and lon'' that is 3 dimensions, but the data lat and lon 1 dimension. </div><div><br></div><div>How can be used gc_inout to mask the data inside multiple circles? Please look at the multiple circle's figures in the attached file. </div><div><br></div><div>Any help would be appreciated. <br clear="all"><div><br></div><div><div>Variable: circle_lat</div><div>Type: float</div><div>Total Size: 10800 bytes</div><div> 2700 values</div><div>Number of Dimensions: 3</div><div>Dimensions and sizes: [location | 15] x [radii | 1] x [circle | 180]</div><div>Coordinates:</div><div>Number Of Attributes: 7</div><div> _FillValue : 9.96921e+36</div><div> radii_input_units : km</div><div> radii_input_values : 500</div><div> radii_converted_units : great_circle_degrees</div><div> radii_converted_values : 4.522022</div><div> long_name : circle latitudes</div><div> units : degrees_north</div><div><br></div><div>Variable: circle_lon</div><div>Type: float</div><div>Total Size: 10800 bytes</div><div> 2700 values</div><div>Number of Dimensions: 3</div><div>Dimensions and sizes: [location | 15] x [radii | 1] x [circle | 180]</div><div>Coordinates:</div><div>Number Of Attributes: 7</div><div> _FillValue : 9.96921e+36</div><div> radii_converted_values : 4.522022</div><div> radii_converted_units : great_circle_degrees</div><div> radii_input_values : 500</div><div> radii_input_units : km</div><div> long_name : circle longitudes</div><div> units : degrees_east</div></div><div><br></div>-- <br><div dir="ltr" class="gmail-m_2628315073405710380gmail-m_1984365504148938129gmail-m_-2519170103566468352gmail-m_-3816113367085253956gmail-m_6689286987338579858gmail-m_3121168859412510920gmail-m_-7585789353653927217gmail-m_2592505387119212957gmail-m_2636413628775259330gmail-m_-68130499450245613gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><font size="2" color="#000000"><b>Md. Jalal Uddin</b></font></div><div dir="ltr">MSc in Applied Meteorology (English Language)<br>Nanjing University of Information, Science and Technology, China</div><div dir="ltr"><span style="letter-spacing:0.2px">B.Sc. in Disaster Management (Hons.) </span><br></div><div dir="ltr"><span style="letter-spacing:0.2px">Patuakhali Science and Technology University, Bangladesh.</span></div><div dir="ltr">Cell: +8613260859092, <span style="letter-spacing:0.2px">+8801792052662</span></div><div dir="ltr"><font size="2">Web: <a href="http://www.dmjalal90.weebly.com" target="_blank">www.dmjalal90.weebly.com</a> <br>Facebook: jalal.hossen.39 <br>LinkedIn: <a href="https://bd.linkedin.com/in/md-jalal-uddin-80a026b0" target="_blank">https://bd.linkedin.com/in/md-jalal-uddin-80a026b0</a> <br>Twitter: dmjalal90 <br>Skype: dmjalal90</font><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
_______________________________________________<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/mailman/listinfo/ncl-talk</a><br>
</blockquote></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail-m_2628315073405710380gmail-m_1984365504148938129gmail-m_-2519170103566468352gmail-m_-3816113367085253956gmail-m_6689286987338579858gmail-m_3121168859412510920gmail-m_-7585789353653927217gmail-m_2592505387119212957gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><font size="2" color="#000000"><b>Md. Jalal Uddin</b></font></div><div dir="ltr">MSc in Applied Meteorology (English Language)<br>Nanjing University of Information, Science and Technology, China</div><div dir="ltr"><span style="letter-spacing:0.2px">B.Sc. in Disaster Management (Hons.) </span><br></div><div dir="ltr"><span style="letter-spacing:0.2px">Patuakhali Science and Technology University, Bangladesh.</span></div><div dir="ltr">Cell: +8613260859092, <span style="letter-spacing:0.2px">+8801792052662</span></div><div dir="ltr"><font size="2">Web: <a href="http://www.dmjalal90.weebly.com" target="_blank">www.dmjalal90.weebly.com</a> <br>Facebook: jalal.hossen.39 <br>LinkedIn: <a href="https://bd.linkedin.com/in/md-jalal-uddin-80a026b0" target="_blank">https://bd.linkedin.com/in/md-jalal-uddin-80a026b0</a> <br>Twitter: dmjalal90 <br>Skype: dmjalal90</font><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail-m_2628315073405710380gmail-m_1984365504148938129gmail-m_-2519170103566468352gmail-m_-3816113367085253956gmail-m_6689286987338579858gmail-m_3121168859412510920gmail-m_-7585789353653927217gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><font size="2" color="#000000"><b>Md. Jalal Uddin</b></font></div><div dir="ltr">MSc in Applied Meteorology (English Language)<br>Nanjing University of Information, Science and Technology, China</div><div dir="ltr"><span style="letter-spacing:0.2px">B.Sc. in Disaster Management (Hons.) </span><br></div><div dir="ltr"><span style="letter-spacing:0.2px">Patuakhali Science and Technology University, Bangladesh.</span></div><div dir="ltr">Cell: +8613260859092, <span style="letter-spacing:0.2px">+8801792052662</span></div><div dir="ltr"><font size="2">Web: <a href="http://www.dmjalal90.weebly.com" target="_blank">www.dmjalal90.weebly.com</a> <br>Facebook: jalal.hossen.39 <br>LinkedIn: <a href="https://bd.linkedin.com/in/md-jalal-uddin-80a026b0" target="_blank">https://bd.linkedin.com/in/md-jalal-uddin-80a026b0</a> <br>Twitter: dmjalal90 <br>Skype: dmjalal90</font><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</blockquote></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail-m_2628315073405710380gmail-m_1984365504148938129gmail-m_-2519170103566468352gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><font size="2" color="#000000"><b>Md. Jalal Uddin</b></font></div><div dir="ltr">MSc in Applied Meteorology (English Language)<br>Nanjing University of Information, Science and Technology, China</div><div dir="ltr"><span style="letter-spacing:0.2px">B.Sc. in Disaster Management (Hons.) </span><br></div><div dir="ltr"><span style="letter-spacing:0.2px">Patuakhali Science and Technology University, Bangladesh.</span></div><div dir="ltr">Cell: +8613260859092, <span style="letter-spacing:0.2px">+8801792052662</span></div><div dir="ltr"><font size="2">Web: <a href="http://www.dmjalal90.weebly.com" target="_blank">www.dmjalal90.weebly.com</a> <br>Facebook: jalal.hossen.39 <br>LinkedIn: <a href="https://bd.linkedin.com/in/md-jalal-uddin-80a026b0" target="_blank">https://bd.linkedin.com/in/md-jalal-uddin-80a026b0</a> <br>Twitter: dmjalal90 <br>Skype: dmjalal90</font><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail-m_2628315073405710380gmail-m_1984365504148938129gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><font size="2" color="#000000"><b>Md. Jalal Uddin</b></font></div><div dir="ltr">MSc in Applied Meteorology (English Language)<br>Nanjing University of Information, Science and Technology, China</div><div dir="ltr"><span style="letter-spacing:0.2px">B.Sc. in Disaster Management (Hons.) </span><br></div><div dir="ltr"><span style="letter-spacing:0.2px">Patuakhali Science and Technology University, Bangladesh.</span></div><div dir="ltr">Cell: +8613260859092, <span style="letter-spacing:0.2px">+8801792052662</span></div><div dir="ltr"><font size="2">Web: <a href="http://www.dmjalal90.weebly.com" target="_blank">www.dmjalal90.weebly.com</a> <br>Facebook: jalal.hossen.39 <br>LinkedIn: <a href="https://bd.linkedin.com/in/md-jalal-uddin-80a026b0" target="_blank">https://bd.linkedin.com/in/md-jalal-uddin-80a026b0</a> <br>Twitter: dmjalal90 <br>Skype: dmjalal90</font><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</blockquote></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><font color="#000000" size="2"><b>Md. Jalal Uddin</b></font></div><div dir="ltr">MSc in Applied Meteorology (English Language)<br>Nanjing University of Information, Science and Technology, China</div><div dir="ltr"><span style="letter-spacing:0.2px">B.Sc. in Disaster Management (Hons.) </span><br></div><div dir="ltr"><span style="letter-spacing:0.2px">Patuakhali Science and Technology University, Bangladesh.</span></div><div dir="ltr">Cell: +8613260859092, <span style="letter-spacing:0.2px">+8801792052662</span></div><div dir="ltr"><font size="2">Web: <a href="http://www.dmjalal90.weebly.com" target="_blank">www.dmjalal90.weebly.com</a> <br>Facebook: jalal.hossen.39 <br>LinkedIn: <a href="https://bd.linkedin.com/in/md-jalal-uddin-80a026b0" target="_blank">https://bd.linkedin.com/in/md-jalal-uddin-80a026b0</a> <br>Twitter: dmjalal90 <br>Skype: dmjalal90</font><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>