Go to the source code of this file.
◆ cecent2llh()
subroutine cecent2llh |
( |
type(coord) |
xyz, |
|
|
type(coord) |
llh |
|
) |
| |
Definition at line 22 of file ce_cent2llh_ellips.f.
References coord_types(), d, and d0.
Referenced by ctranscoord2().
42 real*8 n, cosphi, sinphi, cosl, sinl, hold
49 temp%h = sqrt(
xyz%r(1)**2 +
xyz%r(2)**2 +(
xyz%r(3)/
50 * (1.
d0 -
n*ecen2/(
n+temp%h)))**2 ) -
n 51 cosphi = sqrt( (
xyz%r(1)/(
n+temp%h))**2 +
52 * (
xyz%r(2)/(
n+temp%h))**2 )
53 sinphi =
xyz%r(3)/(
n*one_ecen2 + temp%h)
55 cosl =
xyz%r(1)/(
n+temp%h)/cosphi
56 sinl =
xyz%r(2)/(
n+temp%h)/cosphi
57 n = eradius /sqrt(1.
d0 - ecen2*sinphi**2)
58 if(abs(temp%h -hold) .lt. 1.
d-2)
goto 100
63 temp%lat = atan2(sinphi, cosphi)*todeg
64 temp%long = atan2(sinl, cosl)*todeg
latitude latitude this system is used *****************************************************************! type coord sequence union map real z z in m endmap xyz map real ! latitude in deg is to the north ! longitude in deg is to the east *h ! height in m endmap llh map real ! polar angle ! azimuthal angle *radius ! radial distance endmap sph endunion character *sys ! which system xyz
latitude latitude this system is used *****************************************************************! type coord sequence union map real z z in m endmap xyz map real ! latitude in deg is to the north ! longitude in deg is to the east *h ! height in m endmap llh map real ! polar angle ! azimuthal angle *radius ! radial distance endmap sph endunion character *sys ! which system llh
integer max_coord_types * coord_types(2)/'llh'/
block data cblkEvhnp ! currently usable models data RegMdls ad *special data *Cekaon d0
dE dx *! Nuc Int sampling table d