<div dir="ltr"><div class="gmail_default" style="font-size:small">I didn&#39;t look in detail at why your script wasn&#39;t working, since I couldn&#39;t actually run it.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Instead, I took the &quot;mask_8.ncl&quot; example and slightly modified it.  Hopefully you can figure out how to incorporate this into your code.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">See attached.</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><div class="gmail_quote">On Sun, Mar 27, 2016 at 6:41 PM, Adv <span dir="ltr">&lt;<a href="mailto:advita6@gmail.com" target="_blank">advita6@gmail.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 dir="ltr"><div><div>Hi ,<br></div>I have been trying to mask specific states. I didn&#39;t get any error, though no specified region is masked out. Could someone help me to fix this?<br><br></div>Thank you<br><div>;**************************************************<br>; plot parameters<br>;**************************************************<br><br>wks = gsn_open_wks(&quot;x11&quot;,&quot;test&quot;)<br>  gsn_define_colormap(wks,&quot;BlWhRe&quot;)       ; choose colormap<br>;  gsn_define_colormap(wks,&quot;testcmap&quot;)       ; choose colormap<br>  plot = new(neof,graphic)                ; create graphic array<br>                                          ; only needed if paneling<br>; EOF patterns<br><br>  res                      = True<br>  res@gsnDraw              = False        ; don&#39;t draw yet<br>  res@gsnFrame             = False        ; don&#39;t advance frame yet<br><br>;---This resource not needed in V6.1.0<br>  res@gsnSpreadColors      = True         ; spread out color table<br>res@cnLevelSelectionMode = &quot;ManualLevels&quot;  ; set manual contour levels<br>  res@cnMinLevelValF       = -2       ; set min contour level<br>  res@cnMaxLevelValF       = 2      ; set max contour level<br>  res@cnLevelSpacingF      = 0.25      ; set contour spacing<br><br><br>  res@gsnAddCyclic         = False        ; plotted dataa are not cyclic<br><br>  res@mpFillOn             = False        ; turn off map fill<br>res@mpMinLatF            = prc&amp;lat(0)+3         ; zoom in on map<br>  res@mpMaxLatF            = prc&amp;lat(nlat-1)<br>  res@mpMinLonF            = prc&amp;lon(0)<br>  res@mpMaxLonF            = prc&amp;lon(mlon-1)<br>;res@mpCenterLonF         = Center<br><br> res@cnFillOn             = True         ; turn on color fill<br>  res@cnLinesOn            = False        ; True is default<br>res@cnLineLabelsOn       = False<br>  res@lbLabelBarOn         = False        ; turn off individual lb&#39;s<br>res@mpDataBaseVersion           = &quot;Ncarg4_1&quot;<br>  res@mpDataSetName               = &quot;Earth..4&quot;   ; For counties<br>res@mpAreaMaskingOn = True<br>res@mpMaskAreaSpecifiers  =(/&quot;North Dakota&quot;,&quot;Montana&quot; /)<br>;res@mpSpecifiedFillColors       = (/&quot;white&quot;,&quot;transparent&quot;/)<br><br>;  res@mpInlandWaterFillColor      = &quot;white&quot;<br>  res@mpLandFillColor             = &quot;transparent&quot;<br><br>  res@mpOutlineOn                 = True<br>res@mpGeophysicalLineThicknessF = 3.0<br>res@mpGeophysicalLineColor = &quot;Black&quot;; (/22/)<br>res@mpOutlineBoundarySets = &quot;GeophysicalAndUSStates&quot; ; add state boundaries<br>res@mpNationalLineColor  = res@mpGeophysicalLineColor<br>res@mpUSStateLineThicknessF = 3.0<br>res@mpUSStateLineColor  = res@mpGeophysicalLineColor<br><br><br><br></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" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>