# how to calculate wind speed and direction using flight data, at some latitude and longitude? [duplicate]

I have a data file which has the aircraft state details with latitude and longitude recorded for certain radius.
Now, I'm trying to calculate wind direction and wind speed.

Example:
At lat=41 and long -75 I have the aircraft state details as (flight:AZ9867, nav_heading, mag_heading, track, Ground speed, and TAS)

How can we calculate wind speed and direction?
Do we have to use vector calculation?

• "Payload" is not the word you want here. But yes it's a vector calculation. It's not clear whether you are asking about what each term represents, or how to do the vector calculation, or both. Can you clarify that? (But some of those questions may have been asked already here.) (Btw, the meaning of "nav heading" is unclear to me.) Feb 18, 2023 at 18:21
• I'd say TAS-ground speed Feb 18, 2023 at 18:24
• @sophit That would give you the wind component parallel to the track. By comparing the heading to the track (and considering TAS), you could probably compute the the wind component perpendicular to the track, and then you'd sum the vectors. Fair bit of math involved, and depending on the accuracy/precision of the data, the accuracy of the result might be limited. This looks almost more like a physics/programming question than aviation, but the community can weigh in on that.
– Ralph J
Feb 18, 2023 at 19:42
• @RalphJ: well unless you have a test probe installed on the nose of the aircraft, I don't think it's possible to measure any wind direction other than the one from the pitot tube (?) Feb 18, 2023 at 20:57
• Possible existing answers include-- aviation.stackexchange.com/a/35431/34686, aviation.stackexchange.com/a/23435/34686 (note that point #7 refers to a vector subtraction), aviation.stackexchange.com/a/81766/34686, aviation.stackexchange.com/a/33688/34686 Feb 18, 2023 at 22:06