<div dir="ltr"><div><div><div>Hi Kyle, thank you for your answer.<br><br></div>I tried this code, it works fine for my purpose, but there is a problem with time of execution. The first 7/8 &quot;textlat&quot; loops are sufficiently fast, but the following loops become very slow, than process fault.<br><br>contour_tc = wrf_contour(a,wks,tf2,opts)<br>      plot = wrf_map_overlays(a,wks,(/contour_tc/),platres,mpres)    ;overlay per info confini<br>      poly = gsn_add_shapefile_polylines(wks,plot,&quot;reg2011_g.shp&quot;,pres) ;aggiungo shapefile confini regionali<br>      latout = fspan(36,47,23)<br>      lonout = fspan(7,18,23)<br>      do textlat = 0,23,1<br>print (textlat)<br>         do textlon = 0,23,1<br>         loc  = wrf_user_latlon_to_ij(a, latout(textlat), lonout(textlon))<br>        text = gsn_add_text(wks,plot,sprintf(&quot;%0.0f&quot;, tc2(loc(0),loc(1))),lonout(textlon),latout(textlat),txres)<br>        end do<br>          end do<br><br>draw(plot)<br>frame(wks)<br><br></div>Thank you again,<br></div>Stefano.<br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-12-01 14:51 GMT+01:00 Kyle Griffin <span dir="ltr">&lt;<a href="mailto:ksgriffin2@wisc.edu" target="_blank">ksgriffin2@wisc.edu</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Stefano,<div><br></div><div>It&#39;ll take some additional lines of code, but gsn_add_text has the functionality you are most likely looking for.</div><div><br></div><div><a href="https://www.ncl.ucar.edu/Document/Graphics/Interfaces/gsn_add_text.shtml" target="_blank">https://www.ncl.ucar.edu/Document/Graphics/Interfaces/gsn_add_text.shtml</a><br></div><div><br></div><div>The biggest concern is that your x and y need to be individual pairs corresponding to each and every grid point that you want the text at. In essence, you would need a two-dimensional latitude array and two-dimensional longitude array of only the points where you want text to be plotted, as well as the values/strings you want plotted at those points.</div><div><br></div><div>I would recommend trying this function with a small number of grid points first to make sure it works and does what you want before trying to make the function apply to an entire grid. This may prove to be a bit trickier with a WRF grid, I have not worked with them myself so I&#39;m not sure. Let the list know if you have any problems/questions...</div><div><br></div><div><br></div><div>Kyle</div></div><div class="gmail_extra"><br clear="all"><div><div><div dir="ltr"><div><div dir="ltr">----------------------------------------<div>Kyle S. Griffin</div><div>Department of Atmospheric and Oceanic Sciences</div><div>University of Wisconsin - Madison</div><div>Room 1407</div><div>1225 W Dayton St, Madison, WI 53706</div><div>Email: <a href="mailto:ksgriffin2@wisc.edu" target="_blank">ksgriffin2@wisc.edu</a></div></div></div></div></div></div>
<br><div class="gmail_quote"><div><div class="h5">On Tue, Dec 1, 2015 at 5:31 AM, Stefano Guerra <span dir="ltr">&lt;<a href="mailto:guerras90@gmail.com" target="_blank">guerras90@gmail.com</a>&gt;</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="h5"><div dir="ltr"><span lang="en"><span>Hi, <br></span></span><div><span lang="en"><span><br>I tried</span> to search <span>this function</span><span>,</span> <span>but</span> <span>I couldn&#39;t</span> <span>find</span> <span>how</span> <span>can I add</span> <span>text data</span> (from a WRF output) <span>on a contour plot</span><span>.<br><br>Maybe I can explain better with an example, I want realize something</span> like<span></span> <span>this: <br><br><a href="http://modeles2.meteociel.fr/modeles_gfs/runs/2015120106/3-580.GIF?01-6" target="_blank">http://modeles2.meteociel.fr/modeles_gfs/runs/2015120106/3-580.GIF?01-6</a><br><br><br></span></span></div><div><span lang="en"><span>Thank you for your help,<br></span></span></div><div><span lang="en"><span>Stefano.<br></span></span></div></div>
<br></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>
<br></blockquote></div><br></div>
</blockquote></div><br></div>