In fact WindHiDir and WindAvgDir don't need to be corrected by 22.5. Don't know where it have been seen, it has been introduced from python weather package. No occurence of correcting this value (by 22.5) found in documentation...