Changeset 398


Ignore:
Timestamp:
05/12/00 10:49:15 (25 years ago)
Author:
blanch
Message:
It takes into account the level over the see of MAGIC
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Simulation/Detector/Reflector/attenu.f

    r292 r398  
    3939      real trr, trm, tro
    4040      REAL LONG(12)
     41c fs define obervation level
     42      double precision obslev     
    4143      INTEGER I,CON_OZ,CON_MI J, ROW
    4244
     
    275277      DATA BATM / 1222.6562D0,1144.9069D0,1305.5948D0,540.1778D0,0.D0  /
    276278      DATA CATM / 994186.38D0,878153.55D0,636143.04D0,772170.16D0,1.D-9/
    277       DATA LAHG / 2000.0D2,4.0D5,1.0D6,4.0D6,1.0D7 /
     279c fs 190400 unterster Layer ist 2200.d0 (observation level)
     280c      DATA LAHG / 2000.0D2,4.0D5,1.0D6,4.0D6,1.0D7 / 
     281      DATA LAHG / 2200.0D2,4.0D5,1.0D6,4.0D6,1.0D7 /
    278282      DATA Lm /3.70D5,3.85D5,4.0D5,4.17D5,4.17D5,4.35D5,5.0D5,5.56D5,
    279283     + 5.99D5,6.33D5, 6.67D5,7.04D5 /
     
    292296     +    650.0 /
    293297      DATA PI / 3.141592654D0 /
    294       PARAMETER (RT=6348.0D5)
     298c fs 191999: take same Earth radius as in CORSIKA
     299c      PARAMETER (RT=6348.0D5)
     300      parameter (rt = 6371315.D2)
    295301
    296302***********************************************************************
     
    302308***********************************************************************
    303309       
    304 
     310c fs observation level at La Palma
     311      parameter (obslev = 2200.d2)
     312     
    305313      T_Ray = 1.0
    306314      T_Mie = 1.0
    307315      T_Oz = 1.0
    308316     
    309       H = -RT + SQRT(RT**2 + (height/COS(theta))**2 +
    310      +     (2.0D0*RT*height))
    311 
    312       ROW = AINT(((H+1.)/1.0E5))
     317c fs : hier fehler: hoehe mit obslev = 0. !!!!
     318c      H = -RT + SQRT(RT**2 + (height/COS(theta))**2 +
     319c     +     (2.0D0*RT*height))
     320      h = -rt + sqrt((rt+obslev)**2 +
     321     +     ((height-obslev)/cos(theta))**2 +
     322     +     (2.0d0*(rt+obslev)*(height-obslev)))
     323
     324      ROW = AINT(((H+1.)/1.0E5))     
    313325             
    314326***********************************************************************
     
    316328*     LARGE ZENITH ANGLE FACTOR (AIR MASS):
    317329     
    318      
    319       m= (1.D0/H)*(SQRT((RT*COS(theta))**2+(2*RT*H)+H**2)-
    320      +     (RT*COS(theta)))
     330c fs : Korrekturfaktor fuer falsche Hoehe richtig???
     331c (H is hier 'wahre Hoehe'; oben: height: apparent height)
     332c aber: fuer curved-version nicht noetig => raus     
     333c      m= (1.D0/H)*(SQRT((RT*COS(theta))**2+(2*RT*H)+H**2)-
     334c     +     (RT*COS(theta)))
    321335**********************************************************************   
    322336         
     
    341355        ENDIF
    342356 91   CONTINUE
    343 
    344  92   RHO_FI = m*RHOTOT
     357 
     358c fs : curved-version => kein m-Faktor!
     359c 92   RHO_FI = m*RHOTOT
     360 92   rho_fi = rhotot
    345361
    346362      T_Ray = EXP(-(RHO_FI/XR)*(400.D0/wavelength)**4)
     
    379395          GOTO 1001
    380396        ENDIF
    381         T_Mie =  EXP(-(m*TOT_AE))   
     397c fs : curved-version => kein m-Faktor!
     398c        T_Mie =  EXP(-(m*TOT_AE))
     399        t_mie =  exp(-(tot_ae))           
    382400
    383401
     
    404422        GOTO 2001
    405423      ENDIF
    406 
    407       T_Oz = EXP(-(m*TOT_OZ))         
     424     
     425c fs : curved-version => kein m-Faktor!
     426c      T_Oz = EXP(-(m*TOT_OZ))
     427      t_oz = exp(-(tot_oz))       
    408428
    409429************************************************************************
Note: See TracChangeset for help on using the changeset viewer.