Go to the source code of this file.
◆ csph2llh()
subroutine csph2llh |
( |
type(coord) |
sph, |
|
|
type(coord) |
llh |
|
) |
| |
Definition at line 2 of file csph2llh.f.
References coord_types(), and d0.
Referenced by ctranscoord2().
17 #include "Zcoordtype.h" 21 temp%h = sph%radius - eradius
22 temp%lat = 90.
d0 - sph%theta
24 if(sph%phi .gt. 180.
d0)
then 25 temp%long = sph%phi - 360.
d0 30 temp%r(3) = sph%r(3) - eradius
31 temp%r(1) = 90.
d0 - sph%r(1)
33 if(sph%r(2) .gt. 180.
d0)
then 34 temp%r(2) = sph%r(2) - 360.
d0 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
real(4), dimension(:), allocatable, save temp
integer max_coord_types * coord_types(2)/'llh'/
block data cblkEvhnp ! currently usable models data RegMdls ad *special data *Cekaon d0