WSJT-X/lib/qso50/packname.f90
Joe Taylor c470611cc9 Test program to exercise features of the "WSPR QSO mode" that was tested briefly in 2008.
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@8446 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
2018-01-31 15:45:06 +00:00

24 lines
360 B
Fortran

subroutine packname(name,len,n1,n2)
character*9 name
real*8 dn
dn=0
do i=1,len
n=ichar(name(i:i))
if(n.ge.97 .and. n.le.122) n=n-32
dn=27*dn + n-64
enddo
if(len.lt.9) then
do i=len+1,9
dn=27*dn
enddo
endif
n2=mod(dn,32768.d0)
dn=dn/32768.d0
n1=dn
return
end subroutine packname