[ncl-talk] add a location

Mary Haley haley at ucar.edu
Thu Feb 26 10:21:11 MST 2015


I'm not sure what you are trying to do.  You have a call that overlays
contours on a map, and then it looks like you are trying to add markers to
just the contour plot?

Also, you call gsn_polymarker and draw the markers on the "contour" plot,
but then you call "draw(plot)" which is just going to draw the map plot
created by wrf_map_overlays (with no contours, because wrf_map_overlays
removes the contour plot after it is done).


I think what you are trying to do is draw markers on the contour/map plot?

If so, you first need to tell wrf_map_overlays not to remove the contours
or advance the frame, which can be done by setting this resource before you
call it:

pltres at PanelPlot = True

This "fools" wrf_map_overlays into thinking you are going to panel a bunch
of its plots later, and so it leaves them intact.

After you call wrf_map_overlays, add these lines:

pmres = True
pmres at gsMarkerColor = "Black"
pmres at gsMarkerIndex = 16
pmres at gsMarkerSizeF = 0.01

id = gsn_add_polymarker(wks,plot,2.53115,36.8569,pmres)
draw(plot)
 frame(wks)

Note that I'm using gsn_add_polymarker instead of gsn_polymarker.  The
"add" version of this routine actually attaches the markers to the plot, so
that when you draw the plot, the markers will automatically get drawn.

You may need to increase the marker size a bit.

--Mary
On Mon, Feb 23, 2015 at 8:23 AM, Muhammad Omer Mughal <
m.mughal1 at postgrad.curtin.edu.au> wrote:

>  Hi
>
>
>  Kindly see the attached script .I am trying to get the polymarker on the
> location specified in the file .I also want the terrain and map background
> in the plot.Can any one suggest a solution ?
>
>
>
>> Muhammad Omer Mughal
>  MSc BSc Mechanical Engineering
> PhD  Research Scholar
>  Remote Sensing and Satellite Research Group
>  Department of Imaging and Applied Physics
> Curtin University
>
> Curtin University
> Tel | +61 8 9266 7962
> Fax | +61 8 9266 2377
> Mobile | 0470 237 525
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150226/5c96246f/attachment.html 


More information about the ncl-talk mailing list