爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 3597|回复: 4

MeteoInfo 对读取4G左右大小的wrfout文件有问题吗?

[复制链接]

新浪微博达人勋

发表于 2018-3-15 17:36:33 | 显示全部楼层 |阅读模式

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

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

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


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

新浪微博达人勋

发表于 2018-3-15 22:40:01 | 显示全部楼层
从错误信息来看不是文件大小的问题,可能是netCDF生成的有问题。
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2019-5-24 10:09:02 | 显示全部楼层
MeteoInfo 发表于 2018-3-15 22:40
从错误信息来看不是文件大小的问题,可能是netCDF生成的有问题。

请问版主,那要怎么解决呢?是WRF数据跑的不对吗?
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

发表于 2019-5-24 17:09:47 | 显示全部楼层
MeteoInfo 发表于 2018-3-15 22:40
从错误信息来看不是文件大小的问题,可能是netCDF生成的有问题。

请问版主,那要怎么解决呢?是WRF数据跑的不对吗?
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

发表于 2019-5-24 17:16:09 | 显示全部楼层
请问楼主问题解决了吗?晚辈也碰到一样的问题,还望前辈指点一二,不胜感激
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

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

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

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