source: JEM-EUSO/esaf_lal/tags/v1_r0/esaf/packages/simulation/externals/lowtran/src/lwtrans_v2.F @ 117

Last change on this file since 117 was 117, checked in by moretto, 11 years ago

ESAF version compilable on mac OS

File size: 2.2 KB
Line 
1      SUBROUTINE LWTRANS_V2(INIT,USR_H1,USR_H2,USR_ANGLE)
2c**********************************************************************
3c     Subroutine to calcul the radiative transfert throw the atmosphere
4c     Based on the LOWTRAN7 program
5c
6c     Input parameters :
7c     ------------------
8c     INIT :  flag for initialisation of lowtran
9C             0 initialisation of atmosphere's parameters and conditions
10c                 ( defined in the lowtran.input file )
11c             1 initialisation of geometrical conditions only when
12c               atmosphere's parameters have already been defined
13c
14c     USR_H1, USR_H2 : altitude of the 2 points in km
15c          USR_ANGLE : angle theta compare to Nadir (0=vertical)
16c                        origine on ground at Nadir (EUSO = 0.,0.,400.)
17c
18c     Output parameters :
19c     -------------------
20c     compare to LWTRANS, all the ouputs are available via the
21c     common block "tuple"
22c
23c     Author : Anne Stutz
24c     Last revised by Corinne Berat, April 2004
25c
26c***********************************************************************
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     
42c     Atmosphere Model Initialisation
43      IF(INIT.EQ.0) THEN
44         NEVT=1
45         ILAMBDA=0
46c*******************************************************************
47c     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         
60c     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
67c
68      RETURN
69      END
70
71
72         
73
74
75
76
77
78
79
80
81
Note: See TracBrowser for help on using the repository browser.