js8call/.svn/pristine/27/276d5d37ec400f05da89af5fa313eb2098e5ed8c.svn-base

19 lines
284 B
Plaintext
Raw Normal View History

2018-02-08 21:28:33 -05:00
subroutine flat2(s,nz,ref)
parameter (NSMAX=6827)
real s(NSMAX)
real ref(NSMAX)
nsmo=10
ia=nsmo+1
ib=nz-nsmo-1
do i=ia,ib
call pctile(s(i-nsmo),2*nsmo+1,5,ref(i))
enddo
ref(:ia-1)=ref(ia)
ref(ib+1:)=ref(ib)
return
end subroutine flat2