Minor changes in scaling of spectra for waterfall.

Corrected typo in unix code.


git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@3197 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Joe Taylor 2013-04-18 20:12:04 +00:00
parent 0efd7824f0
commit 2a2f4916a0
2 changed files with 11 additions and 9 deletions

View File

@ -134,17 +134,19 @@ subroutine symspec(k,ntrperiod,nsps,ingain,nb,nbslider,pxdb,s,red, &
999 continue
call pctile(s,iz,50,xmed0)
fac0=1.0/max(xmed0,0.006)
! ave0=sum(s(1:iz))/iz
! fac0=1.0/max(ave0,0.006)
fac00=0.35
npct=20
call pctile(s,iz,npct,xmed0)
fac0=fac00/max(xmed0,0.006)
s(1:iz)=fac0*s(1:iz)
call pctile(ssum,iz,50,xmed1)
fac1=1.0/max(xmed1,0.006*ihsym)
! ave1=sum(ssum(1:iz))/iz
! fac1=1.0/max(ave1,0.006*ihsym)
call pctile(ssum,iz,npct,xmed1)
fac1=fac00/max(xmed1,0.006*ihsym)
savg(1:iz)=fac1*ssum(1:iz)
call redsync(ss,ntrperiod,ihsym,iz,red)
! write(67,3101) ihsym,k,xmed0,fac0,xmed1,fac1
!3101 format(i4,i8,4e12.3)
! call flush(67)
return
end subroutine symspec

View File

@ -1342,7 +1342,7 @@ void MainWindow::readFromStdout() //readFromStdout
#endif
#ifdef unix
if(b and !m_diskData and and okToPost) {
if(b and !m_diskData and okToPost) {
int i1=msg.indexOf(" ");
QString c2=msg.mid(i1+1);
int i2=c2.indexOf(" ");