summaryrefslogtreecommitdiff
path: root/map65/libm65/zplot.f90
diff options
context:
space:
mode:
authorChristoph Berg <christoph.berg@credativ.de>2022-08-23 10:23:31 +0200
committerChristoph Berg <christoph.berg@credativ.de>2022-08-23 10:23:31 +0200
commit0e579a45e2e5823f90e2632073749583cd15fa0d (patch)
tree5e709e13d41c8ea0da0968fb6c4566057b4b7909 /map65/libm65/zplot.f90
parent28d1767618141cd6481de2e93e36e3dfa555d4b4 (diff)
parent2d1068e60bce7ae1fff11623454900e8cee956b1 (diff)
Update upstream source from tag 'upstream/2.6.0_rc3+repack'
Update to upstream version '2.6.0~rc3+repack' with Debian dir 9ee8bc3a4b60bb88f4d57c7d1f2d37dbc1632144
Diffstat (limited to 'map65/libm65/zplot.f90')
-rwxr-xr-xmap65/libm65/zplot.f9068
1 files changed, 34 insertions, 34 deletions
diff --git a/map65/libm65/zplot.f90 b/map65/libm65/zplot.f90
index 55aa3c6f..a10c85c8 100755
--- a/map65/libm65/zplot.f90
+++ b/map65/libm65/zplot.f90
@@ -1,34 +1,34 @@
-subroutine zplot(amp,nz,jj,ave,rms)
-
- real amp(nz)
- character*1 line(100),mark(0:6)
- data mark/' ',' ','.','-','+','X','$'/
-
- sum=0.
- smax=0.
- do i=1,nz
- sum=sum+amp(i)
- if(amp(i).gt.smax) then
- smax=amp(i)
- ipk=i
- endif
- enddo
- ave=(sum-smax)/(nz-1)
- sq=0.
- do i=1,nz
- if(i.ne.ipk) sq=sq+(amp(i)-ave)**2
- enddo
- rms=sqrt(sq/(nz-2))
-
- do i=1,nz
- n=(amp(i)-ave)/rms
-! n=(amp(i)-ave)/0.33
- if(n.lt.0) n=0
- if(n.gt.6) n=6
- line(i)=mark(n)
- enddo
- write(89,1010) jj,0.01*ave,0.01*rms,(line(i),i=1,nz)
-1010 format(i3,2f6.1,1x,100a1)
-
- return
-end subroutine zplot
+subroutine zplot(amp,nz,jj,ave,rms)
+
+ real amp(nz)
+ character*1 line(100),mark(0:6)
+ data mark/' ',' ','.','-','+','X','$'/
+
+ sum=0.
+ smax=0.
+ do i=1,nz
+ sum=sum+amp(i)
+ if(amp(i).gt.smax) then
+ smax=amp(i)
+ ipk=i
+ endif
+ enddo
+ ave=(sum-smax)/(nz-1)
+ sq=0.
+ do i=1,nz
+ if(i.ne.ipk) sq=sq+(amp(i)-ave)**2
+ enddo
+ rms=sqrt(sq/(nz-2))
+
+ do i=1,nz
+ n=(amp(i)-ave)/rms
+! n=(amp(i)-ave)/0.33
+ if(n.lt.0) n=0
+ if(n.gt.6) n=6
+ line(i)=mark(n)
+ enddo
+ write(89,1010) jj,0.01*ave,0.01*rms,(line(i),i=1,nz)
+1010 format(i3,2f6.1,1x,100a1)
+
+ return
+end subroutine zplot