Changeset 203 for trunk/src/cor30a.pro


Ignore:
Timestamp:
02/11/14 18:41:24 (10 years ago)
Author:
pinsard
Message:

fix thanks to coding rules

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/cor30a.pro

    r181 r203  
    4444; ======== 
    4545; 
    46 ; :: 
     46; .. parsed-literal:: 
    4747; 
    4848;                  u  us  ts  ta   qs   qa   Qsw IRd   r  pbl  Ps   zu   zt  zq lat 
     
    5050;    x=cor30a(5.5,0,28.7,27.2,24.2,18.5,141.,419.,0.,600.,1010.,15.,15.,15.,0.,1,1,5.,1.) 
    5151; 
    52 ; Result with these sample values with Matlab code:: 
     52; Result with these sample values with Matlab code: 
     53; 
     54; .. parsed-literal:: 
    5355; 
    5456;      8.64830      101.640    0.0352910  2.17780e-05  0.000115000  0.000115000 
     
    5759;  0.000941350   0.00107910   0.00107910     0.780060 
    5860; 
    59 ; Result obtained with this idl routine:: 
    60 ; 
     61; Result obtained with this idl routine: 
     62; 
     63; .. parsed-literal:: 
     64 
    6165;      8.64829      101.640    0.0352913  2.17780e-05  0.000115000  0.000115000 
    6266;     -29.5802     0.175432   -0.0423667 -0.000205610     0.250948  0.000351304 
     
    223227  hlb=-rhoa*LLe*usr*qsr 
    224228  qout=Rnl+hsb+hlb 
    225   dels=Rns*(.065+11*tkt-6.6e-5/tkt*(1-exp(-tkt/8.0e-4)))        ; Eq.16 Shortwave 
     229  dels=Rns*(.065+11*tkt-6.6e-5/tkt*(1-exp(-tkt/8.0e-4)))      ; Eq.16 Shortwave 
    226230  qcol=qout-dels 
    227   alq=Al*qcol+be*hlb*cpw/LLe                                    ; Eq. 7 Buoy flux water 
     231  alq=Al*qcol+be*hlb*cpw/LLe                     ; Eq. 7 Buoy flux water 
    228232 
    229233;  if (alq gt 0) then begin 
    230 ;    xlamx=6./(1+(bigc*alq/usr^4)^.75)^.333                     ; Eq 13 Saunders 
    231 ;    tkt=xlamx*visw/(sqrt(rhoa/rhow)*usr)                       ;Eq.11 Sub. thk 
     234;    xlamx=6./(1+(bigc*alq/usr^4)^.75)^.333             ; Eq 13 Saunders 
     235;    tkt=xlamx*visw/(sqrt(rhoa/rhow)*usr)             ;Eq.11 Sub. thk 
    232236;  endif else begin 
    233237;    xlamx=6.0 
    234 ;  tkt=min([.01,xlamx*visw/(sqrt(rhoa/rhow)*usr)])              ;Eq.11 Sub. thk 
     238;  tkt=min([.01,xlamx*visw/(sqrt(rhoa/rhow)*usr)])         ;Eq.11 Sub. thk 
    235239;    tkt=(xlamx*visw/(sqrt(rhoa/rhow)*usr) < .01) 
    236240; 
     
    253257 
    254258;****************   rain heat flux ******** 
    255 dwat=2.11e-5*((t+tdk)/tdk)^1.94                         ;! water vapour diffusivity 
    256 dtmp=(1.+3.309e-3*t-1.44e-6*t*t)*0.02411/(rhoa*cpa)     ;!heat diffusivity 
    257 alfac= 1/(1+(wetc*LLe*dwat)/(cpa*dtmp))                 ;! wet bulb factor 
     259dwat=2.11e-5*((t+tdk)/tdk)^1.94             ;! water vapour diffusivity 
     260dtmp=(1.+3.309e-3*t-1.44e-6*t*t)*0.02411/(rhoa*cpa)      ;!heat diffusivity 
     261alfac= 1/(1+(wetc*LLe*dwat)/(cpa*dtmp))               ;! wet bulb factor 
    258262RF= rain*alfac*cpw*((ts-t-dter*jcool)+(Qs-Q-dqer*jcool)*LLe/cpa)/3600. 
    259263 
     
    262266 
    263267;****************   Webb et al. correection  ************ 
    264 ;wbar=1.61*hlb/LLe/(1+1.61*Q)/rhoa+hsb/rhoa/cpa/ta      ;formulation in hlb already includes webb 
     268;wbar=1.61*hlb/LLe/(1+1.61*Q)/rhoa+hsb/rhoa/cpa/ta     ;formulation in hlb already includes webb 
    265269;hl_webb=rhoa*wbar*Q*LLe 
    266270;**************   compute transfer coeffs relative to ut @meas. ht ********** 
Note: See TracChangeset for help on using the changeset viewer.