1 | SUBROUTINE LWTRANS_V2(INIT,USR_H1,USR_H2,USR_ANGLE) |
---|
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_H1, USR_H2 : altitude of the 2 points in km |
---|
15 | c USR_ANGLE : 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 compare to LWTRANS, all the ouputs are available via the |
---|
21 | c common block "tuple" |
---|
22 | c |
---|
23 | c Author : Anne Stutz |
---|
24 | c Last revised by Corinne Berat, April 2004 |
---|
25 | c |
---|
26 | c*********************************************************************** |
---|
27 | #include "lwtrn7.common" |
---|
28 | #include "userlun.common" |
---|
29 | #include "tuple.common" |
---|
30 | |
---|
31 | INTEGER INIT |
---|
32 | REAL USR_H1,USR_H2,USR_ANGLE |
---|
33 | CHARACTER*10 OUTFILE,SAVEFILE |
---|
34 | CHARACTER*100 STR |
---|
35 | CHARACTER*25 path/'config/RadiativeTransfer/'/ |
---|
36 | CHARACTER*19 dummy |
---|
37 | IFILE = 8 |
---|
38 | ITAPE5 = 9 |
---|
39 | IPRNT = 10 |
---|
40 | IFILE2 = 18 |
---|
41 | |
---|
42 | c Atmosphere Model Initialisation |
---|
43 | IF(INIT.EQ.0) THEN |
---|
44 | NEVT=1 |
---|
45 | ILAMBDA=0 |
---|
46 | c******************************************************************* |
---|
47 | c creation of the TAPE5 init file for lwtrn7 |
---|
48 | |
---|
49 | OPEN(66,FILE=path//'LowtranFiles.dat') |
---|
50 | READ(66,66) dummy, TAPE5 |
---|
51 | READ(66,66) dummy, TAPE6 |
---|
52 | READ(66,66) dummy, TAPE7 |
---|
53 | READ(66,66) dummy, TAPE8 |
---|
54 | CLOSE(66) |
---|
55 | 66 FORMAT(A,' ',A) |
---|
56 | CALL INITCARD3_V2(0.,0.,0.) |
---|
57 | CALL LWTRN7SUB |
---|
58 | ENDIF |
---|
59 | |
---|
60 | c Calcul the atmospheric transmission from xpos,ypos,zpos to EUSO |
---|
61 | IF(INIT.EQ.1) THEN |
---|
62 | NEVT = NEVT+1 |
---|
63 | ILAMBDA=0 |
---|
64 | CALL INITCARD3_V2(USR_H1,USR_H2,USR_ANGLE) |
---|
65 | CALL LWTRN7SUB |
---|
66 | ENDIF |
---|
67 | c |
---|
68 | RETURN |
---|
69 | END |
---|
70 | |
---|
71 | |
---|
72 | |
---|
73 | |
---|
74 | |
---|
75 | |
---|
76 | |
---|
77 | |
---|
78 | |
---|
79 | |
---|
80 | |
---|
81 | |
---|