<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>