COSMOS v7.655  COSMOSv7655
(AirShowerMC)
csph2eCent.f
Go to the documentation of this file.
1  subroutine csph2ecent(a, b)
2 ! spherical to rectangular coord
3  implicit none
4 #include "Zglobalc.h"
5 #include "Zcoord.h"
6  type(coord)::a
7  type(coord)::b
8 !
9  type(coord)::temp
10  real*8 t
11 !
12 ! t =a.theta*Torad
13  t =a%r(1)*torad
14 ! temp.r(1) = a.radius*sin(t)*cos(a.phi*Torad)
15 ! temp.r(2) = a.radius*sin(t)*sin(a.phi*Torad)
16 ! temp.r(3) = a.radius* cos(t)
17  temp%r(1) = a%r(3)*sin(t)*cos(a%r(2)*torad)
18  temp%r(2) = a%r(3)*sin(t)*sin(a%r(2)*torad)
19  temp%r(3) = a%r(3)* cos(t)
20  temp%sys='xyz'
21  b = temp
22  end
subroutine csph2ecent(a, b)
Definition: csph2eCent.f:2
! 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
Definition: Zatmos.h:8
Definition: Zcoord.h:43