I have two raster layers representing the U and V components of a vector wind. I could generate the magnitude raster by applying (u*u+v*v)
in Map Algebra in ArcGIS.
Now I need to generate the direction raster with the following function:
if(u > 0 && v > 0,( atan(u/v) + 180),if(u < 0 && v < 0,(atan(u/v) + 0),if(u > 0 && v < 0,( atan(u/v) + 360), if(u < 0 && v > 0,( atan(u/v)+270)))))
but I don't know how to apply it in ArcGIS. Any help please?
No comments:
Post a Comment