Re: wmbarbmap and clipping

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Wed Dec 22 2010 - 16:27:37 MST

Hi Mike,

I believe there is no clipping available in wmbarbmap.

If you want clipping, *and* your wind barb data is available on a 2D grid,
then instead of using Ngl.wmbarbmap, you could use Ngl.vector_map
with a "vcGlphyStyle" equal to "WindBarb."

Please see the attached example script.

--Mary

On Dec 21, 2010, at 11:00 AM, Mike Bettenhausen wrote:

> I am using wmbarbmap to plot surface wind data on maps. It works well
> except that the wind barbs are not clipped at the edges of the plot.
> For example, the plot obtained with the following change to the
> wmbarbmap.py example displays barbs below the bottom axis of the plot.
>
> $ diff PyNGL-1.3.1/examples/wmbarbmap.py wmbarbmap.py
> 91c91
> < Ngl.wmbarbmap(wks, lat, lon, u, v) # Plot barbs.
> ---
>> Ngl.wmbarbmap(wks, lat - 10, lon, u, v) # Plot barbs.
>
> I'd appreciate any suggestions for a method to clip the barbs at the
> edges of the plot.
>
> ****************************
> Mike Bettenhausen
> Remote Sensing Division, Code 7223
> Naval Research Laboratory
> Washington, DC 20375
>
> _______________________________________________
> pyngl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/pyngl-talk

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

Received on Wed Dec 22 16:27:41 2010

This archive was generated by hypermail 2.1.8 : Wed Jan 05 2011 - 09:09:56 MST