爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 2603|回复: 2

netcdf文件打不开,什么原因啊

[复制链接]

新浪微博达人勋

发表于 2013-10-13 22:26:59 | 显示全部楼层 |阅读模式

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

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

x
NetCDFDataInfo aDataInfo = new NetCDFDataInfo();
            
            OpenFileDialog aDlg = new OpenFileDialog();
            int num_1 = 0;
            int num_2 = 0;
            int numLev = 0;
            if (aDlg.ShowDialog() == DialogResult.OK)
            {
                comboBox1.Items.Clear();
                comboBox2.Items.Clear();
                comboBox3.Items.Clear();
                string aFile = aDlg.FileName;
                //aDataInfo.ReadDataInfo(aFile);
                aDataInfo.ReadDataInfo(aFile);
                              
                while (num_1 < aDataInfo.varList.Count)
                {
                    comboBox1.Items.Add(aDataInfo.varList[num_1].varName);
                    num_1++;
                }

            }
出错信息:未处理 System.IndexOutOfRangeException
  Message=Index was outside the bounds of the array.
  是不是netcdf 和netcdf413的原因啊?

132851700.lsx

8.31 MB, 下载次数: 7, 下载积分: 金钱 -5

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

新浪微博达人勋

发表于 2013-10-14 12:01:37 | 显示全部楼层
这种"NUWG" Conventions的NetCDF格式数据MeteoInfo目前还不支持
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2013-10-15 23:13:51 | 显示全部楼层
谢谢。这种"NUWG" Conventions的NetCDF格式数据以后要支持吧!
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

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

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

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