Changeset 1777 in lmdz_wrf for trunk/tools/diag_tools.py


Ignore:
Timestamp:
Feb 16, 2018, 3:17:02 PM (7 years ago)
Author:
lfita
Message:

Adding:

  • `WRFz': as height above surface unstaggering WRFgeop
  • Fixing zwind computation
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/diag_tools.py

    r1776 r1777  
    911911
    912912
    913 def Forcompute_zwind(ua, va, zsl, uas, vas, hgt, sina, cosa, zval, dimns, dimvns):
     913def Forcompute_zwind(ua, va, z, uas, vas, sina, cosa, zval, dimns, dimvns):
    914914    """ Function to compute the wind at a given height following the power law method
    915915    Forcompute_zwind(ua, va, zsl, uas, vas, hgt, sina, cosa, zval, dimns, dimvns)
    916916      [ua]= x-component of unstaggered 3D wind (assuming [[t],z,y,x]) [ms-1]
    917917      [va]= y-component of unstaggered 3D wind (assuming [[t],z,y,x]) [ms-1]
    918       [zsl]= height above sea level [m]
     918      [z]= height above surface [m]
    919919      [uas]= x-component of unstaggered 10 m wind (assuming [[t],z,y,x]) [ms-1]
    920920      [vas]= y-component of unstaggered 10 m wind (assuming [[t],z,y,x]) [ms-1]
    921       [hgt]= topographical height (assuming [m]
    922921      [sina]= local sine of map rotation [1.]
    923922      [cosa]= local cosine of map rotation [1.]
     
    944943
    945944        pvar1, pvar2= fdin.module_fordiagnostics.compute_zwind4d(ua=ua.transpose(),  \
    946           va=va[:].transpose(), zsl=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)
    949948        var1 = pvar1.transpose()
    950949        var2 = pvar2.transpose()
Note: See TracChangeset for help on using the changeset viewer.