dankelley/oce — Issue #192: as.windrose bug
Author: adeckmyn
Created: 2012-02-06 10:59:07+00:00
State: open

the function as.windrose has a bug in the use of dtheta: setting dtheta=10 will create 36 intervals, but the first and last overlap: dtheta is in fact too large in the plot.
Solution:
in as.windrose, the line
theta <- seq(-pi, pi, length.out = nt)
should be corrected to
theta <- seq(-pi+dt2, pi-dt2, length.out = nt)

(or possibly theta <- seq(-pi, pi, length.out = nt+1) )