[Fortran] 纯文本查看 复制代码
do k=1,linenum_max
read(unit=num,FMT='(I5,X,F7.3)', IOSTAT=res), nouse, read_data(k,i)
if(res/=0)then
write(*,*)'-999.9'
end if
write(*,*),read_data(k,i)
end do
close(unit=num)
end do
[Fortran] 纯文本查看 复制代码
open(unit=12,file='windspeed.txt')
do k=1,filenum_read
do i=1,filenum_valid
write(12,30)read_data(k,i)
end do
end do
close(unit=12)
30 format(60F7.3,/)]
[Fortran] 纯文本查看 复制代码
open(unit=12,file='windspeed.txt')
do k=1,filenum_read
write(12,30)read_data(k,1:filenum_valid)
end do
close(unit=12)
30 format(60F7.3,/)