Hi,
I am interested in calculating Wind Speed and Wind Direction (in meteorological convention where 0 is North and 180 is South) using ERA-5 data.
ERA-5 provides the following guidance to do this: https://confluence.ecmwf.int/pages/v...geId=133262398
I am not sure if I am doing this correctly. Below is a code snippet which uses u10 and v10 data from ERA5 to calculate wind speed and direction.
Please let me know if this is correct.
clear
input v10 u10
-2.923078546 -3.278594708
1.417036452 0.934098844
-2.539161268 0.633437599
-0.703379826 2.508275217
end
gen winddirection = mod(180+180/c(pi)*atan2(v10,u10),360)
gen windspeed = sqrt(v10^2 + u10^2)
Thanks
I am interested in calculating Wind Speed and Wind Direction (in meteorological convention where 0 is North and 180 is South) using ERA-5 data.
ERA-5 provides the following guidance to do this: https://confluence.ecmwf.int/pages/v...geId=133262398
I am not sure if I am doing this correctly. Below is a code snippet which uses u10 and v10 data from ERA5 to calculate wind speed and direction.
Please let me know if this is correct.
clear
input v10 u10
-2.923078546 -3.278594708
1.417036452 0.934098844
-2.539161268 0.633437599
-0.703379826 2.508275217
end
gen winddirection = mod(180+180/c(pi)*atan2(v10,u10),360)
gen windspeed = sqrt(v10^2 + u10^2)
Thanks