Ignore:
Timestamp:
Apr 29, 2019, 2:52:42 PM (6 years ago)
Author:
jvatant
Message:

+ Add diagnostics of optical thickness, in 1D, if 'diagdtau' key is activated, it

outputs dtaui/v(altitude) in diagfi.nc for every narrowband (could be done with one var
but would require to be able to have writediag in 5D

--JVO

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.TITAN/libf/phytitan/optcv.F90

    r2095 r2131  
    77  use gases_h
    88  use comcstfi_mod, only: r
    9   use callkeys_mod, only: continuum,graybody,callgasvis,corrk_recombin,  &
     9  use callkeys_mod, only: continuum,graybody,callgasvis,corrk_recombin,diagdtau,  &
    1010                          callclouds,callmufi,seashaze,uncoupl_optic_haze
    1111  use tracer_h, only: nmicro,nice
     
    6969  real*8 ASF_T(L_LEVELS,L_NSPECTI)
    7070  real*8 INT_DTAU(L_NLAYRAD,L_NSPECTI)
    71   real*8 K_HAZE(L_NLAYRAD,L_NSPECTI)
    7271 
    7372  CHARACTER*2  str2
     
    391390
    392391
    393 !  Titan's outputs (JVO, 2016)===============================================
    394 !      do l=1,L_NLAYRAD
    395 !         do nw=1,L_NSPECTV
    396 !          INT_DTAU(L,NW) = 0.0d+0
    397 !            DO NG=1,L_NGAUSS
    398 !               INT_DTAU(L,NW)= INT_DTAU(L,NW) + dtauv(L,nw,ng)*gweight(NG)
    399 !            enddo
    400 !         enddo
    401 !      enddo
    402 
    403 !       do nw=1,L_NSPECTV
    404 !          write(str2,'(i2.2)') nw
    405 !         call writediagfi(1,'kgv'//str2,'Gaz extinction coefficient VI band '//str2,'m-1',1,int_dtau(L_NLAYRAD:1:-1,nw)/dz_lay(L_NLAYRAD:1:-1))
    406 !          call writediagfi(1,'khv'//str2,'Haze extinction coefficient VI band '//str2,'m-1',1,k_haze(L_NLAYRAD:1:-1,nw)/dz_lay(L_NLAYRAD:1:-1))       
    407 !       enddo 
    408 
    409 ! ============================================================================== 
     392  !  Optical thickness for 1D diagnostics (added by JVO)
     393  if (diagdtau) then ! diagtau can be true only if 1D
     394    do l=1,L_NLAYRAD
     395       do nw=1,L_NSPECTV
     396        INT_DTAU(L,NW) = 0.0d+0
     397          DO NG=1,L_NGAUSS
     398             INT_DTAU(L,NW)= INT_DTAU(L,NW) + dtauv(L,nw,ng)*gweight(NG)
     399          enddo
     400       enddo
     401    enddo
     402    do nw=1,L_NSPECTV
     403      write(str2,'(i2.2)') nw
     404      call writediagfi(1,'dtauv'//str2,'Layer optical thickness in VI band '//str2,'',1,int_dtau(L_NLAYRAD:1:-1,nw))
     405    enddo
     406  endif
     407
    410408
    411409  if(firstcall) firstcall = .false.
Note: See TracChangeset for help on using the changeset viewer.