Re: map obscures contour labels

From: Adam Phillips <asphilli_at_nyahnyahspammersnyahnyah>
Date: Wed Feb 09 2011 - 14:49:32 MST

Hi Peter,
With regards to whether the DrawOrder resources work with regards to
wrf_map_overlays: Looking at the code, yes, they should.

I'd give this a shot:

set
opts_psl@cnLabelDrawOrder = "PostDraw"
opts_psl@cnLineDrawOrder = "PostDraw"
do not set:
opts_psl@cnFillDrawOrder

alter the order that you are passing in your plots from this:
(/contour_geo,contour_speed, windbarb/)
to this:
(/contour_speed,contour_geo, windbarb/)

wrf_map_overlays overlays the plots in the order that you give it. In
your case, you'd like the color filled plot to be drawn first, the
contours with white labeling second, and the vectors third.

I'm surprised that your map_res resources were not having on effect, in
that the map outlines get covered up. Looking at the code I would've
thought that they would work..

Let the group know if the above doesn't work. (If it doesn't, your query
will likely get forwarded on to wrf-help as they typically deal with
wrf-related NCL issues.)
Good luck,
Adam

On 02/09/2011 01:53 PM, Peter Q. Olsson wrote:
> Hello-
>
> I am having an issue with wrf_map_overlays. I am plotting a shaded contour field, a
> field with contour lines (including the contour labels I am having an issue with), and a
> vector field, along with a map (mostly Alaska). All is well- with one exception- my
> problem is that the contour labels (with white backgrounds) appear UNDER the map. I have
> tried:
>
> opts_psl@cnLineLabelsOn = True
> opts_psl@cnLabelDrawOrder = "PostDraw"
> opts_psl@cnLineDrawOrder = "PostDraw"
> opts_psl@cnFillDrawOrder = "PostDraw"
> opts_psl@cnLineLabelBackgroundColor = "white"
>
> and I get red labels on a white background... with the map over the top.
>
> Along with the above, I have tried:
>
> map_res@mpOutlineDrawOrder = "PreDraw"
> map_res@mpFillDrawOrder = "PreDraw"
> map_res@mpGridAndLimbDrawOrder = "PreDraw" ;; COVER ALL THE BASES
> map_res@mpLabelDrawOrder = "PreDraw"
> map_res@mpPerimDrawOrder = "PreDraw"
>
> with the same results. By my (apparently faulty) understanding, this should draw the
> map FIRST, which should then result in in the complete obscuration of the map, grids,
> etc by the opaque shaded contour field, Of course this is _not_ what I want, but what I
> expect to happen. Instead, I get the map last. None of this PreDraw/PostDraw stuff seems
> to work.
>
> Do these resources not work w/ wrf_map_overlays? And even if they did, if a bunch of
> things are "PostDraw", is there any way to control the order in which things are postdrawn?
>
> Thanx for your consideration,
> PQO
>
>
> ps attached is NCL script.
>
> ___________________________________________________________
> |
> | Dr. Peter Q. Olsson,
> | Alaska State Climatologist, Alaska State Climate Center
> | Chief Scientist, Alaska Experimental Forecast Facility
> | University of Alaska Anchorage
> | 2811 Merrill Field Drive
> | Anchorage, AK 99501
> | voice: (907) 786-7234, fax (907) 786-7237|
>
>
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

-- 
__________________________________________________
Adam Phillips 
asphilli@ucar.edu
National Center for Atmospheric Research   tel: (303) 497-1726
Climate and Global Dynamics Division         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-talk
Received on Wed Feb 9 14:49:38 2011

This archive was generated by hypermail 2.1.8 : Fri Feb 11 2011 - 16:11:42 MST