1 c===========================================================================
3 c This file is part of TISEAN
5 c Copyright (c) 1998-2007 Rainer Hegger, Holger Kantz, Thomas Schreiber
7 c TISEAN is free software; you can redistribute it and/or modify
8 c it under the terms of the GNU General Public License as published by
9 c the Free Software Foundation; either version 2 of the License, or
10 c (at your option) any later version.
12 c TISEAN is distributed in the hope that it will be useful,
13 c but WITHOUT ANY WARRANTY; without even the implied warranty of
14 c MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 c GNU General Public License for more details.
17 c You should have received a copy of the GNU General Public License
18 c along with TISEAN; if not, write to the Free Software
19 c Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 c===========================================================================
23 c local slopes from c2
24 c author T. Schreiber (1998)
25 c===========================================================================
28 dimension e(meps), c(meps)
29 character*72 file, fout, aline
33 call whatido("local slopes from c1/c2 correlation sum data",iverb)
35 isout=igetout(fout,iverb)
36 if(nstrings().eq.0) call usage()
37 call nthstring(1,file)
38 call infile(file,iunit,iverb)
39 if(isout.eq.1) call addsuff(fout,file,"_d")
40 call outfile(fout,iunit2,iverb)
41 1 read(iunit,'(a)',end=999) aline
42 4 if(aline(1:1).ne."#") goto 1
44 . read(aline(index(aline,"m=")+2:72),'(i20)',err=1) m
46 2 read(iunit,'(a)') aline
47 if(aline(1:72).eq." ") goto 3
48 read(aline,*,err=999,end=999) ee, cc
54 3 write(iunit2,'(4h#m= ,i5)') m
56 call slope(e(j-iav),c(j-iav),2*iav+1,s)
57 30 if(s.gt.0.) write(iunit2,*) exp(0.5*(e(j+iav)+e(j-iav))), s
64 subroutine slope(x,y,n,a)
74 20 a=a+y(i)*(x(i)-sx/n)
83 . "[-a# -o outfile -V# -h] file")
84 call popt("a","average using -#,...,+# [1]")