Return to Ferret FAQ


Vector Size


Question:

Can I put an upper limit on vector sizes in Ferret?

Example:

> In order to see what is going on in the regions of low
> wind speed I have to have vector lengths that are fairly
> small. This causes me to get very large vectors elsewhere.
[Output Graphic]

Solution:

There are lots of ways to skin that particular cat.

Here's one example which generates the figure above and then fixes it by plotting large wind speeds as smaller vectors in bold. (It looks better on a larger scale plot.)

set data monthly_navy_winds
set region/x=100w:20w/y=80s:20s
vector/aspect/l=1/len=5/pen=1/nolab uwnd,vwnd
go fland 20
vector/aspect/l=1/len=5/pen=1/over/nolab uwnd,vwnd
!
! Now the fix
!
set win/clear
let wspd = (uwnd^2+vwnd^2)^0.5
let hi_threshhold = IF wspd gt 5 then 1
let lo_threshhold = IF wspd le 5 then 1
vector/aspect/l=1/len=5/pen=1/nolab lo_threshhold*uwnd,vwnd
go fland 20
vector/aspect/l=1/len=5/pen=1/over/nolab lo_threshhold*uwnd,vwnd
vector/aspect/l=1/len=20/pen=13/overlay/nolab hi_threshhold*uwnd,vwnd
[Output Graphic]


Last modified: Jul 17, 1997