during the ground roll on takeoff how will this be done?
It can't.
In order to calculate the wind it needs to know the ground speed vector, aircraft heading and TAS.
During take off, the difference between ground speed and TAS is displayed as a head wind all of which appears to be on the nose. Once airborne and the aircraft senses the drift then the wind speed vector will be more truthful.