summaryrefslogtreecommitdiff
path: root/lib/to_contest_msg.f90
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2026-04-07 19:02:45 +0200
committerChristoph Berg <myon@debian.org>2026-04-07 19:02:45 +0200
commitf647d78463c1250ce9c99af664615fafccf5e959 (patch)
tree5b00428cef68aef1c9d407e2d4535687422419b6 /lib/to_contest_msg.f90
parent0a13f1fdb9928b6d012569dd65f7f6ef18fac2f8 (diff)
New upstream version 3.0.0upstream/3.0.0
Diffstat (limited to 'lib/to_contest_msg.f90')
-rw-r--r--[-rwxr-xr-x]lib/to_contest_msg.f9054
1 files changed, 27 insertions, 27 deletions
diff --git a/lib/to_contest_msg.f90 b/lib/to_contest_msg.f90
index 42691951..35248e95 100755..100644
--- a/lib/to_contest_msg.f90
+++ b/lib/to_contest_msg.f90
@@ -1,27 +1,27 @@
-subroutine to_contest_msg(msg0,msg)
-
-! If the message has "R grid4" istead of "grid4", remove the "R "
-! and substitute the diametrically opposite grid.
-
- character*6 g1,g2
- character*22 msg0,msg
- logical isgrid
- isgrid(g1)=g1(1:1).ge.'A' .and. g1(1:1).le.'R' .and. g1(2:2).ge.'A' .and. &
- g1(2:2).le.'R' .and. g1(3:3).ge.'0' .and. g1(3:3).le.'9' .and. &
- g1(4:4).ge.'0' .and. g1(4:4).le.'9' .and. g1(1:4).ne.'RR73'
-
- i0=index(msg0,' R ') + 3 !Check for ' R ' in message
- g1=msg0(i0:i0+3)//' '
- if(isgrid(g1)) then !Check for ' R grid'
- call grid2deg(g1,dlong,dlat)
- dlong=dlong+180.0
- if(dlong.gt.180.0) dlong=dlong-360.0
- dlat=-dlat
- call deg2grid(dlong,dlat,g2) !g2=antipodes grid
- msg=msg0(1:i0-3)//g2(1:4) !Send message with g2
- else
- msg=msg0
- endif
-
- return
-end subroutine to_contest_msg
+subroutine to_contest_msg(msg0,msg)
+
+! If the message has "R grid4" istead of "grid4", remove the "R "
+! and substitute the diametrically opposite grid.
+
+ character*6 g1,g2
+ character*22 msg0,msg
+ logical isgrid
+ isgrid(g1)=g1(1:1).ge.'A' .and. g1(1:1).le.'R' .and. g1(2:2).ge.'A' .and. &
+ g1(2:2).le.'R' .and. g1(3:3).ge.'0' .and. g1(3:3).le.'9' .and. &
+ g1(4:4).ge.'0' .and. g1(4:4).le.'9' .and. g1(1:4).ne.'RR73'
+
+ i0=index(msg0,' R ') + 3 !Check for ' R ' in message
+ g1=msg0(i0:i0+3)//' '
+ if(isgrid(g1)) then !Check for ' R grid'
+ call grid2deg(g1,dlong,dlat)
+ dlong=dlong+180.0
+ if(dlong.gt.180.0) dlong=dlong-360.0
+ dlat=-dlat
+ call deg2grid(dlong,dlat,g2) !g2=antipodes grid
+ msg=msg0(1:i0-3)//g2(1:4) !Send message with g2
+ else
+ msg=msg0
+ endif
+
+ return
+end subroutine to_contest_msg