diff options
| author | Christoph Berg <myon@debian.org> | 2025-09-15 23:04:33 +0200 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2025-09-15 23:04:33 +0200 |
| commit | e1c678ef00f0159bbeb5571e5ebb0d4697121334 (patch) | |
| tree | 6547edef81a62a812a4d0f64e03fda226b5f0a7e /qmap/libqmap/zplot.f90 | |
| parent | b9daa22c4c3ad51cd4bc0ef624a19f21d01c9305 (diff) | |
| parent | 0a13f1fdb9928b6d012569dd65f7f6ef18fac2f8 (diff) | |
Update upstream source from tag 'upstream/3.0.0_rc1+repack'
Update to upstream version '3.0.0~rc1+repack'
with Debian dir 68c212e23136fecf9ebc6f12ff355579224d27ee
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
|
