- 积分
- 1143
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2013-4-24
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
程序
!C THIS IS A PROGRAM OF WAVELET ANALYSIS BY USING
! GAUSS REAL OF MCXICAN HAT
PROGRAM WA
PARAMETER (N=61,M=20,NMAX=N*3,NS=0,KS=1)
DIMENSION F(M,N),X(N),XM(NMAX),IT(M)
REAL D,Y,Z
! *****************************************************
! * N: SAMPLE SIZE *
! * M: NUMBER OF TIME SCALE *
! * NS: STARTING SCALE *
! * KS: INTERVAL OF SCALE *
! * X: PRIMARY TIME SERIES *
! * F: WAVELET TRANSFORMATION COEFFICIENTS *
! * IT: EXPANDED AND CONTRACTED SCALES *
! *****************************************************
WAVE(Y)=(1.0-16.0*Y*Y)*EXP(-8.0*Y*Y)
OPEN(6,FILE='c:\lw\pr_qypj.grd',form='binary')
READ(6,*)(X(I),I=1,N)
DO I=1,N
XM(I)=X(N+1-I)
XM(N+I)=X(I)
XM(2*N+I)=X(N+1-I)
enddo
DO I=1,M
IT(I)=I*KS+NS
enddo
DO J=1,N
F(I,J)=0.0
enddo
DO I=1,M
D=FLOAT(IT(I))
II=IT(I)
DO J=N+1,2*N
DO K=J-II,J+II
Z=(FLOAT(K)-FLOAT(J))/D
F(I,J-N)=F(I,J-N)+WAVE(Z)*XM(K)/SQRT(D)
enddo
enddo
enddo
OPEN(3,FILE='c:\lw\Wavelet.txt',STATUS='NEW')
WRITE(3,70)
70 FORMAT(20X,'*****WAVELET ANALYSIS*****'/)
WRITE(3,80)
80 FORMAT(2X,'NO.',3X,'SCALE',4X,'COE.')
DO I=1,M
DO J=1,N
WRITE(3,110)J,IT(I),F(I,J)
110 FORMAT(2X,I3,3X,I3,3X,F8.2)
enddo
enddo
STOP
END
!!-------------------------------END---------------------------------
最后运行会出下面的问题,求大神帮忙,谢谢,,,
forrtl: severe (257): formatted I/O to unit open for unformatted transfers, unit
6, file E:\lunwen\qypj.grd
|
|