summaryrefslogtreecommitdiff
path: root/qmap/libqmap/geocentric.f90
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2025-01-09 22:12:06 +0100
committerChristoph Berg <myon@debian.org>2025-01-09 22:12:06 +0100
commit992d4b4b8d3f3a630a2cf00d593ee4ce4dfa7ce8 (patch)
treefbfdfe6bcb0a8a114be2480dac53d88c977e4869 /qmap/libqmap/geocentric.f90
parent4320ce238aae1fe87fc9f379cdd816e9317885fa (diff)
New upstream version 2.7.0~rc8+repackupstream/2.7.0_rc8+repack
Diffstat (limited to 'qmap/libqmap/geocentric.f90')
-rwxr-xr-xqmap/libqmap/geocentric.f9034
1 files changed, 17 insertions, 17 deletions
diff --git a/qmap/libqmap/geocentric.f90 b/qmap/libqmap/geocentric.f90
index 11ea7cb6..59ed90b5 100755
--- a/qmap/libqmap/geocentric.f90
+++ b/qmap/libqmap/geocentric.f90
@@ -1,17 +1,17 @@
-subroutine geocentric(alat,elev,hlt,erad)
-
- implicit real*8 (a-h,o-z)
-
-! IAU 1976 flattening f, equatorial radius a
- f = 1.d0/298.257d0
- a = 6378140.d0
- c = 1.d0/sqrt(1.d0 + (-2.d0 + f)*f*sin(alat)*sin(alat))
- arcf = (a*c + elev)*cos(alat)
- arsf = (a*(1.d0 - f)*(1.d0 - f)*c + elev)*sin(alat)
- hlt = datan2(arsf,arcf)
- erad = sqrt(arcf*arcf + arsf*arsf)
- erad = 0.001d0*erad
-
- return
-end subroutine geocentric
-
+subroutine geocentric(alat,elev,hlt,erad)
+
+ implicit real*8 (a-h,o-z)
+
+! IAU 1976 flattening f, equatorial radius a
+ f = 1.d0/298.257d0
+ a = 6378140.d0
+ c = 1.d0/sqrt(1.d0 + (-2.d0 + f)*f*sin(alat)*sin(alat))
+ arcf = (a*c + elev)*cos(alat)
+ arsf = (a*(1.d0 - f)*(1.d0 - f)*c + elev)*sin(alat)
+ hlt = datan2(arsf,arcf)
+ erad = sqrt(arcf*arcf + arsf*arsf)
+ erad = 0.001d0*erad
+
+ return
+end subroutine geocentric
+