| 1 | 
 | 
| 2 | 
#include "ctrparam.h" | 
| 3 | 
 | 
| 4 | 
!       ========================================================== | 
| 5 | 
! | 
| 6 | 
!       TGASES.F:   Subroutine for reading monthly-mean tracer mixing | 
| 7 | 
!                       ratios to carryout offline calculation | 
| 8 | 
!                        | 
| 9 | 
!                       Version allows reading continually. | 
| 10 | 
!       ---------------------------------------------------------- | 
| 11 | 
! | 
| 12 | 
!       Author:         Chien Wang | 
| 13 | 
!                       MIT Joint Program on Science and Policy | 
| 14 | 
!                               of Global Change | 
| 15 | 
! | 
| 16 | 
!       ---------------------------------------------------------- | 
| 17 | 
!  | 
| 18 | 
!       Revision History: | 
| 19 | 
!        | 
| 20 | 
!       When    Who             What | 
| 21 | 
!       ----    ----------      -------  | 
| 22 | 
!       080100  Chien Wang      repack based on CliChem3 & add cpp | 
| 23 | 
! | 
| 24 | 
!       ========================================================== | 
| 25 | 
 | 
| 26 | 
       subroutine tgases (CO2,JMONTH) | 
| 27 | 
 | 
| 28 | 
#include "chem_para" | 
| 29 | 
#include "chem_com" | 
| 30 | 
 | 
| 31 | 
      DIMENSION AMONTH(12),cff11(3) | 
| 32 | 
      CHARACTER*4 AMONTH,JMONTH,RMONTH | 
| 33 | 
      DATA AMONTH/'JAN','FEB','MAR','APR','MAY','JUNE','JULY','AUG', | 
| 34 | 
     *  'SEP','OCT','NOV','DEC'/ | 
| 35 | 
      data nread /0/ | 
| 36 | 
      data ifirst/1/ | 
| 37 | 
      data cff11 /1.04,1.36,2.75/ | 
| 38 | 
 | 
| 39 | 
 | 
| 40 | 
c============================ | 
| 41 | 
c  Unit here for gases is | 
| 42 | 
c       10^-9 kg(c)/kg(air), or ppb(m): | 
| 43 | 
c | 
| 44 | 
      if(CO2.le.0.0.or.CO2.gt.1.5)then | 
| 45 | 
        print *,' tgases CO2=',CO2 | 
| 46 | 
        stop | 
| 47 | 
      endif | 
| 48 | 
  100 continue | 
| 49 | 
      nread=nread+1 | 
| 50 | 
      read(569)cfc11 | 
| 51 | 
      read(569)cfc12 | 
| 52 | 
      read(569)xn2o | 
| 53 | 
      read(569)o3 | 
| 54 | 
      read(569)co | 
| 55 | 
      read(569)zco2 | 
| 56 | 
      read(569)ho               !useless | 
| 57 | 
      read(569)xno              !useless | 
| 58 | 
      read(569)xno              !useless | 
| 59 | 
      read(569)ch4 | 
| 60 | 
      read(569)so2              !useless | 
| 61 | 
      read(569)h2so4 | 
| 62 | 
      read(569)sviod            !optical depth of S(VI) | 
| 63 | 
      read(569)bcm | 
| 64 | 
      read(569)ocm | 
| 65 | 
      read(569)bcodm | 
| 66 | 
      read(569)ocodm | 
| 67 | 
 | 
| 68 | 
      read(679)hfc134a | 
| 69 | 
      read(679)pfc | 
| 70 | 
      read(679)sf6 | 
| 71 | 
#ifdef PREDICTED_GASES | 
| 72 | 
      do l=1,nlev | 
| 73 | 
      do j=1,nlat | 
| 74 | 
      do i=1,nlon | 
| 75 | 
       cfc11(i,j,l)=cfc11(i,j,l)+cff11(1)*hfc134a(i,j,l) | 
| 76 | 
     &             +cff11(2)*pfc(i,j,l)+cff11(3)*sf6(i,j,l) | 
| 77 | 
      enddo | 
| 78 | 
      enddo | 
| 79 | 
      enddo | 
| 80 | 
#endif | 
| 81 | 
 | 
| 82 | 
 | 
| 83 | 
      nr1=nread/12 | 
| 84 | 
      nr=nread-nr1*12 | 
| 85 | 
      if(nr.eq.0)nr=12 | 
| 86 | 
      RMONTH=AMONTH(nr) | 
| 87 | 
      if(RMONTH.ne.JMONTH)then | 
| 88 | 
         print *,' DISAGREMENT in TGASES' | 
| 89 | 
         print *,nread,nr,RMONTH,JMONTH | 
| 90 | 
         stop | 
| 91 | 
      endif | 
| 92 | 
      if(ifirst.eq.1)then | 
| 93 | 
        print *,' TGASES NREAD=',nread,nr,RMONTH,JMONTH | 
| 94 | 
        print *,'CO2' | 
| 95 | 
c       print *,(zco2(1,12,l),l=1,nlev) | 
| 96 | 
c       ifirst=0 | 
| 97 | 
      endif | 
| 98 | 
ctropmass = 28.97296245 | 
| 99 | 
 | 
| 100 | 
c        cfc11 = cfc11*tropmass/137.3675*1.e3 !pptv | 
| 101 | 
c        cfc12 = cfc12*tropmass/120.9054*1.e3 !pptv | 
| 102 | 
c        xn2o  = xn2o *tropmass/44.0000       !ppbv | 
| 103 | 
c        o3    = o3   *tropmass/47.9982       !ppbv | 
| 104 | 
c        zco2  = zco2 *tropmass/44.0098*1.e-3 !ppmv | 
| 105 | 
c        co    = co   *tropmass/28.0104       !ppbv | 
| 106 | 
c        ch4   = ch4  *tropmass/16.0426*1.e-3 !ppmv | 
| 107 | 
 | 
| 108 | 
        return | 
| 109 | 
        end |