<div dir="ltr"><div class="gmail_default" style="font-size:small">​Zilore,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">WRF data is on a curvilinear grid, which means each data point is represented by a unique lat/lon value. You said that &quot;wrf_map_overlays&quot; didn&#39;t work for you, but it would help if you explain how it didn&#39;t work.  Did you get an error message? If so, include the error message. Did you get the wrong plot? If so, indicate this. The wrf_xxxx scripts are tailored for WRF ARW data, so they should work pretty well.</div>
<div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">If you want to use the gsn_csm_xxxx scripts, you have to provide lat/lon information, because the gsn_csm_xxxx scripts are *not* tailored for WRF data. Otherwise NCL will have no way of knowing what map projection or where your data is supposed to be overlaid on the map.  </div>
<div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">If you are trying to use gsn_csm_contour_map and gsn_csm_contour to contour WRF data, then I suggest visiting this page:</div>
<div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">​<a href="http://www.ncl.ucar.edu/Applications/wrfgsn.shtml">http://www.ncl.ucar.edu/Applications/wrfgsn.shtml</a></div>
<div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">The first example, wrf_gsn_1.ncl, is the simplest one, but it only draws one field on a map.</div><div class="gmail_default" style="font-size:small">
<br></div><div class="gmail_default" style="font-size:small">The last example, wrf_gsn_5.ncl, shows how to overlay multiple fields on one plot.  It shows how to use both gsn_csm_xxx scripts, or wrf_xxxx scripts.  It&#39;s up to you which one you want.</div>
<div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Please look at these examples and try one of them.  If you continue to have problems, include your script again, but this time include more information about what is wrong.</div>
<div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Thanks,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">
--Mary</div><div class="gmail_default" style="font-size:small"><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Aug 1, 2014 at 4:05 PM, zilore mumba <span dir="ltr">&lt;<a href="mailto:zmumba@yahoo.com" target="_blank">zmumba@yahoo.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:12pt">
<div>My sincere apologies for posting very basic issues. I have been trying to make headway in learning ncl with very little progress. All the examples I try do not seem to work. Examples,</div><div style="width:450px;font-family:&#39;Georgia&#39;,&#39;Times&#39;,&#39;Times New Roman&#39;,&#39;serif&#39;;margin-top:5px;margin-bottom:5px">
<table cellspacing="0" cellpadding="0" border="0" style="width:450px;height:auto;display:block"><tbody><tr><td colspan="7" style="height:1px;background-color:#e5e5e5;font-size:1px;border-collapse:collapse"><div style="min-height:1px;line-height:0px">
 </div></td></tr><tr><td rowspan="5" style="width:1px;background-color:#e5e5e5;font-size:1pt;border-collapse:collapse"><div style="width:1px;font-size:1pt"> </div></td><td rowspan="5" style="width:14px;font-size:0pt;border-collapse:collapse">
