diff options
| author | tony mancill <tmancill@debian.org> | 2023-09-03 19:46:51 -0700 |
|---|---|---|
| committer | tony mancill <tmancill@debian.org> | 2023-09-03 19:46:51 -0700 |
| commit | 1fc24d9474229c0f382da5def559f5de7b903f86 (patch) | |
| tree | 8a745660a498dbd6209a198679b821799f107024 /qmap/libqmap/zplot.f90 | |
| parent | 65e5ae53a0358d9a3d040b13e0cf84556a7b4812 (diff) | |
| parent | 393a486ee1d7e308a49f8e0b8c3a4b2f43223248 (diff) | |
Update upstream source from tag 'upstream/2.7.0_rc2+repack'
Update to upstream version '2.7.0~rc2+repack'
with Debian dir c24f4e90e5ec8585c79007453c538689dc460e86
Diffstat (limited to 'qmap/libqmap/zplot.f90')
| -rwxr-xr-x | qmap/libqmap/zplot.f90 | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/qmap/libqmap/zplot.f90 b/qmap/libqmap/zplot.f90 new file mode 100755 index 00000000..a10c85c8 --- /dev/null +++ b/qmap/libqmap/zplot.f90 @@ -0,0 +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
|
