- 积分
- 8
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2016-5-6
- 最后登录
- 1970-1-1
|
楼主 |
发表于 2019-3-21 17:58:10
|
显示全部楼层
修改后的编码将日数改成了字符型,但还是不对,循环出现了问题,望大佬指正,谢谢!
program main
real jingdu(1:78),weidu(1:78),tz(1:201),j1,j2,D(01:30)
character sta(80)*5,shici(1:7,1:4)*3
real::tmin(7),tmax(7),t1,t2
real::ttmin(7),ttmax(7),tt1,tt2
character(len=100) ::lujing,luu
CHARACTER(10)::t
Character(8)::str
Character(83)::str1,str2,str3,str4,str5,str6
Character(30)::D(ii),E(jj)
Character(2)::ii(01,30),jj(02,31)
CHARACTER(5)::z
CHARACTER(4)::Y,iii1
CHARACTER(2)::Y1,M,DD,jjj,kkk,iii
integer::yy,yy1,mm,dd1,st
integer:: ALIVE
CHARACTER(4)::zifu1
CHARACTER(18)::zifu2
CHARACTER(34)::zifu3
CHARACTER(17)::zifu4
CHARACTER(3)::zifu5
CHARACTER(32)::zifu6
CHARACTER(129)::zifu7
CHARACTER(34)::zifu10
CHARACTER(64)::zifuq
CHARACTER(54)::zifuh
CHARACTER(5)::zifu11
CHARACTER(5)::zhanhao1,zhanhao2,zhanhao3,zhanhao4,
&zhanhao5,zhanhao6
zhifu5=' 19'
! 读出系统时间
!CALL DATE_AND_TIME( DATE =str, TIME = t, ZONE = z)
!Y=str(1:4)
!Y1=str(3:4)
!M=str(5:6)
!D=str(7:8)
!print*,Y,'年',M,'月',D,'日'
str1='Z_SEVP_C_BFLZ_201901'//D(ii)//'213002_P_RFFC-SLMOF-201901'//
$E(jj)//'0000-16803.txt'
str2='Z_SEVP_C_BFLX_201901'//D(ii)//'224500_P_RFFC-SPCC-201901'//
$E(jj)//'0000-16812.txt'
!str1='Z_SEVP_C_BCLZ_20190312213002_P_RFFC-SLMOF-201903130000-16803
!&.txt'
!str2='Z_SEVP_C_BCLX_20190312083000_P_RFFC-SPCC-201903121200-16812.
!&txt'
open(00,file='F:\baowen\quanzh\'//str1)
open(01,file='F:\baowen\zhidaoyubao\zhongxintai\'//str1)
open(02,file='F:\baowen\zhidaoyubao\zhouju\zaoshang\'//str2)
do i=1,1772
read(01,*)
enddo
do n=1,51
read(02,*)
enddo
read(01,600)zifu6
write(00,600)zifu6
do i=1,7
do j=1,3
read(01,*)
enddo
read(01,800)t1max,t1min
do j=1,3
read(01,*)
enddo
read(01,800)t2max,t2min
if(t1max>t2max) then
tmax(i)=t1max
else
tmax(i)=t2max
end if
if(t1min>t2min) then
tmin(i)=t2min
else
tmin(i)=t1min
end if
read(02,*)
read(02,800)ttmax(i),ttmin(i)
write(00,889)tmin(i),tmax(i),ttmin(i),ttmax(i)
end do
close(01)
close(02)
write(00,998)'NNNN'
close(00)
100 format(a4)
200 format(a18)
300 format(a34)
400 format(a17)
500 format(a3)
600 format(a32)
700 format(a129)
800 format(64x,f5.1,1x,f5.1)
900 format(70x,f5.1)
901 format(59x,f5.1)
998 format(a4)
999 format(a31)
888 format(f5.1,1x,f5.1)
889 format(f5.1,1x,f5.1,1x,f5.1,1x,f5.1)
end |
|