<div style="width:14px;font-size:14pt"> </div></td><td colspan="2" style="height:6px;font-size:0pt;border-collapse:collapse"><div style="min-height:6px;font-size:6pt"> </div></td><td rowspan="5" style="width:20px;font-size:0pt;border-collapse:collapse">
<div style="width:20px;font-size:20pt"> </div></td><td rowspan="5" width="1" style="width:1px;background-color:#e5e5e5;font-size:1pt;border-collapse:collapse"><div style="width:1px;font-size:1pt"> </div></td></tr><tr><td colspan="2" style="width:100%;vertical-align:middle">
<div style="line-height:16.5px;width:414px"><div style="word-wrap:break-word;word-break:break-all"><span></span><span></span><a href="https://www.dropbox.com/s/aeoqmfgrk6pbd99/wrfout_d01_2014-07-29_00%5E%2500%5E%2500.nc" style="line-height:100%;font-size:18px;display:block;color:rgb(0,0,0)!important" target="_blank"><span style="margin:0px 0px 3px;line-height:21px;max-height:43px;display:inline-block;overflow:hidden!important">wrfout_d01_2014-07-29_00^%00^%00.nc</span></a><div style="font-size:13px;line-height:20px;color:rgb(153,153,153);max-height:81px;overflow:hidden">
zilore mumba shared from Dropbox</div></div></div></td></tr><tr><td colspan="2" style="height:6px;font-size:0pt;border-collapse:collapse"><div style="min-height:6px;font-size:6pt"></div></td></tr><tr><td style="vertical-align:middle;font-family:&#39;Arial&#39;,&#39;Helvetica Neue&#39;,&#39;Helvetica&#39;,&#39;sans-serif&#39;">
<div style="font-size:0pt"><a href="https://www.dropbox.com/s/aeoqmfgrk6pbd99/wrfout_d01_2014-07-29_00%5E%2500%5E%2500.nc" style="color:black;text-decoration:none!important" target="_blank"><span style="display:inline-block;line-height:11px;max-width:314px;min-width:254px;overflow:hidden;max-height:13px;word-break:break-all"><span style="vertical-align:middle;font-size:9px;line-height:11px;color:#999999">View on <span style="font-weight:bold">www.dropbox.com</span></span></span></a></div>
</td><td style="vertical-align:middle;width:100px;font-family:&#39;Arial&#39;,&#39;Helvetica Neue&#39;,&#39;Helvetica&#39;,&#39;sans-serif&#39;"><div style="max-width:100px;min-width:80px;overflow:hidden;text-align:right;line-height:11px;max-height:13px;font-size:0pt">
<span style="vertical-align:middle;font-size:9px;line-height:11px;color:#999999">Preview by Yahoo</span></div></td></tr><tr><td colspan="2" style="height:9px;font-size:0pt;border-collapse:collapse"><div style="min-height:9px;font-size:9pt">
</div></td></tr><tr><td colspan="7" style="height:1px;background-color:#e5e5e5;font-size:1px;border-collapse:collapse"><div style="min-height:1px;line-height:0px"> </div></td></tr></tbody></table></div><div><br></div><div>
1. I have tried the two examples on &quot;wrf_map_overlay&quot; examples found at <a href="https://www.ncl.ucar.edu/Document/Functions/WRF_arw/wrf_map_overlays.shtml" target="_blank">wrf_map_overlays</a> both don&#39;t work for me, only modification being the filename (which works in grads)</div>
<div>2. <span style="font-size:12pt"> </span><span style="font-size:12pt">I have tried</span><span style="font-size:12pt"> the &quot;Getting_started example 5&quot;found at <a href="https://www.ncl.ucar.edu/Document/Manuals/Getting_Started/Examples/gsun05n.shtml" target="_blank">Getting started using NCL - example 5 - contour plots over maps</a>, it does not work for me.</span></div>
<div><span style="font-size:12pt">3. I have tried *overlay_*&quot; examples found at <a href="https://www.ncl.ucar.edu/Applications/Scripts/overlay_1.ncl" target="_blank">https://www.ncl.ucar.edu/Applications/Scripts/overlay_1.ncl</a>, they do not work for
 me.</span></div><div><span style="font-size:12pt">I would appreciate if someone can make overlay_1.ncl (below) work for me. Modifications are a) my filename and longitude and latitude of my domain. The wrf output file is attached if allowed since it is too large (through dropbox). I moved to Windows which does not allow : in file names.</span></div>
