- 积分
- 1102
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2014-11-24
- 最后登录
- 1970-1-1
|
楼主 |
发表于 2017-2-14 06:44:32
|
显示全部楼层
只有这一处需要改吗?改完之后读取该文件显示错误。
>>> outf = addfile(outfn)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/fankai/Downloads/MeteoInfo/pylib/mipylib/minum.py", line 520, in addfile
meteodata.openData(fname, keepopen)
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Integer.parseInt(Integer.java:580)
at java.lang.Short.parseShort(Short.java:118)
at java.lang.Short.parseShort(Short.java:144)
at org.meteoinfo.data.meteodata.arl.ARLDataInfo.readDataLabel(ARLDataInfo.java:528)
at org.meteoinfo.data.meteodata.arl.ARLDataInfo.readDataInfo(ARLDataInfo.java:451)
at org.meteoinfo.data.meteodata.MeteoDataInfo.openARLData(MeteoDataInfo.java:506)
at org.meteoinfo.data.meteodata.MeteoDataInfo.openData(MeteoDataInfo.java:456)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
java.lang.NumberFormatException: java.lang.NumberFormatException: For input string: "" |
|