mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-03 07:51:16 -05:00
2c17544f3f
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/WSJT/trunk@1 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
19 lines
308 B
Fortran
19 lines
308 B
Fortran
subroutine blanker(d2d,jz)
|
|
|
|
integer*2 d2d(jz)
|
|
|
|
avg=700.
|
|
threshold=5.0
|
|
do i=1,jz
|
|
xmag=abs(d2d(i))
|
|
xmed=0.75*xmed + 0.25*d2d(i)
|
|
avg=0.999*avg + 0.001*xmag
|
|
if(xmag.gt.threshold*avg) then
|
|
! d2d(i)=nint(xmed)
|
|
d2d(i)=0
|
|
endif
|
|
enddo
|
|
|
|
return
|
|
end subroutine blanker
|