COSMOS v7.655  COSMOSv7655
(AirShowerMC)
csph2eCent.f File Reference

Go to the source code of this file.

Functions/Subroutines

subroutine csph2ecent (a, b)
 

Function/Subroutine Documentation

◆ csph2ecent()

subroutine csph2ecent ( type(coord a,
type(coord b 
)

Definition at line 2 of file csph2eCent.f.

References cos.

Referenced by ctranscoord2().

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
! 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
real(4), dimension(:), allocatable, save temp
Definition: cNRLAtmos.f:29
real(4), save a
Definition: cNRLAtmos.f:20
nodes t
real(4), save b
Definition: cNRLAtmos.f:21
Definition: Zcoord.h:43
Here is the caller graph for this function: