34 use sufr_kinds
, only: double
35 use sufr_system
, only: syntax_quit
36 use sufr_constants
, only: set_sufr_constants
37 use sufr_numerics
, only: deq,dne
41 real(double) :: dt,dh,rdh, hmax,hsum,hsum1,hsum2
42 character :: infile1*(99),infile2*(99)
44 call set_sufr_constants()
46 if(command_argument_count().eq.2)
then
47 call get_command_argument(1, infile1)
48 call get_command_argument(2, infile2)
50 call syntax_quit(
'<WFfile1> <WFfile2>', 0)
53 call
match_wfs_file(trim(infile1),trim(infile2), ln, dt,dh,hmax,hsum1,hsum2,rdh,lnr)
61 write(*,
'(5(A,ES12.5))')
' Avg h: ',hsum/dble(2*ln),
', avg.dh/avg.h: ', dh/hsum
64 write(*,
'(2(A,ES12.5),A,F10.5)')
' Avg.dt: ',dt/dble(ln)
65 if(deq(dt,0.d0) .and. deq(dh,0.d0))
write(*,
'(/,A)')
' The two waveforms are identical'
66 if(dne(dt,0.d0))
write(*,
'(/,A)')
' There is a time offset'
subroutine match_wfs_file(ipfile1, ipfile2, ln, dt, dh, hmax, hsum1, hsum2, rdh, lnr)
Match the time-domain waveforms in two specified files.
program gw_match_wfs
Match the two waveforms in specified files.