<div style="color:rgb(0,0,0);font-size:12pt;font-family:HelveticaNeue,&#39;Helvetica Neue&#39;,Helvetica,Arial,&#39;Lucida Grande&#39;,sans-serif;font-style:normal;background-color:transparent"><span style="font-size:12pt">The error I get is: </span></div>
<div style="background-color:transparent">fatal:Dimension (bottom_top) of file (wrfout_d01_2014-07-29_00:00:00) does not have an associated coordinate variable</div><div style="background-color:transparent"><span></span></div>
<div style="background-color:transparent">fatal:[&quot;Execute.c&quot;:8128]:Execute: Error occurred at or near line 16 in file overlay_1.ncl</div><div style="color:rgb(0,0,0);font-size:12pt;font-family:HelveticaNeue,&#39;Helvetica Neue&#39;,Helvetica,Arial,&#39;Lucida Grande&#39;,sans-serif;font-style:normal;background-color:transparent">
<span style="font-size:12pt"><br></span></div><div style="background-color:transparent">;*************************************************</div><div style="background-color:transparent">; overlay_1.ncl</div><div style="background-color:transparent">
;</div><div style="background-color:transparent">; Concepts illustrated:</div><div style="background-color:transparent">;   - Overlaying line contours on filled contours</div><div style="background-color:transparent">;   - Explicitly setting contour levels</div>
<div style="background-color:transparent">;   - Selecting a different color map</div><div style="background-color:transparent">;</div><div style="background-color:transparent">;*************************************************</div>
<div style="background-color:transparent"><br></div><div style="background-color:transparent">load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl&quot;</div><div style="background-color:transparent">load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl&quot;</div>
<div style="background-color:transparent"><br></div><div style="background-color:transparent">begin</div><div style="background-color:transparent">  a = addfile(&quot;wrfout_d01_2014-07-29_00:00:<a href="http://00.nc" target="_blank">00.nc</a>&quot;,&quot;r&quot;)</div>
<div style="background-color:transparent">  temp = a-&gt;T(0,{500},:,:)</div><div style="background-color:transparent">  uwnd =
 a-&gt;U(0,{500},:,:)</div><div style="background-color:transparent"><br></div><div style="background-color:transparent">  wks = gsn_open_wks(&quot;ps&quot;,&quot;overlay&quot;)</div><div style="background-color:transparent">
  gsn_define_colormap(wks,&quot;BlueDarkRed18&quot;)    ; use the BlueDarkRed18 colormap</div><div style="background-color:transparent"><br></div><div style="background-color:transparent">  res = True</div><div style="background-color:transparent">
  res@mpFillOn = False</div><div style="background-color:transparent">  res@mpMaxLatF =  -4.07                      ; specify the plot domain</div><div style="background-color:transparent">  res@mpMinLatF = -21.9                       ;</div>
<div style="background-color:transparent">  res@mpMinLonF =  17.25                      ;</div><div style="background-color:transparent">  res@mpMaxLonF =  38.44                      ;</div><div style="background-color:transparent">
  sres@gsnFrame = False                       ; do not advance the frame</div><div style="background-color:transparent">  sres@cnLevelSelectionMode = &quot;ExplicitLevels&quot; ; use explicit levels</div><div style="background-color:transparent">
  sres@cnLevels = ispan(-5,35,5)              ; set the contour levels</div><div style="background-color:transparent"><br></div><div style="background-color:transparent">  plot = gsn_csm_contour_map(wks,temp,res)    ; create the temperature plot</div>
<div style="background-color:transparent">  plot_ov = gsn_csm_contour(wks,uwnd,sres)    ; create the U-wind plot</div><div style="background-color:transparent">  overlay(plot,plot_ov)                       ; overlay the U-wind plot on the temperature plot</div>
<div style="background-color:transparent">  draw(plot)                                  ; draw the temperature plot (with the U-wind plot overlaid)</div><div style="background-color:transparent">  frame(wks)                                  ; advance the frame</div>
<div style="background-color:transparent">end</div><div style="background-color:transparent"><br></div><div style="background-color:transparent">  res@mpOutlineOn = True                            ; turn the map outline on</div>
<div style="background-color:transparent">  res@gsnDraw      =  False                   ; do not draw the plot</div><div style="background-color:transparent"><span></span></div><div style="background-color:transparent"> </div>
<div><span style="font-size:12pt"><br></span></div><div style="width:450px;font-family:&#39;Georgia&#39;,&#39;Times&#39;,&#39;Times New Roman&#39;,&#39;serif&#39;;margin-top:5px;margin-bottom:5px"><table cellspacing="0" cellpadding="0" border="0" style="width:450px;height:170px;display:block">
<tbody><tr><td colspan="8" style="height:1px;background-color:#e5e5e5;font-size:1px;border-collapse:collapse"><div style="min-height:1px;background-color:#e5e5e5;font-size:1px;line-height:0px"> </div></td></tr><tr><td rowspan="5" style="width:1px;background-color:#e5e5e5;font-size:1pt;border-collapse:collapse">
<div style="width:1px;background-color:#e5e5e5;font-size:1pt"> </div></td><td rowspan="5" style="vertical-align:middle;width:168px;height:168px;background-color:#000000;border-collapse:collapse"><div style="width:168px" align="center">
<a href="https://www.ncl.ucar.edu/Document/Manuals/Getting_Started/Examples/gsun05n.shtml" style="text-decoration:none!important;color:#000000!important" target="_blank"><img alt="image" src="https://www.ncl.ucar.edu/Document/Manuals/Getting_Started/Examples/gsun05n.sm.1.gif" width="168" height="168" style="display:block;margin:auto"></a></div>
</td><td rowspan="5" style="width:1px;background-color:#e5e5e5;font-size:0pt;border-collapse:collapse"><div style="width:1px;background-color:#e5e5e5;font-size:1pt"> </div></td><td rowspan="5" style="width:14px;background-color:#ffffff;font-size:0pt;border-collapse:collapse">
<div style="width:14px;background-color:#ffffff;font-size:14pt"> </div></td><td colspan="2" style="height:6px;background-color:#ffffff;font-size:0pt;border-collapse:collapse"><div style="min-height:6px;background-color:#ffffff;font-size:6pt">
 </div></td><td rowspan="5" style="width:20px;background-color:#ffffff;font-size:0pt;border-collapse:collapse"><div style="width:20px;background-color:#ffffff;font-size:20pt"> </div></td><td rowspan="5" width="1" style="width:1px;background-color:#e5e5e5;font-size:1pt;border-collapse:collapse">
