<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" target="_blank" style="font-size:13px;font-family:arial,sans-serif">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>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-size:small">Did you see our wind barb page:</div><div class="gmail_default" style="font-size:small">
<br></div><div class="gmail_default"><a href="http://www.ncl.ucar.edu/Applications/barb.shtml" target="_blank">http://www.ncl.ucar.edu/Applications/barb.shtml</a><br>
</div><div class="gmail_default"><br></div><div class="gmail_default">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 class="gmail_default"><br></div><div class="gmail_default">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 class="gmail_default"><br></div><div class="gmail_default"><div class="gmail_default"> u@lat2d = f->lat</div><div class="gmail_default"> u@lon2d = f->lon</div><div class="gmail_default"> v@lat2d = f->lat</div>
<div class="gmail_default"> v@lon2d = f->lon</div><div class="gmail_default"><br></div><div class="gmail_default">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 class="gmail_default"><br></div><div class="gmail_default">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 class="gmail_default"><br></div><div class="gmail_default"><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 class="gmail_default">You will have to add the text strings yourself, though, probably via calls to gsn_add_text.</div><span class="HOEnZb"><font color="#888888"><div class="gmail_default"><br></div><div class="gmail_default">
--Mary</div></font></span></div><div class="HOEnZb"><div class="h5">
<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:0 0 0 .8ex;border-left:1px #ccc 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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-size:small">Please see this page of examples:</div><div class="gmail_default" style="font-size:small">
<br></div><div class="gmail_default"><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 class="gmail_default"><br></div><div class="gmail_default">--Mary</div><div class="gmail_default"><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:0 0 0 .8ex;border-left:1px #ccc 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><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><div>------------------------------</div>Cordialement,<br>Best regards,<br>Rabah Hachelaf <br></div>
</div>