Hi Michael,
I've been playing around with a version of your script that only draws a 
map, and I got it so that the Wisconsin counties are drawn, and 
everything else is masked via a mpFillDrawOrder "PostDraw" call. I'm not 
sure if this is exactly what you are looking for, but here it is:
load "$NCARG_ROOT/lib/ncarg/nclex/gsun/gsn_code.ncl"
load "$NCARG_ROOT/lib/ncarg/nclex/gsun/gsn_csm.ncl"
begin
   wks = gsn_open_wks("ps",get_script_prefix_name())
   gsn_define_colormap(wks,"rainbow")
   res                  = True
   res_at_mpMinLatF  = 40.
   res_at_mpMaxLatF  = 50.
   res_at_mpMinLonF = 266
   res_at_mpMaxLonF = 276
   res_at_mpOutlineBoundarySets = "GeophysicalAndUSStates"
   res_at_mpGeophysicalLineThicknessF = 2.5
   res_at_mpDataBaseVersion     = "Ncarg4_1"
   res_at_mpDataSetName         = "Earth..2"
   res_at_mpOutlineOn           = True
   res_at_mpOutlineSpecifiers = (/"Land","Wisconsin:counties"/)
   res_at_mpMaskOutlineSpecifiers  = (/"water"/)
        
   res_at_mpFillAreaSpecifiers = (/"Land","Wisconsin:counties","Water"/)
   res_at_mpFillDrawOrder       = "PostDraw"
   res_at_mpSpecifiedFillColors = (/"white","-1","white"/)
   res_at_mpUSStateLineThicknessF=2.5
   plot = gsn_csm_map_ce(wks,res)
end
Hope that helps..
Adam
Michael Notaro wrote:
> Hello.  I'm trying to plot data over Wisconsin only, with the other  
> states left empty,
> and the map including the WI counties.  But I get this error, when  
> using Ncarg4_1
> and Earth.2.  Any idea how to get around this?
> 
> Thanks, Michael
> 
> 
> Error message:
> warning:MapV41DHUpdateDrawList: invalid boundary specification  
> string: "allusstates"
> warning:MapV41DHUpdateDrawList: invalid boundary specification  
> string: "us-wisconsin"
> 
> 
> 
> 
>    res                  = True
>    res_at_gsnDraw         = False
>    res_at_gsnFrame        = False
>    res_at_cnFillOn         = True
>    res_at_cnLinesOn        =  False
>    res_at_cnLevelSelectionMode = "ExplicitLevels"
>    res_at_cnLevels             = (/-1.05,-.7,-.35,0.,.35,.7,1.05/)
>    res_at_cnFillColors=(/44,78,100,130,176,188,203,237/)
>    res_at_tiMainFontHeightF =  0.035
>    res_at_tmYROn = False
>    res_at_tmXTOn = False
>    res_at_pmLabelBarDisplayMode = True
>    res_at_lbOrientation        = "vertical"
>    res_at_mpMinLatF            = min(lat)
>    res_at_mpMaxLatF            = max(lat)
>    res_at_mpMinLonF = min(lon)
>    res_at_mpMaxLonF = max(lon)
>    res_at_mpCenterLonF = avg(lon)
>    res_at_mpOutlineBoundarySets = "AllBoundaries"
>    res_at_mpGeophysicalLineThicknessF = 2.5
>    res_at_gsnAddCyclic=False
>    res_at_cnFillDrawOrder      = "PreDraw"
>    res_at_mpInlandWaterFillColor = 238
>    res_at_mpLandFillColor = -1
>    res_at_mpDataBaseVersion     = "Ncarg4_1"
>    res_at_mpDataSetName         = "Earth..2"
> 
>    mask_areas                = "US-" + (/"Wisconsin"/)
>    res_at_mpFillDrawOrder       = "PostDraw"
>    res_at_mpFillAreaSpecifiers  = (/"AllUSStates","Land","Water"/)
>    res_at_mpSpecifiedFillColors = (/"white","white","white"/)
>    res_at_mpMaskAreaSpecifiers  = mask_areas
> 
>    res_at_mpUSStateLineThicknessF=2.5
>    res_at_tiMainString         =  "Ann Avg T(C) Obs 1950-2007"
>    plot(0) = gsn_csm_contour_map_ce(wks,trendavg, res)
> 
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
-- -------------------------------------------------------------- Adam Phillips asphilli_at_ucar.edu National Center for Atmospheric Research tel: (303) 497-1726 ESSL/CGD/CAS fax: (303) 497-1333 P.O. Box 3000 Boulder, CO 80307-3000 http://www.cgd.ucar.edu/cas/asphilli _______________________________________________ ncl-talk mailing list List instructions, subscriber options, unsubscribe: http://mailman.ucar.edu/mailman/listinfo/ncl-talkReceived on Wed Jun 24 2009 - 16:45:55 MDT
This archive was generated by hypermail 2.2.0 : Thu Jun 25 2009 - 06:30:15 MDT