<div style="width:1px;background-color:#e5e5e5;font-size:1pt"> </div></td></tr><tr><td colspan="2" style="width:100%;vertical-align:middle;font-family:&#39;Georgia&#39;,&#39;Times&#39;,&#39;Times New Roman&#39;,&#39;serif&#39;">
<div style="line-height:16.5px;background-color:#ffffff;min-height:135px;width:245px"><div style="word-wrap:break-word;word-break:break-all"><span></span><span></span><a href="https://www.ncl.ucar.edu/Document/Manuals/Getting_Started/Examples/gsun05n.shtml" style="text-decoration:none!important;color:#000000!important;line-height:100%;font-size:18px;display:block" target="_blank"><span style="margin:0;font-weight:normal;margin-bottom:3px;font-size:18px;line-height:21px;max-height:43px;color:#000000;overflow:hidden!important;display:inline-block">Getting started using NCL - example 5 - contour plots ov...</span></a><div style="font-size:13px;line-height:20px;color:#999999;max-height:81px;font-family:&#39;Georgia&#39;,&#39;Times&#39;,&#39;Times New Roman&#39;,&#39;serif&#39;;overflow:hidden">
NCL Home &gt;
Documentation &gt;
Manuals &gt;
Getting Started GSUN &gt; Examples &gt; 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 </div></div></div></td></tr><tr><td colspan="2" style="height:4px;background-color:#ffffff;font-size:0pt;border-collapse:collapse"><div style="min-height:4px;background-color:#ffffff;font-size:4pt">
</div></td></tr><tr><td style="vertical-align:middle;font-family:&#39;Arial&#39;,&#39;Helvetica Neue&#39;,&#39;Helvetica&#39;,&#39;sans-serif&#39;"><div style="font-size:0pt"><a href="https://www.ncl.ucar.edu/Document/Manuals/Getting_Started/Examples/gsun05n.shtml" style="color:black;text-decoration:none!important" target="_blank"><span style="display:inline-block;line-height:11px;max-width:145px;min-width:85px;overflow:hidden;max-height:13px;word-break:break-all"><span style="vertical-align:middle;font-size:9px;line-height:11px;color:#999999">View on <span style="font-weight:bold">www.ncl.ucar.edu</span></span></span></a></div>
</td><td style="vertical-align:middle;width:100px;font-family:&#39;Arial&#39;,&#39;Helvetica Neue&#39;,&#39;Helvetica&#39;,&#39;sans-serif&#39;"><div style="max-width:100px;min-width:80px;overflow:hidden;text-align:right;line-height:11px;max-height:13px;font-size:0pt">
<span style="vertical-align:middle;font-size:9px;line-height:11px;color:#999999">Preview by Yahoo</span></div></td></tr><tr><td colspan="2" style="height:9px;background-color:#ffffff;font-size:0pt;border-collapse:collapse">
<div style="min-height:9px;background-color:#ffffff;font-size:9pt"></div></td></tr><tr><td colspan="8" style="height:1px;background-color:#e5e5e5;font-size:1px;border-collapse:collapse"><div style="min-height:1px;background-color:#e5e5e5;font-size:1px;line-height:0px">
 </div></td></tr></tbody></table></div><div>  </div><div style="width:450px;font-family:&#39;Georgia&#39;,&#39;Times&#39;,&#39;Times New Roman&#39;,&#39;serif&#39;;margin-top:5px;margin-bottom:5px"><table cellspacing="0" cellpadding="0" border="0" style="width:450px;height:auto;display:block">
