在Fortran 90中读取格式化的数据文件

时间:2014-07-29 19:56:43

标签: fortran fortran90 ioerror

我有一个文件要读取其结构:

26.0  24773  -55.4  -86.8 1   0.01 60 27  617.7  617.8  617.
24.2  25230  -55.7  -86.7 1   0.01 64 22  629.7  629.8  629.    

电台信息和探测指数

我有兴趣只阅读这个号码。我使用以下格式:

read(333,10) a(i),b(i)...
10 format(1x,f6.1,2x,i5,...
read(333,iostat=stat) Station

if(stat/=0)then
else
endif

if(stat==0)exit

从此出现错误:

forrtl: severe (64): input conversion error, unit 333, file

0 个答案:

没有答案
相关问题