<html>
<head>
<title></title>
</head>
<body style="font-family:Arial;font-size:14px">
<p><span style="font-size:11px;"><span style="font-size:12px;">Dear Abdolhalim,<br>
<br>
Attached is the script that I use to plot topography map of RegCM4 output.<br>
As Mary pointed out, you need to define some more information for zooming in on your data. In the attached script you can find how to get lat/lon values from your file and define lat/lon of projection origin.<br>
For masking, just select and define “landuse” variable from your file and then use “mask” function of NCL (http://www.ncl.ucar.edu/Document/Functions/Built-in/mask.shtml) to mask land or sea by choosing corresponding numbers from the “landuse”.<br>
Hope that helps. If not, let ncl-talk know.<br>
Deniz</span><br>
<br>
<span style="color: rgb(169, 169, 169);">--<br>
Deniz Bozkurt, PhD<br>
Post-doctoral Fellow<br>
Center for Climate and Resilience Research<br>
Department of Geophysics, University of Chile<br>
Blanco Encalada 2002, Santiago, Chile<br>
E-mail: dbozkurt@dgf.uchile.cl, deniboz@gmail.com<br>
Web: http://dgf.uchile.cl/~dbozkurt/</span></span><br>
<br>
<br>
<br>
Alinti Mary Haley <<a href="mailto:haley@ucar.edu">haley@ucar.edu</a>></p>
<blockquote style="border-left:2px solid blue;margin-left:2px;padding-left:12px;" type="cite">
<div dir="ltr">
<div class="gmail_default" style="font-size:small">Dear Abdolhalim,</div>
<div class="gmail_default" style="font-size:small"> </div>
<div class="gmail_default" style="font-size:small">Welcome to ncl-talk. Always good to have new NCL users on board.</div>
<div class="gmail_default" style="font-size:small"> </div>
<div class="gmail_default" style="font-size:small">Since you want to plot this over a map, you should use gsn_csm_contour_map instead of gsn_contour.</div>
<div class="gmail_default" style="font-size:small"> </div>
<div class="gmail_default" style="font-size:small">gsn_csm_contour_map will give you more "value added" graphics, as it will look at your "t" variable and try to set some graphical options for you, like titles, and labels on the X and Y axis. It will also automatically give you a labelbar if you set "cnFillOn" to True.</div>
<div class="gmail_default" style="font-size:small"> </div>
<div class="gmail_default" style="font-size:small">Please try the attached script. I took out a lot of your resource settings, because they are likely not needed if you use gsn_csm_contour_map. The one issue you will have is that your map won't be zoomed in, because the default is to give you a global map. </div>
<div class="gmail_default" style="font-size:small"> </div>
<div class="gmail_default" style="font-size:small">
<div class="gmail_default">You may want to see this page for examples of zooming in on regional climate data:</div>
<div class="gmail_default"> </div>
<div class="gmail_default"><a href="http://www.ncl.ucar.edu/Applications/rcm.shtml">http://www.ncl.ucar.edu/Applications/rcm.shtml</a></div>
<div> </div>
</div>
<div class="gmail_default" style="font-size:small">If you get an error in your script, then please post back to ncl-talk, but put the following line in your script and let us know what it says:</div>
<div class="gmail_default" style="font-size:small"> </div>
<div class="gmail_default" style="font-size:small">printVarSummary(t)</div>
<div class="gmail_default" style="font-size:small"> </div>
<div class="gmail_default" style="font-size:small">Also include the error message.</div>
<div class="gmail_default" style="font-size:small"> </div>
<div class="gmail_default" style="font-size:small">As a beginner to NCL, I suggest going here:</div>
<div class="gmail_default" style="font-size:small"> </div>
<div class="gmail_default" style=""><a href="http://www.ncl.ucar.edu/get_started.shtml">http://www.ncl.ucar.edu/get_started.shtml</a></div>
<div class="gmail_default" style=""> </div>
<div class="gmail_default" style="">and in particular, look at the "Information on learning NCL section".</div>
<div class="gmail_default" style=""> </div>
<div class="gmail_default" style="">Most folks who need to write NCL scripts to look at their data use our "examples" page:</div>
<div class="gmail_default" style=""> </div>
<div class="gmail_default" style=""><a href="http://www.ncl.ucar.edu/Applications/">http://www.ncl.ucar.edu/Applications/</a></div>
<div class="gmail_default" style=""> </div>
<div class="gmail_default" style="">Good luck,</div>
<div class="gmail_default" style=""> </div>
<div class="gmail_default" style="">-Mary</div>
<div class="gmail_default" style=""> </div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Thu, Jun 11, 2015 at 3:47 AM, saeed bayat <span dir="ltr"><<a href="mailto:saeedbayat7276@gmail.com" target="_blank">saeedbayat7276@gmail.com</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">
<div>
<div>Dear NCL Users</div>
I am pretty new in NCL. I am using output of RegCM4 to plot topo in NCL. I want to add mask to the map and country borders and then change the numbers of X and Y axis to the real lat and lon.<br>
I attached the plot I got using one template codes in NCL website (and the script). Also attached the header information of file I am using.</div>
Please help me to solve the problem.<br clear="all">
<div>
<div>
<div><br>
<span><font color="#888888">--</font></span><br>
<div>
<div dir="ltr">
<div>
<div dir="ltr"><span><font color="#888888">Abdolhalim Bayat</font></span>
<div><span><font color="#888888">Ph.D Candidate of Synoptic Climatology</font></span></div>
<div><span><font color="#888888">The Tehran University of Iran</font></span></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
_______________________________________________<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" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
</blockquote>
</div>
</div>
</div>
</blockquote>
<p><br>
<br></p>
</body>
</html>