爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 5204|回复: 2

ncl读取txt数据报错

[复制链接]

新浪微博达人勋

发表于 2016-6-4 11:30:19 | 显示全部楼层 |阅读模式

登录后查看更多精彩内容~

您需要 登录 才可以下载或查看,没有帐号?立即注册 新浪微博登陆

x
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"  
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"  
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"

begin
x= addfile("/home/NCEP/heat/TOMS/1980/L3_aersl_n7t_19800102.txt","r")

           
print(x)
end


warning:["FileSupport.c":3026]:NCL does not know anything about file suffix <txt>.
But NCL will try its best to figure out the file format.

fatal:An internal error has occurred. The file format requested does not appear to be supported, could not open (/home/fanweiwei/NCEP/heat/TOMS/1980/L3_aersl_n7t_19800102.txt)
请问这是为什么啊,谢谢~



密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2016-6-4 13:24:30 | 显示全部楼层
txt文本格式的文件不能用addfile这个函数来读取,要用asciiread函数来读。
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2016-6-4 17:21:07 | 显示全部楼层
御风者 发表于 2016-6-4 13:24
txt文本格式的文件不能用addfile这个函数来读取,要用asciiread函数来读。

哦哦好的谢谢了~
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

Copyright ©2011-2014 bbs.06climate.com All Rights Reserved.  Powered by Discuz! (京ICP-10201084)

本站信息均由会员发表,不代表气象家园立场,禁止在本站发表与国家法律相抵触言论

快速回复 返回顶部 返回列表