<tbody><tr><td colspan="7" style="height:1px;background-color:#e5e5e5;font-size:1px;border-collapse:collapse"><div style="min-height:1px;background-color:#e5e5e5;font-size:1px;line-height:0px"> </div></td></tr><tr><td rowspan="5" style="width:1px;background-color:#e5e5e5;font-size:1pt;border-collapse:collapse">
<div style="width:1px;background-color:#e5e5e5;font-size:1pt"> </div></td><td rowspan="5" style="width:14px;background-color:#ffffff;font-size:0pt;border-collapse:collapse"><div style="width:14px;background-color:#ffffff;font-size:14pt">
 </div></td><td colspan="2" style="height:6px;background-color:#ffffff;font-size:0pt;border-collapse:collapse"><div style="min-height:6px;background-color:#ffffff;font-size:6pt"> </div></td><td rowspan="5" style="width:20px;background-color:#ffffff;font-size:0pt;border-collapse:collapse">
<div style="width:20px;background-color:#ffffff;font-size:20pt"> </div></td><td rowspan="5" width="1" style="width:1px;background-color:#e5e5e5;font-size:1pt;border-collapse:collapse"><div style="width:1px;background-color:#e5e5e5;font-size:1pt">
 </div></td></tr><tr><td colspan="2" style="width:100%;vertical-align:middle;font-family:&#39;Georgia&#39;,&#39;Times&#39;,&#39;Times New Roman&#39;,&#39;serif&#39;"><div style="line-height:16.5px;background-color:#ffffff;width:414px">
<div style="word-wrap:break-word;word-break:break-all"><span></span><span></span><a href="https://www.ncl.ucar.edu/Document/Functions/WRF_arw/wrf_map_overlays.shtml" style="text-decoration:none!important;color:#000000!important;line-height:100%;font-size:18px;display:block" target="_blank"><span style="margin:0;font-weight:normal;margin-bottom:3px;font-size:18px;line-height:21px;max-height:43px;color:#000000;overflow:hidden!important;display:inline-block">wrf_map_overlays</span></a><div style="font-size:13px;line-height:20px;color:#999999;max-height:81px;font-family:&#39;Georgia&#39;,&#39;Times&#39;,&#39;Times New Roman&#39;,&#39;serif&#39;;overflow:hidden">
NCL WRFUserARW.ncl functions (graphics routines)</div></div></div></td></tr><tr><td colspan="2" style="height:6px;background-color:#ffffff;font-size:0pt;border-collapse:collapse"><div style="min-height:6px;background-color:#ffffff;font-size:6pt">
</div></td></tr><tr><td style="vertical-align:middle;font-family:&#39;Arial&#39;,&#39;Helvetica Neue&#39;,&#39;Helvetica&#39;,&#39;sans-serif&#39;"><div style="font-size:0pt"><a href="https://www.ncl.ucar.edu/Document/Functions/WRF_arw/wrf_map_overlays.shtml" style="color:black;text-decoration:none!important" target="_blank"><span style="display:inline-block;line-height:11px;max-width:314px;min-width:254px;overflow:hidden;max-height:13px;word-break:break-all"><span style="vertical-align:middle;font-size:9px;line-height:11px;color:#999999">View on <span style="font-weight:bold">www.ncl.ucar.edu</span></span></span></a></div>
</td><td style="vertical-align:middle;width:100px;font-family:&#39;Arial&#39;,&#39;Helvetica Neue&#39;,&#39;Helvetica&#39;,&#39;sans-serif&#39;"><div style="max-width:100px;min-width:80px;overflow:hidden;text-align:right;line-height:11px;max-height:13px;font-size:0pt">
<span style="vertical-align:middle;font-size:9px;line-height:11px;color:#999999">Preview by Yahoo</span></div></td></tr><tr><td colspan="2" style="height:9px;background-color:#ffffff;font-size:0pt;border-collapse:collapse">
<div style="min-height:9px;background-color:#ffffff;font-size:9pt"></div></td></tr><tr><td colspan="7" style="height:1px;background-color:#e5e5e5;font-size:1px;border-collapse:collapse"><div style="min-height:1px;background-color:#e5e5e5;font-size:1px;line-height:0px">
 </div></td></tr></tbody></table></div><div> </div></div></div><br>_______________________________________________<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>