18 #include "Zincidentp.h" 24 real*8 u, cs, sn, sint, fai, za
26 if(za1ry .eq.
'is')
then 28 elseif(za1ry .eq.
'ps')
then 31 elseif(za1ry .eq.
'aps')
then 34 elseif(za1ry .eq.
'cos' )
then 44 fai = (imag_p(azimuth)-
real(azimuth)) *u +
49 sint = sqrt(1.
d0-dir%r(3)**2)
54 write(msg,*)
'strange Za1ry=',za1ry
72 #include "Zincidentp.h" 75 real*8 u, cs, sn, sint, fai
77 dir%r(3) = -( (imag_p(
coszenith)-
real(CosZenith) )*u +
80 fai = (imag_p(azimuth)-
real(azimuth)) *u +
85 sint = sqrt(1.
d0-dir%r(3)**2)
96 #include "Zincidentp.h" 97 #include "Zincidentv.h" 100 real*8 u, h, w1, w2, w3
102 h=(imag_p(obsvhour)-
real(obsvhour))*u +
real(Obsvhour)
108 call kdhtoh(sourcedec, h, w1, w2, w3)
113 call khtad(w1, w2, w3, dir%r(1), dir%r(2), dir%r(3))
121 #include "Zglobalc.h" 123 #include "Zincidentp.h" 124 #include "Zincidentv.h" 127 real*8 u, w3p, decx, h, w1, w2, w3
130 w3p=(cspsmx -cspsmn)*u + cspsmn
136 h=( imag_p(obsvhour)-
real(obsvhour))*u +
real(Obsvhour)
141 call kdhtoh(decx, h, w1, w2, w3)
145 call khtad(w1, w2, w3, dir%r(1), dir%r(2), dir%r(3))
152 #include "Zglobalc.h" 154 #include "Zincidentp.h" 155 #include "Zincidentv.h" 157 real*8 smx, smn, w3min, hmaxd, hmind, hmax, hmin,
158 * wh1, wh2, wh3, w3max
160 external cblkincident
164 smx=
pi/2 -(sourcedec+ddelta)*torad
165 smn=
pi/2 -(sourcedec-ddelta)*torad
168 if(za1ry .eq.
'ps' .or. za1ry .eq.
'aps')
then 169 write(msg,*)
'1ry from point source is specified' 174 call kdzth2(sourcedec, w3min, hmaxd, icon)
178 call kdzth2(sourcedec, w3max, hmind, jcon)
182 call kdhtoh(sourcedec, 0.
d0, wh1, wh2, wh3)
185 obsvhour=cmplx(hmin, hmax, 8)
186 if(hmin .gt. hmax)
then 187 write(msg,*)
' invalid CosZenith=',
coszenith 191 write(msg,*)
' max observable zenith is',
192 *
' smaller than the input' 195 write(msg,*)
' range of hour =',hmin,
' to ',
196 * hmax,
' which corresponds to cos(zenith)=',
199 elseif(icon .eq. 2)
then 201 write(msg,*)
' range of cos(zenith)=',
coszenith,
202 *
' but no such angle is realizable' subroutine cerrormsg(msg, needrtn)
subroutine kdhtoh(del, h, w1, w2, w3)
! for length to thickness conversion or v v ! integer maxnodes real Hinf ! This is used when making table for dim simulation ! The slant length for vertical height to km is ! divided by LenStep m steps ! It can cover the slant length of about km for cos
subroutine kdzth2(del, w3, h, icon)
subroutine csprimang(dir)
subroutine csprimapsang(dir)
block data cblkEvhnp ! currently usable models data RegMdls ad *special data *Cekaon d0
subroutine csprimpsang(dir)
subroutine csprimisoang(dir)
! constants thru Cosmos real * pi
subroutine khtad(hx, hy, hz, ax, ay, az)
*Zfirst p fm *Zfirst p Zfirst p Zfirst p *Zfirst p *Zfirst pos xyz Zfirst pos xyz *Zfirst pos *Zfirst pos Zfirst pos *Zfirst pos *Zfirst Zfirst vec w *Zfirst vec w Zfirst vec coszenith
subroutine kcossn(cs, sn)
subroutine ksamplin(a, b, alpha, beta, x)