diff options
| author | Christoph Berg <myon@debian.org> | 2025-09-15 23:04:23 +0200 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2025-09-15 23:04:23 +0200 |
| commit | 0a13f1fdb9928b6d012569dd65f7f6ef18fac2f8 (patch) | |
| tree | d702795f99ac38e0cc17e25f0f7e50fa3e05baf9 /qmap/libqmap/geocentric.f90 | |
| parent | 310d05acf2c9233f7e336ae7dd9ffb7b54ca4e62 (diff) | |
New upstream version 3.0.0~rc1+repackupstream/3.0.0_rc1+repack
Diffstat (limited to 'qmap/libqmap/geocentric.f90')
| -rwxr-xr-x | qmap/libqmap/geocentric.f90 | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/qmap/libqmap/geocentric.f90 b/qmap/libqmap/geocentric.f90 index 59ed90b5..11ea7cb6 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
+
|
