Just replace those "Wind Direction Cosines" to suit your purpose.
_________________________
Dave Diehl