summaryrefslogtreecommitdiff
path: root/lib/qso50/unpackprop.f90
diff options
context:
space:
mode:
authorEnrico Rossi <e.rossi@tecnobrain.com>2018-11-03 17:52:26 +0100
committerEnrico Rossi <e.rossi@tecnobrain.com>2018-11-03 17:52:26 +0100
commitb4aebf2d137b892f53503b13785ecae900062ff7 (patch)
tree3ba99b2baec2292f2e13bfe90a5e401a5f4c47a5 /lib/qso50/unpackprop.f90
parent37f727ac0746fd85504aa46c1f023c09b3eff33a (diff)
New upstream version 1.9.1+repackupstream/1.9.1+repack
* Drop local hamlib copy (commit d1b545be). * Drop local boost copy (1.63.0).
Diffstat (limited to 'lib/qso50/unpackprop.f90')
-rw-r--r--lib/qso50/unpackprop.f9028
1 files changed, 28 insertions, 0 deletions
diff --git a/lib/qso50/unpackprop.f90 b/lib/qso50/unpackprop.f90
new file mode 100644
index 00000000..18cc1f56
--- /dev/null
+++ b/lib/qso50/unpackprop.f90
@@ -0,0 +1,28 @@
+subroutine unpackprop(n1,k,muf,ccur,cxp)
+
+ character ccur*4,cxp*2
+
+ muf=mod(n1,62)
+ n1=n1/62
+
+ k=mod(n1,11)
+ n1=n1/11
+
+ j=mod(n1,53)
+ n1=n1/53
+ if(j.eq.0) cxp='*'
+ if(j.ge.1 .and. j.le.26) cxp=char(64+j)
+ if(j.gt.26) cxp=char(64+j-26)//char(64+j-26)
+
+ j=mod(n1,53)
+ n1=n1/53
+ if(j.eq.0) ccur(2:2)='*'
+ if(j.ge.1 .and. j.le.26) ccur(2:2)=char(64+j)
+ if(j.gt.26) ccur(2:3)=char(64+j-26)//char(64+j-26)
+ j=n1
+ if(j.eq.0) ccur(1:1)='*'
+ if(j.ge.1 .and. j.le.26) ccur(1:1)=char(64+j)
+ if(j.gt.26) ccur=char(64+j-26)//char(64+j-26)//ccur(2:3)
+
+ return
+end subroutine unpackprop