<div dir="ltr"><div class="gmail_default" style="font-size:small">If by "plot grid values" you mean the actual numbers of the values, this is why I said you need to use gsn_add_text. See this page:</div><div class="gmail_default" style="font-size:small">
<br></div><div class="gmail_default" style><a href="http://www.ncl.ucar.edu/Applications/text.shtml">http://www.ncl.ucar.edu/Applications/text.shtml</a><br></div><div class="gmail_default" style><br></div><div class="gmail_default" style>
There are number of map examples that show how to add text.</div><div class="gmail_default" style><br></div><div class="gmail_default" style>See text_10.ncl. After you create the map with gsn_csm_vector_map_ce, you use the id from this function to call gsn_add_text:</div>
<div class="gmail_default" style> </div><div class="gmail_default" style><font face="courier new, monospace"> plot = gsn_csm_vector_map_ce(wks,plot,u,v,res)</font></div><div class="gmail_default" style><pre><font face="courier new, monospace"> txres = True
txres@txFontHeightF = 0.007 ; make text strings smaller
text = gsn_add_text(wks,plot,values,lon,lat,txres)
draw(plot) ; Now draw map with text strings and
frame(wks) ; advance the frame</font></pre><pre><font face="arial, helvetica, sans-serif">The "values" should be an array of numbers you want to draw on the map, and the lon and lat variables should be 1D arrays of the same representing the lon/lat location of each value you want to draw.</font></pre>
<pre><font face="arial, helvetica, sans-serif"><br></font></pre><pre><font face="arial, helvetica, sans-serif">--Mary</font></pre></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jul 24, 2014 at 2:42 PM, Rabah Hachelaf <span dir="ltr"><<a href="mailto:hachelaf@sca.uqam.ca" target="_blank">hachelaf@sca.uqam.ca</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Hi Mary,<div><br></div><div>I succeeded plot wind barb without any problem using "gsn_csm_vector_map" function, now it remains just plot grid values.</div>
<div>Sorry for that but on this page <a href="http://www.ncl.ucar.edu/Applications/weather_sym.shtml" style="font-size:13px;font-family:arial,sans-serif" target="_blank">http://www.ncl.ucar.edu/Applications/weather_sym.shtml</a><u>, i</u> can't find any function or a clear example who plot gridded values. </div>
<div><br></div><div>Thanks for help.</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-07-24 16:27 GMT-04:00 Mary Haley <span dir="ltr"><<a href="mailto:haley@ucar.edu" target="_blank">haley@ucar.edu</a>></span>:<div>
<div class="h5"><br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div style="font-size:small">Did you see our wind barb page:</div>
<div style="font-size:small">
<br></div><div><a href="http://www.ncl.ucar.edu/Applications/barb.shtml" target="_blank">http://www.ncl.ucar.edu/Applications/barb.shtml</a><br>
</div><div><br></div><div>This should work for gridded data which is either on a rectilinear grid, and hence has coordinate arrays attached to the U and V variables, or on a curvilinear grid, in which you have two-dimensional coordinate arrays for the X and Y (or lat/lon) dimensions.</div>
<div><br></div><div>If you have a curvilinear grid that's over a map, then you will need to attach the 2D lat/lon arrays to your u and v variables via the special lat2d and lon2d attributes before you plot:</div>
<div><br></div><div><div> u@lat2d = f->lat</div><div> u@lon2d = f->lon</div><div> v@lat2d = f->lat</div>
<div> v@lon2d = f->lon</div><div><br></div><div>The above code snippet will have to be changed, of course, to match whatever the lat/lon variables are called on your file.</div>
<div><br></div><div>If you are not drawing wind barbs over a map, then you need to provide the 2D coordinates via the vfXArray and vfYArrays. See the "meteo_1.ncl" example at:</div>
<div><br></div><div><a href="https://www.ncl.ucar.edu/Applications/meteo.shtml" target="_blank">https://www.ncl.ucar.edu/Applications/meteo.shtml</a><br></div><div><br></div><div>
<br></div></div>
<div>You will have to add the text strings yourself, though, probably via calls to gsn_add_text.</div><span><font color="#888888"><div><br></div><div>
--Mary</div></font></span></div><div><div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jul 24, 2014 at 12:46 PM, Rabah Hachelaf <span dir="ltr"><<a href="mailto:hachelaf@sca.uqam.ca" target="_blank">hachelaf@sca.uqam.ca</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>Examples in the link are for plot station data, but in may case i have gridded data (gfs data).</div>
<div>Does plot station data work for gridded data also.</div><div>Can you suggest me a simple script to plot a variable values.</div>
<div><br></div><div>Thanks</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-07-24 11:32 GMT-04:00 Mary Haley <span dir="ltr"><<a href="mailto:haley@ucar.edu" target="_blank">haley@ucar.edu</a>></span>:<div>
<div><br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div style="font-size:small">Please see this page of examples:</div>
<div style="font-size:small">
<br></div><div><a href="http://www.ncl.ucar.edu/Applications/weather_sym.shtml" target="_blank">http://www.ncl.ucar.edu/Applications/weather_sym.shtml</a><br>
</div><div><br></div><div>--Mary</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div>On Wed, Jul 23, 2014 at 4:43 PM, Rabah Hachelaf <span dir="ltr"><<a href="mailto:hachelaf@sca.uqam.ca" target="_blank">hachelaf@sca.uqam.ca</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div><div dir="ltr"><div class="gmail_quote">
<div dir="ltr">Hi All,<br></div><div dir="ltr">
<div><br></div><div>I need an example ncl script how i can plot grid data values (temperature for example) like the map attached.</div>
<span><font color="#888888"><div><div>Thanks.</div><span><font color="#888888">-- <br><div dir="ltr"><div>------------------------------</div>
Cordialement,<br>Best regards,<br>Rabah Hachelaf <br> <br></div>
</font></span></div></font></span></div>
</div><br><br clear="all"><div><br></div><div dir="ltr"><br></div>
</div>
<br></div></div>_______________________________________________<br>
ncl-talk mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>
</blockquote></div></div></div><div><div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><div>------------------------------</div>Cordialement,<br>Best regards,<br>Rabah Hachelaf <br></div>
</div></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div></div></div><div><div class="h5"><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><div>------------------------------</div>Cordialement,<br>Best regards,<br>Rabah Hachelaf <br></div>
</div></div></div>
</blockquote></div><br></div></div>