Re: [Matplotlib-users] plot arrows for wind direction (degrees)

2011-10-13 Thread questions anon
Thanks, Ben, that makes sense although I think the angles I have can be considered the direction 'to' and I want direction 'from' so adding a negative makes them come from the direction I need. I should add I don't really know what flip does so will ignore that. thanks for the responses. On Fri

Re: [Matplotlib-users] plot arrows for wind direction (degrees)

2011-10-13 Thread Eric Firing
On 10/13/2011 12:22 PM, Benjamin Root wrote: > > > On Thursday, October 13, 2011, questions anon > wrote: > > Another quick question, > > I noticed that the wind direction appeared back-to-front so I have > added a negative to my equation as I am in the southern

Re: [Matplotlib-users] plot arrows for wind direction (degrees)

2011-10-13 Thread Benjamin Root
On Thursday, October 13, 2011, questions anon wrote: > Another quick question, > I noticed that the wind direction appeared back-to-front so I have added a negative to my equation as I am in the southern hemisphere. It now looks correct but I wanted to check if this is the right way to do this? I

Re: [Matplotlib-users] plot arrows for wind direction (degrees)

2011-10-13 Thread questions anon
Another quick question, I noticed that the wind direction appeared back-to-front so I have added a negative to my equation as I am in the southern hemisphere. It now looks correct but I wanted to check if this is the right way to do this? I saw something called 'flip' for barb but nothing for quiv

Re: [Matplotlib-users] plot arrows for wind direction (degrees)

2011-10-04 Thread questions anon
thank you! of course! On Wed, Oct 5, 2011 at 3:08 PM, Eric Firing wrote: > On 10/04/2011 05:40 PM, questions anon wrote: > > Excellent, thank you. That works for both quiver and barb. > > In regards to the shape that has to do with the netcdf file, wind > > direction variable also has lat and lo

Re: [Matplotlib-users] plot arrows for wind direction (degrees)

2011-10-04 Thread Eric Firing
On 10/04/2011 05:40 PM, questions anon wrote: > Excellent, thank you. That works for both quiver and barb. > In regards to the shape that has to do with the netcdf file, wind > direction variable also has lat and lon. I ended up needing to slice so > I could skip a few points otherwise there was to

Re: [Matplotlib-users] plot arrows for wind direction (degrees)

2011-10-04 Thread questions anon
Excellent, thank you. That works for both quiver and barb. In regards to the shape that has to do with the netcdf file, wind direction variable also has lat and lon. I ended up needing to slice so I could skip a few points otherwise there was too many arrows on the map. Below is the code that worke

Re: [Matplotlib-users] plot arrows for wind direction (degrees)

2011-10-04 Thread Ethan Gutmann
Anon, I don't know the quiver routine, but u and v are usually vectors for the wind speed in the east-west and north south directions. As such they should not be equal to lat and lon (*10), as you are doing, but rather should be windspeed * sin(direction) and windspeed*cos(direction). If you

Re: [Matplotlib-users] plot arrows for wind direction (degrees)

2011-10-04 Thread questions anon
Thanks for responding. I believe quiver is more appropriate because I am only using wind direction (at this stage) and this results in arrows. I have had a look at the demos and still do not understand how to plot my degrees in arrows. How do I define which angle is north, south, west, east, etc? A

Re: [Matplotlib-users] plot arrows for wind direction (degrees)

2011-10-03 Thread Eric Firing
On 10/03/2011 03:00 PM, Benjamin Root wrote: > On Mon, Oct 3, 2011 at 6:51 PM, questions anon > wrote: > > Hi All, > Is there a simple way to plot a directional arrow to represent a degree? > I have a netcdf file containing wind direction as degrees and

Re: [Matplotlib-users] plot arrows for wind direction (degrees)

2011-10-03 Thread Benjamin Root
On Mon, Oct 3, 2011 at 6:51 PM, questions anon wrote: > Hi All, > Is there a simple way to plot a directional arrow to represent a degree? > I have a netcdf file containing wind direction as degrees and I would like > to make a plot with all little arrows representing the wind direction. > Below i