Changeset 1761 in lmdz_wrf
- Timestamp:
- Jan 19, 2018, 11:30:34 AM (7 years ago)
- Location:
- trunk/tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/diagnostics.py
r1759 r1761 66 66 parser.add_option("-f", "--netCDF_file", dest="ncfile", help="file to use", metavar="FILE") 67 67 parser.add_option("-d", "--dimensions", dest="dimns", 68 help="[dimtn]@[dtvn],[dimzn]@[dzvn],[...,[dimxn]@[dxvn]], ',' list with the couples [dimDn]@[dDvn], [dimDn], name of the dimension D and name of the variable [dDvn] with the values of the dimension ('WRFtime', for WRF time copmutation) " + comboinf,68 help="[dimtn]@[dtvn],[dimzn]@[dzvn],[...,[dimxn]@[dxvn]], ',' list with the couples [dimDn]@[dDvn], [dimDn], name of the dimension D and name of the variable [dDvn] with the values of the dimension ('WRFtime', for WRF time copmutation). NOTE: same order as in file!!!!" + comboinf, 69 69 metavar="LABELS") 70 70 parser.add_option("-v", "--variables", dest="varns", … … 698 698 dz = WRFgeop.shape[1] 699 699 # de-staggering 700 var3 = 0.5*(WRFgeop[:,0:dz-1,:,:]+WRFgeop[:,1:dz,:,:]) *9.81700 var3 = 0.5*(WRFgeop[:,0:dz-1,:,:]+WRFgeop[:,1:dz,:,:]) 701 701 var4 = ncobj.variables[depvars[4]][0,:,:] 702 702 -
trunk/tools/module_ForDiagnostics.f90
r1759 r1761 862 862 END FUNCTION TLCL 863 863 864 FUNCTION var_cape_afwa1D(nz, tk, rhv, p, hgt v, sfc, cape, cin, zlfc, plfc, lidx, parcel) RESULT (ostat)864 FUNCTION var_cape_afwa1D(nz, tk, rhv, p, hgt, sfc, cape, cin, zlfc, plfc, lidx, parcel) RESULT (ostat) 865 865 ! Function to compute cape on a 1D column following implementation in phys/module_diag_afwa.F 866 866 … … 868 868 869 869 INTEGER, INTENT(in) :: nz, sfc 870 REAL(r_k), DIMENSION(nz), INTENT(in) :: tk, rhv, p, hgt v870 REAL(r_k), DIMENSION(nz), INTENT(in) :: tk, rhv, p, hgt 871 871 REAL(r_k), INTENT(out) :: cape, cin, zlfc, plfc, lidx 872 872 INTEGER :: ostat … … 876 876 !~ Derived profile variables 877 877 ! ------------------------- 878 REAL(r_k), DIMENSION(nz) :: rh, hgt,ws, w, dTvK, buoy878 REAL(r_k), DIMENSION(nz) :: rh, ws, w, dTvK, buoy 879 879 REAL(r_k) :: tlclK, plcl, nbuoy, pbuoy 880 880 … … 915 915 ! rh: Relative Humidity profile [%] 916 916 ! p: Pressure profile [Pa] 917 ! hgtv: Height profile [m] 918 ! hgt: Height profile [gpm] 917 ! hgt: Geopotential height profile [gpm] 919 918 ! cape: CAPE [Jkg-1] 920 919 ! cin: CIN [Jkg-1] … … 982 981 ! -------------------- 983 982 rh = rhv*100. 984 hgt = hgtv*g985 983 ostat = 0 986 984 CAPE = zeroRK
Note: See TracChangeset
for help on using the changeset viewer.