windspeed and direction helper functions for base plotting

stickplot.dat.arrows(DateTime, WSPD, WD, data, ...)

Arguments

DateTime

Date and time field as.POSIXct

WSPD

Wind speed in m/s

WD

Wind direction in degrees

data

data.frame()

Value

draws line segments in the direct of wind with length corresponding to speed.

Examples

if (FALSE) {
# wx.dat2005=read.table("https://www.ndbc.noaa.gov/view_text_file.php?filename=lonf1h2005.txt.gz&dir=data/historical/stdmet/",sep="",header=T,na.strings=c("99","999","9999.0"))

# plot(WSPD~DateTime.EST,wx.dat2005.tmp,type="n",ylab="Wind Speed (m/s)",ylim=c(-20,30))
# stickplot.dat.arrows(DateTime.EST,WSPD,WD,wx.dat2005.tmp,col="green",lty=1,lwd=1)
}