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/decode0.f90 | |
| parent | 310d05acf2c9233f7e336ae7dd9ffb7b54ca4e62 (diff) | |
New upstream version 3.0.0~rc1+repackupstream/3.0.0_rc1+repack
Diffstat (limited to 'qmap/libqmap/decode0.f90')
| -rwxr-xr-x | qmap/libqmap/decode0.f90 | 107 |
1 files changed, 54 insertions, 53 deletions
diff --git a/qmap/libqmap/decode0.f90 b/qmap/libqmap/decode0.f90 index a342adb4..2444560a 100755 --- a/qmap/libqmap/decode0.f90 +++ b/qmap/libqmap/decode0.f90 @@ -1,53 +1,54 @@ -subroutine decode0(dd,ss,savg) - - use timer_module, only: timer - parameter (NSMAX=60*96000,NFFT=32768) - - real*4 dd(2,NSMAX),ss(400,NFFT),savg(NFFT) - real*8 fcenter - integer offset - integer hist(0:32768) - logical*1 bAlso30 - character mycall*12,hiscall*12,mygrid*6,hisgrid*6,datetime*20 - character mycall0*12,hiscall0*12,hisgrid0*6 - character*64 result - common/decodes/ndecodes,ncand2,nQDecoderDone,nWDecoderBusy, & - nWTransmitting,kHzRequested,result(50) - common/npar/fcenter,nutc,fselected,mousedf,mousefqso,nagain, & - ndepth,ndiskdat,ntx60,newdat,nfa,nfb,nfcal,nfshift, & - ntx30a,ntx30b,ntol,n60,nCFOM,nfsample,ndop58,nmode, & - ndop00,nsave,max_drift,offset,nhsym,mycall,mygrid, & - hiscall,hisgrid,datetime,junk1,junk2,bAlso30 - save - - nQDecoderDone=0 - if(newdat.ne.0) then - nz=96000*nhsym*0.15 - hist=0 - do i=1,nz - j1=min(abs(dd(1,i)),32768.0) - hist(j1)=hist(j1)+1 - j2=min(abs(dd(2,i)),32768.0) - hist(j2)=hist(j2)+1 - enddo - m=0 - do i=0,32768 - m=m+hist(i) - if(m.ge.2*nz) go to 10 - enddo -10 rmsdd=1.5*i - endif - - mycall0=mycall - hiscall0=hiscall - hisgrid0=hisgrid - - call timer('qmapa ',0) - call qmapa(dd,ss,savg,newdat,nutc,fcenter,ntol,nfa,nfb, & - mousedf,mousefqso,nagain,ntx30a,ntx30b,nfshift,max_drift,offset, & - nfcal,mycall,hiscall,hisgrid,nfsample,nmode,ndepth, & - datetime,ndop00,fselected,bAlso30,nhsym,NCFOM) - call timer('qmapa ',1) - - return -end subroutine decode0 +subroutine decode0(dd,ss,savg)
+
+ use timer_module, only: timer
+ parameter (NSMAX=60*96000,NFFT=32768)
+
+ real*4 dd(2,NSMAX),ss(400,NFFT),savg(NFFT)
+ real*8 fcenter
+ integer offset
+ integer hist(0:32768)
+ logical*1 bAlso30
+ character mycall*12,hiscall*12,mygrid*6,hisgrid*6,datetime*20
+ character mycall0*12,hiscall0*12,hisgrid0*6
+ character*72 result
+ common/decodes/ndecodes,ncand2,nQDecoderDone,nWDecoderBusy, &
+ nWTransmitting,kHzRequested,result(50)
+ common/npar/fcenter,nutc,fselected,mousedf,mousefqso,nagain, &
+ ndepth,ndiskdat,ntx60,newdat,nfa,nfb,nfcal,nfshift, &
+ ntx30a,ntx30b,ntol,n60,nCFOM,nfsample,ndop58,nmode, &
+ ndop00,nsave,max_drift,offset,nhsym,mycall,mygrid, &
+ hiscall,hisgrid,datetime,junk1,junk2,bAlso30
+ save
+
+ nQDecoderDone=0
+ if(newdat.ne.0) then
+ nz=96000*nhsym*0.15
+ hist=0
+ do i=1,nz
+ j1=min(abs(dd(1,i)),32768.0)
+ hist(j1)=hist(j1)+1
+ j2=min(abs(dd(2,i)),32768.0)
+ hist(j2)=hist(j2)+1
+ enddo
+ m=0
+ do i=0,32768
+ m=m+hist(i)
+ if(m.ge.2*nz) go to 10
+ enddo
+10 rmsdd=1.5*i
+ endif
+
+ mycall0=mycall
+ hiscall0=hiscall
+ hisgrid0=hisgrid
+
+ if(sum(dd).eq.0.0 .or. sum(ss).eq.0.0 .or. sum(savg).eq.0.0) return
+ call timer('qmapa ',0)
+ call qmapa(dd,ss,savg,newdat,nutc,fcenter,ntol,nfa,nfb, &
+ mousedf,mousefqso,nagain,ntx30a,ntx30b,nfshift,max_drift,offset, &
+ nfcal,mycall,hiscall,hisgrid,nfsample,nmode,ndepth, &
+ datetime,ndop00,fselected,bAlso30,nhsym,NCFOM)
+ call timer('qmapa ',1)
+
+ return
+end subroutine decode0
|
