diff options
| author | Iain R. Learmonth <irl@debian.org> | 2015-10-18 17:55:15 +0100 |
|---|---|---|
| committer | Iain R. Learmonth <irl@debian.org> | 2015-10-18 17:55:15 +0100 |
| commit | c720a3d55c5ec832c29cb7ce50b6fb4b70c55b11 (patch) | |
| tree | ecf89ef5fb2aa173119808e84e6d2e4cc15b962c /lib/flat2.f90 | |
Imported Upstream version 1.1.r3496upstream/1.1.r3496
Diffstat (limited to 'lib/flat2.f90')
| -rw-r--r-- | lib/flat2.f90 | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/flat2.f90 b/lib/flat2.f90 new file mode 100644 index 00000000..cebd989f --- /dev/null +++ b/lib/flat2.f90 @@ -0,0 +1,18 @@ +subroutine flat2(s,nz,ref)
+
+ parameter (NSMAX=6827)
+ real s(NSMAX)
+ real ref(NSMAX)
+
+ nsmo=10
+ ia=nsmo+1
+ ib=nz-nsmo-1
+ do i=ia,ib
+ call pctile(s(i-nsmo),2*nsmo+1,5,ref(i))
+ enddo
+
+ ref(:ia-1)=ref(ia)
+ ref(ib+1:)=ref(ib)
+
+ return
+end subroutine flat2
|
