Ignore:
Timestamp:
May 22, 2019, 4:15:51 PM (6 years ago)
Author:
jvatant
Message:

Correct outptuts of dtaui/v with correct ponderations
of weights, but now it is attenuation exp(-tau)
--JVO

Location:
trunk/LMDZ.GENERIC/libf/phystd
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.GENERIC/libf/phystd/callcorrk.F90

    r2134 r2138  
    934934            int_dtauv(ig,l,nw) = 0.0d0
    935935             DO k=1,L_NGAUSS
    936               int_dtauv(ig,l,nw)= int_dtauv(ig,l,nw) + dtauv(l,nw,k)*gweight(k)
     936              ! Output exp(-tau) because gweight ponderates exp and not tau itself
     937              int_dtauv(ig,l,nw)= int_dtauv(ig,l,nw) + exp(-dtauv(l,nw,k))*gweight(k)
    937938             ENDDO
    938939          enddo
     
    940941           int_dtaui(ig,l,nw) = 0.0d0
    941942             DO k=1,L_NGAUSS
    942               int_dtaui(ig,l,nw)= int_dtaui(ig,l,nw) + dtaui(l,nw,k)*gweight(k)
     943              ! Output exp(-tau) because gweight ponderates exp and not tau itself
     944              int_dtaui(ig,l,nw)= int_dtaui(ig,l,nw) + exp(-dtaui(l,nw,k))*gweight(k)
    943945             ENDDO
    944946          enddo
  • trunk/LMDZ.GENERIC/libf/phystd/inifis_mod.F90

    r2133 r2138  
    327327     write(*,*)" specOLR = ",specOLR
    328328
    329      write(*,*)"Output diagnostic optical thickness?"
     329     write(*,*)"Output diagnostic optical thickness attenuation exp(-tau)?"
    330330     diagdtau=.false.
    331331     call getin_p("diagdtau",diagdtau)
  • trunk/LMDZ.GENERIC/libf/phystd/physiq_mod.F90

    r2133 r2138  
    21942194
    21952195        ! Diagnostics of optical thickness
     2196        ! Warning this is exp(-tau), I let you postproc with -log to have tau itself - JVO 19
    21962197        if (diagdtau) then               
    21972198          do nw=1,L_NSPECTV
    21982199            write(str2,'(i2.2)') nw
    2199             call writediagfi(ngrid,'dtauv'//str2,'Layer optical thickness in VI band '//str2,'',1,int_dtauv(:,nlayer:1:-1,nw))
     2200            call writediagfi(ngrid,'dtauv'//str2,'Layer optical thickness attenuation in VI band '//str2,'',1,int_dtauv(:,nlayer:1:-1,nw))
    22002201          enddo
    22012202          do nw=1,L_NSPECTI
    22022203            write(str2,'(i2.2)') nw
    2203             call writediagfi(ngrid,'dtaui'//str2,'Layer optical thickness in IR band '//str2,'',1,int_dtaui(:,nlayer:1:-1,nw))
     2204            call writediagfi(ngrid,'dtaui'//str2,'Layer optical thickness attenuation in IR band '//str2,'',1,int_dtaui(:,nlayer:1:-1,nw))
    22042205          enddo
    22052206        endif
Note: See TracChangeset for help on using the changeset viewer.