MATH - Wind

MATH - Wind

Negativ U vektor, giver vind fra øst mod vest. W ← E
Positiv U vektor, giver vind fra vest mod øst. W → E

Negativ V vektor, giver vind fra nord mod syd. N → S
Positiv V vektor, giver vind fra syd mod nord. N ← S

Udregning af vind retning Udregning af vind styrke
$directionNumber = ($uComponent < 0)
? rad2deg(atan2($uComponent,$vComponent))+360
: rad2deg(atan2($uComponent,$vComponent));
SP = pow(pow(U, 2)+pow(V, 2), 0.5)
$directionNumber = (1 < 0)
? rad2deg(atan2(1,1))+360
: rad2deg(atan2(1,1));
SP = pow(pow(1, 2)+pow(1, 2), 0.5)

U vektor V vektor
1 1
Wind Speed Wind Direction Wind Direction
1.41 m/s 45° NE