Ignore:
Timestamp:
07/03/00 11:39:39 (24 years ago)
Author:
harald
Message:
Frank Schoeder informed me that the routine attenu.f was not right for
high zenit angle. He sent me a correct version of that routines, that
takes a correction factor from Aitor Ibarra for the Airmass for HZA
into account. I put the new version into the repository.
File:
1 edited

Legend:

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

    r398 r407  
    1111c @T \newpage
    1212
     13
    1314c @section Source code of {\tt attenu.f}
    1415
     
    3940      real trr, trm, tro
    4041      REAL LONG(12)
    41 c fs define obervation level
     42c fs: define obervation level
    4243      double precision obslev     
    4344      INTEGER I,CON_OZ,CON_MI J, ROW
     
    277278      DATA BATM / 1222.6562D0,1144.9069D0,1305.5948D0,540.1778D0,0.D0  /
    278279      DATA CATM / 994186.38D0,878153.55D0,636143.04D0,772170.16D0,1.D-9/
    279 c fs 190400 unterster Layer ist 2200.d0 (observation level)
     280c fs 190400: lowest Layer is 2200.d0 (observation level)
    280281c      DATA LAHG / 2000.0D2,4.0D5,1.0D6,4.0D6,1.0D7 / 
    281282      DATA LAHG / 2200.0D2,4.0D5,1.0D6,4.0D6,1.0D7 /
     
    315316      T_Oz = 1.0
    316317     
    317 c fs : hier fehler: hoehe mit obslev = 0. !!!!
     318c fs : error: height with obslev = 0. !!!!
    318319c      H = -RT + SQRT(RT**2 + (height/COS(theta))**2 +
    319320c     +     (2.0D0*RT*height))
     
    328329*     LARGE ZENITH ANGLE FACTOR (AIR MASS):
    329330     
    330 c fs : Korrekturfaktor fuer falsche Hoehe richtig???
    331 c (H is hier 'wahre Hoehe'; oben: height: apparent height)
    332 c aber: fuer curved-version nicht noetig => raus     
     331c fs : air mass factor = path_lenght(za) / path_lenght(vertical)
     332c                        at point of emission of cherenkov photon
     333c      => pure geometric correction on
     334c         absorption lenght measured at vertical height [km^-1]   
    333335c      m= (1.D0/H)*(SQRT((RT*COS(theta))**2+(2*RT*H)+H**2)-
    334336c     +     (RT*COS(theta)))
     337      m = (1.d0/(h-obslev)) *
     338     &   ( -(rt+obslev)*cos(theta)
     339     &     +sqrt( (rt+h)**2 - ((rt+obslev)*sin(theta))**2) )
    335340**********************************************************************   
    336341         
     
    356361 91   CONTINUE
    357362 
    358 c fs : curved-version => kein m-Faktor!
    359 c 92   RHO_FI = m*RHOTOT
    360  92   rho_fi = rhotot
     363
     364 92   RHO_FI = m*RHOTOT
    361365
    362366      T_Ray = EXP(-(RHO_FI/XR)*(400.D0/wavelength)**4)
     
    395399          GOTO 1001
    396400        ENDIF
    397 c fs : curved-version => kein m-Faktor!
    398 c        T_Mie =  EXP(-(m*TOT_AE))
    399         t_mie =  exp(-(tot_ae))           
     401
     402        T_Mie =  EXP(-(m*TOT_AE))           
    400403
    401404
     
    423426      ENDIF
    424427     
    425 c fs : curved-version => kein m-Faktor!
    426 c      T_Oz = EXP(-(m*TOT_OZ))
    427       t_oz = exp(-(tot_oz))       
     428      T_Oz = EXP(-(m*TOT_OZ))     
    428429
    429430************************************************************************
Note: See TracChangeset for help on using the changeset viewer.