diff options
| author | Christoph Berg <myon@debian.org> | 2025-09-16 12:37:12 +0200 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2025-09-16 12:57:29 +0200 |
| commit | 5a4967c577ad245a2117b7b2f71c13b1212fe285 (patch) | |
| tree | 4d09343cfe757239895a0dd9b399242d2a07d7c2 /lib/ft8var/msgparservar.f90 | |
| parent | 23c903a09fb1d73fd20b50323cd80cfb3aba8799 (diff) | |
Merge 2.7 changes, I had uploaded -1 from the wrong branch.debian/3.0.0_rc1+repack-2
Diffstat (limited to 'lib/ft8var/msgparservar.f90')
| -rwxr-xr-x | lib/ft8var/msgparservar.f90 | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/lib/ft8var/msgparservar.f90 b/lib/ft8var/msgparservar.f90 new file mode 100755 index 00000000..276047d1 --- /dev/null +++ b/lib/ft8var/msgparservar.f90 @@ -0,0 +1,26 @@ +subroutine msgparservar(msg37,msg37_2)
+
+ character msg37*37,msg37_2*37,call1*12,call2*12,call3*12,report*6
+
+! ES1JA RR73; TA1BM <...> -22
+! ES1JA RR73; TA1BM <SX60RAAG> -22
+
+ call1=' '; call2=' '; call3=' '; report=' '
+ ispc1=index(msg37,' '); ispc2=index(msg37((ispc1+1):),' ')+ispc1
+ ispc3=index(msg37((ispc2+1):),' ')+ispc2; ispc4=index(msg37((ispc3+1):),' ')+ispc3
+ ispc5=index(msg37((ispc4+1):),' ')+ispc4
+ if(ispc5.gt.20) then
+ call1=msg37(1:ispc1-1); call2=msg37(ispc2+1:ispc3-1)
+ if(msg37(ispc3+1:ispc3+2).eq.'<.') then
+ call3='<...>'
+ else
+ call3=msg37(ispc3+1:ispc4-1)
+ endif
+ if(len_trim(call3).lt.11) then; report=msg37(ispc4+1:ispc5-1); else; report=msg37(ispc4+1:37); endif
+! build standard messages
+ msg37=trim(call1)//' RR73; '//trim(call2)//' '//trim(call3)//' '//trim(report) !ft8md reformat msg37
+ msg37_2=trim(call2)//' '//trim(call3)//' '//trim(report)
+ endif
+
+ return
+end subroutine msgparservar
|
