Wind Calculations
Try this:
Wind component along airplane heading:
Vground * cos(crab angle) - Vtas
Wind component across airplane heading:
Vground * sin(crab angle)
Total Wind velocity:
Take the square root of the sum of the squares of the two above
Difference between airplane heading and wind angle:
Take the inverse tangent of the cross component divided by the along airplane heading component. (Always sanity check to make sure it makes sense by drawing your triangle picture.)
Cheers