here some source files have made, just add the function name after wvain().
add these to station udt.
windspeedmph as float
windspeedmps as float
windspeedkphmax as float
windspeedmphmax as float
windspeedmpsmax as float
windspeedkph as float
windspeedmph as float
and this corrects the images so that the right is showing for the direction pointing.
if here.winddirection = 0.0
ink rgb(0,255,0),0
center text tx,ty,"North N 0(360)"
paste image 104,object screen x(3)-(155/2) ,object screen y(3)-(155/2),1
endif
`if wd>=22.5-gap and wd<=22.5+gap
if here.winddirection = 1.0
ink rgb(0,255,0),0
center text tx,ty,"North-northeast NNE 22.5"
paste image 105,object screen x(3)-(155/2) ,object screen y(3)-(155/2),1
endif
`if wd>=45-gap and wd<=45+gap
if here.winddirection = 2.0
ink rgb(0,255,0),0
center text tx,ty,"Northeast NE 45"
paste image 106,object screen x(3)-(155/2) ,object screen y(3)-(155/2),1
endif
`if wd>=67.5-gap and wd<=67.5+gap
if here.winddirection = 3.0
ink rgb(0,255,0),0
center text tx,ty,"East-northeast ENE 67.5"
paste image 107,object screen x(3)-(155/2) ,object screen y(3)-(155/2),1
endif
` if wd>=90-gap and wd<=90+gap
if here.winddirection = 4.0
ink rgb(0,255,0),0
center text tx,ty,"East E 90"
paste image 108,object screen x(3)-(155/2) ,object screen y(3)-(155/2),1
endif
` if wd>=112.5-gap and wd<=112.5+gap
if here.winddirection = 5.0
ink rgb(0,255,0),0
center text tx,ty,"East-southeast ESE 112.5"
paste image 109,object screen x(3)-(155/2) ,object screen y(3)-(155/2),1
endif
` if wd>=135-gap and wd<=135+gap
if here.winddirection = 6.0
ink rgb(0,255,0),0
center text tx,ty,"Southeast SE 135"
paste image 110,object screen x(3)-(155/2) ,object screen y(3)-(155/2),1
endif
` if wd>=157.5-gap and wd<=157.5+gap
if here.winddirection = 7.0
ink rgb(0,255,0),0
center text tx,ty,"South-southeast SSE 157.5"
paste image 111,object screen x(3)-(155/2) ,object screen y(3)-(155/2),1
endif
` if wd>=180-gap and wd<=180+gap
if here.winddirection = 8.0
ink rgb(0,255,0),0
center text tx,ty,"South S 180"
paste image 112,object screen x(3)-(155/2) ,object screen y(3)-(155/2),1
endif
` if wd>=202.5-gap and wd<=202.5+gap
if here.winddirection = 9.0
ink rgb(0,255,0),0
center text tx,ty,"South-southwest SSW 202.5"
paste image 113,object screen x(3)-(155/2) ,object screen y(3)-(155/2),1
endif
`if wd>=225-gap and wd<=225+gap
if here.winddirection = 10.0
ink rgb(0,255,0),0
center text tx,ty,"Southwest SW 225"
paste image 114,object screen x(3)-(155/2) ,object screen y(3)-(155/2),1
endif
` if wd>=247.5-gap and wd<=247.5+gap
if here.winddirection = 11.0
ink rgb(0,255,0),0
center text tx,ty,"West-southwest WSW 247.5"
paste image 115,object screen x(3)-(155/2) ,object screen y(3)-(155/2),1
endif
` if wd>=270-gap and wd<=270+gap
if here.winddirection = 12.0
ink rgb(0,255,0),0
center text tx,ty,"West W 270"
paste image 116,object screen x(3)-(155/2) ,object screen y(3)-(155/2),1
endif
` if wd>=292.5-gap and wd<=292.5+gap
if here.winddirection = 13.0
ink rgb(0,255,0),0
center text tx,ty,"West-northwest WNW 292.5"
paste image 117,object screen x(3)-(155/2) ,object screen y(3)-(155/2),1
endif
`if wd>=315-gap and wd<=315+gap
if here.winddirection = 14.0
ink rgb(0,255,0),0
center text tx,ty,"Northwest NW 315"
paste image 118,object screen x(3)-(155/2) ,object screen y(3)-(155/2),1
endif
` if wd>=337.5-gap and wd<=337.5+gap
if here.winddirection = 15.0
ink rgb(0,255,0),0
center text tx,ty,"North-northwest NNW 337.5"
paste image 119,object screen x(3)-(155/2) ,object screen y(3)-(155/2),1
endif
` if wd>=360-gap and wd<=360
if here.winddirection = 16.0
ink rgb(0,255,0),0
center text tx,ty,"North N 0(360)"
paste image 104,object screen x(3)-(155/2) ,object screen y(3)-(155/2),1
endif
Dark Physics makes any hot drink go cold.