1 | SUBROUTINE LWTRANS(INIT,USR_ALT,USR_ANGLE,TRANS) |
---|
2 | c********************************************************************** |
---|
3 | c Subroutine to calcul the radiative transfert throw the atmosphere |
---|
4 | c Based on the LOWTRAN7 program |
---|
5 | c |
---|
6 | c Input parameters : |
---|
7 | c ------------------ |
---|
8 | c INIT : flag for initialisation of lowtran |
---|
9 | C 0 initialisation of atmosphere's parameters and conditions |
---|
10 | c ( defined in the lowtran.input file ) |
---|
11 | c 1 initialisation of geometrical conditions only when |
---|
12 | c atmosphere's parameters have already been defined |
---|
13 | c |
---|
14 | c USR_ALT, USR_ANGLE : altitude of the point in km |
---|
15 | c angle theta compare to Nadir (0=vertical) |
---|
16 | c origine on ground at Nadir (EUSO = 0.,0.,400.) |
---|
17 | c |
---|
18 | c Output parameters : |
---|
19 | c ------------------- |
---|
20 | c TRANS(lambda) : total transmission from a point at alt usr_alt |
---|
21 | c to a point above the atmosphere in the theta direction |
---|
22 | c for differents wavelenghts (no more than 100 and defined in the |
---|
23 | c lowtran.input file) |
---|
24 | c Then, the transmission can be multiplied. |
---|
25 | c |
---|
26 | c Author : Anne Stutz |
---|
27 | c Last revised by Corinne Berat, August 2002 |
---|
28 | c |
---|
29 | c*********************************************************************** |
---|
30 | #include "lwtrn7.common" |
---|
31 | #include "userlun.common" |
---|
32 | #include "tuple.common" |
---|
33 | |
---|
34 | INTEGER INIT |
---|
35 | REAL USR_ALT,USR_ANGLE |
---|
36 | REAL TRANS(100) |
---|
37 | CHARACTER*10 OUTFILE,SAVEFILE |
---|
38 | CHARACTER*100 STR |
---|
39 | CHARACTER*25 path/'config/RadiativeTransfer/'/ |
---|
40 | CHARACTER*19 dummy |
---|
41 | IFILE = 8 |
---|
42 | ITAPE5 = 9 |
---|
43 | IPRNT = 10 |
---|
44 | IFILE2 = 18 |
---|
45 | |
---|
46 | c Atmosphere Model Initialisation |
---|
47 | IF(INIT.EQ.0) THEN |
---|
48 | NEVT=1 |
---|
49 | ILAMBDA=0 |
---|
50 | c******************************************************************* |
---|
51 | c creation of the TAPE5 init file for lwtrn7 |
---|
52 | |
---|
53 | OPEN(66,FILE=path//'LowtranFiles.dat') |
---|
54 | READ(66,66) dummy, TAPE5 |
---|
55 | READ(66,66) dummy, TAPE6 |
---|
56 | READ(66,66) dummy, TAPE7 |
---|
57 | READ(66,66) dummy, TAPE8 |
---|
58 | CLOSE(66) |
---|
59 | 66 FORMAT(A,' ',A) |
---|
60 | |
---|
61 | CALL INITCARD3(0.,0.) |
---|
62 | CALL LWTRN7SUB |
---|
63 | DO I=1,100 |
---|
64 | TRANS(I)=TRANSM(I) |
---|
65 | ENDDO |
---|
66 | ENDIF |
---|
67 | |
---|
68 | c Calcul the atmospheric transmission from xpos,ypos,zpos to EUSO |
---|
69 | IF(INIT.EQ.1) THEN |
---|
70 | NEVT = NEVT+1 |
---|
71 | ILAMBDA=0 |
---|
72 | CALL INITCARD3(USR_ALT,USR_ANGLE) |
---|
73 | CALL LWTRN7SUB |
---|
74 | DO I=1,100 |
---|
75 | TRANS(I) = TRANSM(I) |
---|
76 | ENDDO |
---|
77 | ENDIF |
---|
78 | c |
---|
79 | RETURN |
---|
80 | END |
---|
81 | |
---|
82 | |
---|
83 | |
---|
84 | |
---|
85 | |
---|
86 | |
---|
87 | |
---|
88 | |
---|
89 | |
---|
90 | |
---|
91 | |
---|
92 | |
---|