[Fortran] 纯文本查看 复制代码
SUBROUTINE xdw_READTXT(FID,FNAME,SKIPHEAD,TEMP_READTXT)
USE SET_PARAMETER
IMPLICIT NONE
INTEGER ::I = 1,J
INTEGER ::FID
CHARACTER(LEN=100)::FNAME
REAL(KIND=8),ALLOCATABLE::TEMP_READTXT(:,:) !临时存储中间数据
INTEGER::HERE_STAT
INTEGER::SKIPHEAD
[Fortran] 纯文本查看 复制代码
real*8,ALLOCATABLE::sp(:,:),z(:,:)
real*8,ALLOCATABLE::q(:,:),t(:,:)
allocate(sp(360,720),STAT = AOS)
allocate(z(360,720),STAT = AOS)
allocate(t(259200,720),STAT = AOS)
allocate(q(259200,720),STAT = AOS)
call xdw_READTXT(11,'D:\Temp\2019010100sp_nofirst.txt',0,sp)
call xdw_READTXT(11,'D:\Temp\2019010100z_nofirst.txt',0,z)
call xdw_READTXT(11,"D:\Temp\2019010100q_nofirst.txt",0,q)
call xdw_READTXT(11,'D:\Temp\2019010100t_nofirst.txt',0,t)