Go to the source code of this file.
◆ cecent2sph()
subroutine cecent2sph |
( |
type(coord) |
a, |
|
|
type(coord) |
bb |
|
) |
| |
Definition at line 2 of file ceCent2sph.f.
References d0.
Referenced by chookenevent(), and ctranscoord2().
12 real*8 sint, cost, sinphi, cosphi
15 b%r(3) = sqrt(
a%r(1)**2 +
a%r(2)**2 +
a%r(3)**2)
17 if(
b%r(3) .gt. 0.)
then 19 sint =sqrt( (
a%r(1)/
b%r(3))**2 + (
a%r(2)/
b%r(3))**2)
23 b%r(1) = atan2(sint, cost)*todeg
24 if(sint .ne. 0.
d0)
then 27 cosphi =
a%r(1) /
b%r(3)*sint
28 sinphi =
a%r(2) /
b%r(3) *sint
30 b%r(2) = atan2(sinphi, cosphi)*todeg
block data cblkEvhnp ! currently usable models data RegMdls ad *special data *Cekaon d0