Added a winddir_average function.