Hello
I´m trying to calclulate Wind Speed from u and v Values which I have in an Attribute Table. Basically the function should calclulate when u and v are simultaneously different from 0
If u and v are simultaneously different from 0 then the function should calculate
Sqr(u**2 + v **2)
In the Code-Block I typed:
Dim z as double
u = [GRID_COD_1]
v = [GRID_CODE]
If (( u = 0) And (v = 0)) Then
z = 0
elseIf (( u <> 0) and (v <> 0)) Then
z= Sqr(( u **2) + (v **2))
EndIf
and after that
z=speed
but it diosnt seem to work. What do I do wrong?
Greets,
Christian