- 积分
- 228
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2013-6-8
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
读取一个1G大小的wrfout文件时,变量显示、画图等都没有问题。
读取一个4G大小的wrfout文件则出问题,不显示变量,也不能画图。
请问可能是什么原因呢?
多谢。
数据信息显示如下:
File Name: E:\flexpart\wrfout_d01_2017-09-03-00.nc
File type: null (null)
Dimensions: 0
Global Attributes:
Variations: 0
脚本里报错 :
三月 15, 2018 4:57:22 下午 org.meteoinfo.data.meteodata.netcdf.NetCDFDataInfo readDataInfo
严重: null
java.io.IOException: java.io.IOException: Misformed netCDF file - dim magic number wrong E:/flexpart/wrfout_d01_2017-09-03-00.nc
at ucar.nc2.NetcdfFile.open(NetcdfFile.java:427)
at ucar.nc2.dataset.NetcdfDataset.openOrAcquireFile(NetcdfDataset.java:755)
at ucar.nc2.dataset.NetcdfDataset.openFile(NetcdfDataset.java:572)
at org.meteoinfo.data.meteodata.netcdf.NetCDFDataInfo.readDataInfo(NetCDFDataInfo.java:341)
at org.meteoinfo.data.meteodata.MeteoDataInfo.openNetCDFData(MeteoDataInfo.java:717)
at org.meteoinfo.data.meteodata.MeteoDataInfo.openData(MeteoDataInfo.java:458)
at sun.reflect.GeneratedMethodAccessor30.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:188)
at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:206)
at org.python.core.PyObject.__call__(PyObject.java:515)
at org.python.core.PyObject.__call__(PyObject.java:519)
at org.python.core.PyMethod.__call__(PyMethod.java:156)
at mipylib.dataset.midata$py.addfile$5(D:/软件/MeteoInfo/pylib/mipylib/dataset/midata.py:142)
at mipylib.dataset.midata$py.call_function(D:/软件/MeteoInfo/pylib/mipylib/dataset/midata.py)
at org.python.core.PyTableCode.call(PyTableCode.java:171)
at org.python.core.PyBaseCode.call(PyBaseCode.java:308)
at org.python.core.PyBaseCode.call(PyBaseCode.java:132)
at org.python.core.PyFunction.__call__(PyFunction.java:413)
at org.python.pycode._pyx82.f$0(<iostream>:17)
at org.python.pycode._pyx82.call_function(<iostream>)
at org.python.core.PyTableCode.call(PyTableCode.java:171)
at org.python.core.PyCode.call(PyCode.java:18)
at org.python.core.Py.runCode(Py.java:1614)
at org.python.util.PythonInterpreter.execfile(PythonInterpreter.java:296)
at org.python.util.PythonInterpreter.execfile(PythonInterpreter.java:291)
at org.meteoinfo.laboratory.gui.PythonInteractiveInterpreter.execfile(PythonInteractiveInterpreter.java:123)
at org.meteoinfo.laboratory.gui.ConsoleDockable$1.doInBackground(ConsoleDockable.java:296)
at org.meteoinfo.laboratory.gui.ConsoleDockable$1.doInBackground(ConsoleDockable.java:272)
at javax.swing.SwingWorker$1.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at javax.swing.SwingWorker.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: Misformed netCDF file - dim magic number wrong E:/flexpart/wrfout_d01_2017-09-03-00.nc
at ucar.nc2.iosp.netcdf3.N3header.read(N3header.java:148)
at ucar.nc2.iosp.netcdf3.N3iosp.open(N3iosp.java:445)
at ucar.nc2.NetcdfFile.<init>(NetcdfFile.java:1560)
at ucar.nc2.NetcdfFile.open(NetcdfFile.java:835)
at ucar.nc2.NetcdfFile.open(NetcdfFile.java:424)
... 35 more
|
|