2013-05-16 12:02:00 -04:00
|
|
|
subroutine chkss2(ss2,freq,drift,schk)
|
2013-05-15 11:17:36 -04:00
|
|
|
|
|
|
|
real ss2(0:8,85)
|
|
|
|
real s(0:8,85)
|
|
|
|
include 'jt9sync.f90'
|
|
|
|
|
|
|
|
ave=sum(ss2)/(9*85)
|
2013-05-23 09:33:29 -04:00
|
|
|
if(freq+drift.eq.-999999.0) ave=0. !To silence compiler warning
|
2013-05-15 11:17:36 -04:00
|
|
|
s=ss2/ave-1.0
|
|
|
|
|
|
|
|
s1=0.
|
2015-02-27 10:38:24 -05:00
|
|
|
do i=1,16
|
|
|
|
j=ii(i)
|
|
|
|
if(j.le.85) s1=s1 + s(0,j)
|
2013-05-15 11:17:36 -04:00
|
|
|
enddo
|
2015-02-27 10:38:24 -05:00
|
|
|
schk=s1/16.0
|
2013-05-15 11:17:36 -04:00
|
|
|
|
|
|
|
return
|
|
|
|
end subroutine chkss2
|
|
|
|
|