Hello,
Usually we use the NCL-script to calculate the wind speed in the x-direction
ua=wrf_user_getvar(f1,ua,-1)
In the Registry.EM_COMMON file, there is a variable called U_PHY representing the wind speed of the grid point in the x-direction.
state real u_phy ikj misc 1 - rh "U_PHY" "x-wind component at mass point" "m s-1"
The calculation process of U_PHY is in the model file./dyn_em/module_big_step_utilities_em.F
u_phy(i,k,j) = 0.5*(u(i,k,j)+u(i+1,k,j))
Consistent with the calculation process in NCL-script
However, when I output this variable and compare it with the calculation result of the NCL-script, I found that the value is not the same.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
f1=addfile("wrfout_d01_2019-01-10_00:00:00","r")
ua=wrf_user_getvar(f1,"ua",-1)
uu=f1->U_PHY
print(ua,0,250,50)+" "+uu,0,250,50))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;result
[Wen@master 23:52 em_real]$ ncl ll.ncl
(0) 0.832777 0
(1) 0.948471 0.945791
(2) 0.520029 0.520971
(3) 0.549281 0.548501
(4) 0.830116 0.830002
(5) 0.946738 0.94498
(6) 1.21796 1.21623
Can you tell me why the values are not the same?
Thank you very much
Usually we use the NCL-script to calculate the wind speed in the x-direction
ua=wrf_user_getvar(f1,ua,-1)
In the Registry.EM_COMMON file, there is a variable called U_PHY representing the wind speed of the grid point in the x-direction.
state real u_phy ikj misc 1 - rh "U_PHY" "x-wind component at mass point" "m s-1"
The calculation process of U_PHY is in the model file./dyn_em/module_big_step_utilities_em.F
u_phy(i,k,j) = 0.5*(u(i,k,j)+u(i+1,k,j))
Consistent with the calculation process in NCL-script
However, when I output this variable and compare it with the calculation result of the NCL-script, I found that the value is not the same.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
f1=addfile("wrfout_d01_2019-01-10_00:00:00","r")
ua=wrf_user_getvar(f1,"ua",-1)
uu=f1->U_PHY
print(ua,0,250,50)+" "+uu,0,250,50))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;result
[Wen@master 23:52 em_real]$ ncl ll.ncl
(0) 0.832777 0
(1) 0.948471 0.945791
(2) 0.520029 0.520971
(3) 0.549281 0.548501
(4) 0.830116 0.830002
(5) 0.946738 0.94498
(6) 1.21796 1.21623
Can you tell me why the values are not the same?
Thank you very much