Changeset 1777 in lmdz_wrf for trunk/tools/diag_tools.py
- Timestamp:
- Feb 16, 2018, 3:17:02 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/diag_tools.py
r1776 r1777 911 911 912 912 913 def Forcompute_zwind(ua, va, z sl, uas, vas, hgt, sina, cosa, zval, dimns, dimvns):913 def Forcompute_zwind(ua, va, z, uas, vas, sina, cosa, zval, dimns, dimvns): 914 914 """ Function to compute the wind at a given height following the power law method 915 915 Forcompute_zwind(ua, va, zsl, uas, vas, hgt, sina, cosa, zval, dimns, dimvns) 916 916 [ua]= x-component of unstaggered 3D wind (assuming [[t],z,y,x]) [ms-1] 917 917 [va]= y-component of unstaggered 3D wind (assuming [[t],z,y,x]) [ms-1] 918 [z sl]= height above sea level[m]918 [z]= height above surface [m] 919 919 [uas]= x-component of unstaggered 10 m wind (assuming [[t],z,y,x]) [ms-1] 920 920 [vas]= y-component of unstaggered 10 m wind (assuming [[t],z,y,x]) [ms-1] 921 [hgt]= topographical height (assuming [m]922 921 [sina]= local sine of map rotation [1.] 923 922 [cosa]= local cosine of map rotation [1.] … … 944 943 945 944 pvar1, pvar2= fdin.module_fordiagnostics.compute_zwind4d(ua=ua.transpose(), \ 946 va=va[:].transpose(), z sl=zsl[:].transpose(), uas=uas.transpose(),\947 vas=vas.transpose(), hgt=hgt.transpose(), sina=sina.transpose(),\948 cosa=cosa.transpose(),zextrap=zval, d1=dx, d2=dy, d3=dz, d4=dt)945 va=va[:].transpose(), z=z[:].transpose(), uas=uas.transpose(), \ 946 vas=vas.transpose(), sina=sina.transpose(), cosa=cosa.transpose(), \ 947 zextrap=zval, d1=dx, d2=dy, d3=dz, d4=dt) 949 948 var1 = pvar1.transpose() 950 949 var2 = pvar2.transpose()
Note: See TracChangeset
for help on using the changeset viewer.