[334] | 1 | subroutine read_phototable |
---|
| 2 | c |
---|
| 3 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
| 4 | c |
---|
| 5 | c subject: |
---|
| 6 | c -------- |
---|
| 7 | c |
---|
| 8 | c read photolysis lookup table |
---|
| 9 | c |
---|
| 10 | c VERSION: 17/03/2011 |
---|
| 11 | c |
---|
| 12 | c Author: Franck Lefevre |
---|
| 13 | c |
---|
| 14 | c Arguments: |
---|
| 15 | c ---------- |
---|
| 16 | c |
---|
| 17 | c The output variable is jphot and is put in common chimiedata. |
---|
| 18 | c |
---|
| 19 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
| 20 | c |
---|
| 21 | implicit none |
---|
| 22 | c |
---|
| 23 | #include "dimensions.h" |
---|
| 24 | #include "chimiedata.h" |
---|
| 25 | #include "datafile.h" |
---|
| 26 | c |
---|
| 27 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
| 28 | c local: |
---|
| 29 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
| 30 | c |
---|
| 31 | integer fic, ij, iozo, isza, itemp, iz, itau, ierr |
---|
| 32 | c |
---|
| 33 | real xsza |
---|
| 34 | c |
---|
| 35 | cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc |
---|
| 36 | c |
---|
| 37 | fic = 81 |
---|
| 38 | |
---|
| 39 | open(fic, form = 'formatted', status = 'old', |
---|
| 40 | &file =trim(datafile)//'/jmars.20101220',iostat=ierr) |
---|
| 41 | |
---|
| 42 | IF (ierr.NE.0) THEN |
---|
| 43 | write(*,*)'Error : cannot open photolysis lookup table' |
---|
| 44 | write(*,*)'(in aeronomars/init_chemistry.F)' |
---|
| 45 | write(*,*)'It should be in :',trim(datafile),'/' |
---|
| 46 | write(*,*)'1) You can change this directory address in ' |
---|
| 47 | write(*,*)' file phymars/datafile.h' |
---|
| 48 | STOP |
---|
| 49 | ENDIF |
---|
| 50 | |
---|
| 51 | c |
---|
| 52 | print*, 'read photolysis lookup table...' |
---|
| 53 | c |
---|
| 54 | do itau = 1,ntau |
---|
| 55 | do itemp = 1,ntemp |
---|
| 56 | do iozo = 1,nozo |
---|
| 57 | do isza = 1,nsza |
---|
| 58 | do iz = 200,0,-1 |
---|
| 59 | read(fic,*) colairtab(iz), xsza, table_ozo(iozo) |
---|
| 60 | c print*, colairtab(iz), xsza, table_ozo(iozo) |
---|
| 61 | read(fic,'(7e11.4)') |
---|
| 62 | $ (jphot(itemp,isza,iz,iozo,itau,ij), ij= 1,nd) |
---|
| 63 | do ij = 1,nd |
---|
| 64 | if (jphot(itemp,isza,iz,iozo,itau,ij) |
---|
| 65 | $ .eq. 1.e-30) then |
---|
| 66 | jphot(itemp,isza,iz,iozo,itau,ij) = 0. |
---|
| 67 | end if |
---|
| 68 | end do |
---|
| 69 | end do |
---|
| 70 | end do |
---|
| 71 | end do |
---|
| 72 | end do |
---|
| 73 | end do |
---|
| 74 | c |
---|
| 75 | print*, 'lookup table...ok' |
---|
| 76 | close(fic) |
---|
| 77 | c |
---|
| 78 | return |
---|
| 79 | end |
---|