- 积分
- 2273
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2015-4-8
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
各位,我在windows环境下用ncl读取txt文件时出错:
读取命令:fi1 = "E:/NCL/NCL-Picture/XY-polts3/steady-rainy-days2.txt"
fi2 = "E:/NCL/NCL-Picture/XY-polts3/steady-rainy-nums2.txt"
;E:\NCL\NCL-Picture\XY-polts
nrow1 = numAsciiRow(fi1) ;row = 66
print(nrow1)
ncol1 = numAsciiCol(fi1) ;col = 2
print(ncol1)
nrow2 = numAsciiRow(fi2)
ncol2 = numAsciiCol(fi2)
data1 = asciiread(fi1,(/66,2/),"float") ;data1 = (39, 3)
data2 = asciiread(fi2,(/66,2/),"float")
错误提示:
wc: E:/NCL/NCL-Picture/XY-polts3/steady-rainy-days2.txt: No such file or directory
warning:toint: A bad value was passed (string); input strings must contain numeric digits, replacing with missing value
head: 无法打开"E:/NCL/NCL-Picture/XY-polts3/steady-rainy-days2.txt" 读取数据: No such file or directory
wc: E:/NCL/NCL-Picture/XY-polts3/steady-rainy-nums2.txt: No such file or directory
warning:toint: A bad value was passed (string); input strings must contain numeric digits, replacing with missing value
head: 无法打开"E:/NCL/NCL-Picture/XY-polts3/steady-rainy-nums2.txt" 读取数据: No such file or directory
fatal:asciiread: Unable to open input file (E:/NCL/NCL-Picture/XY-polts3/steady-rainy-days2.txt)
fatal:["Execute.c":8578]:Execute: Error occurred at or near line 12 in file /cygdrive/e/NCL/NCL-Program/XY-plots-3.ncl
数据文件如图。。。看错误提示他说有字符串,但我检查过了,没有。。。后来以为是txt直接从excel拷出来的原因,用fortran重写了一遍,还是不行。。。这个语句原来可以读取,我有画过图,但不知道这次为什么不行了。。。求助,谢谢各位啦~~
|
-
|