1 subroutine da_radzicevar_rhoair_tl(tlopt,rhoair,prs,rgas,tmk,qvp,pdfrhot,pdfrhoq)
2 !----------------------------------------------------------------
3 ! purpose: calculate the air density and its tl linear
4 !----------------------------------------------------------------
7 real :: rhoair,prs,rgas,tmk,qvp
9 real :: pdfrhot,pdfrhoq
11 call da_radzicevar_virtual(virtual,tmk,qvp)
12 rhoair=prs*1./(rgas*virtual) ! air density
14 pdfrhot=-prs*1./(rgas*virtual)*(1./tmk)
15 pdfrhoq=-prs*1./(rgas*virtual)*(0.61/(1+0.61*qvp))
17 pdfrhot=0 ! not used in current version
18 pdfrhoq=0 ! not used in current version
20 end subroutine da_radzicevar_rhoair_tl