- 积分
- 565
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2012-5-11
- 最后登录
- 1970-1-1
![未绑定新浪微博用户 新浪微博达人勋](source/plugin/sina_login/img/gray.png)
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
王老师:
用MICAPS第3类数据绘制等值线,代码执行到以下最后一行跳出,是这样写有问题么?老师指教。
string aFile = Application.StartupPath + @"\MICAPS\zht\surface\t0-p\" + sName
+ point.Argument.ToString() + ".000";
string aTitle = barEditItem1.EditValue + argument + Leibie;
if (!File.Exists(aFile))
{
MessageBox.Show("数据文件不存在!");
return;
}
MICAPS3DataInfo aDataInfo = new MICAPS3DataInfo();
aDataInfo.ReadDataInfo(aFile);
//Interpolate
GridDataPara aGDP = new GridDataPara();
aGDP.dataExtent.minX = 60;
aGDP.dataExtent.maxX = 140;
aGDP.dataExtent.minY = -20;
aGDP.dataExtent.maxY = 60;
aGDP.xNum = 80;
aGDP.yNum = 80;
GridInterpolation gridInterp = new GridInterpolation();
gridInterp.GridDataParaV = aGDP;
gridInterp.GridInterMethodV = GridInterMethod.IDW_Radius;
gridInterp.Radius = 2;
gridInterp.MinPointNum = 1;
double[] X = new double[1];
double[] Y = new double[1];
ContourDraw.CreateGridXY(gridInterp.GridDataParaV, ref X, ref Y);
StationData stationData = aDataInfo.GetStationData(4);//到此出现问题,直接跳出 |
|