Re: map error

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Wed, 24 Jun 2009 14:57:55 -0600

Michael,

I think part of the problem is that the names being used are wrong.

To draw the counties of Wisconsin, you need to list them out.

I don't understand, though, why the map resource documentation doesn't
include a list of the county names. Maybe I'm missing something.

Try the attached script and let me know if this helps you get started.
I'm just drawing a map, but you should be able to apply these same
resources
to a contour name.

To get the names of the Wisconsin counties, see the code after the
plot call.
I grepped for "Wisconsin" in the output.

ncl wisc.ncl | grep Wisconsin

There's a better way of doing this using string functions, but I'm in
a bit of a crunch right now.

--Mary

On Jun 24, 2009, at 2:07 PM, 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

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk

Received on Wed Jun 24 2009 - 14:57:55 MDT

This archive was generated by hypermail 2.2.0 : Thu Jun 25 2009 - 06:30:15 MDT