请选择 进入手机版 | 继续访问电脑版
爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 3720|回复: 0

[程序设计] 双线性插值,0.1度插值成0.025度,大神看看出错原因

[复制链接]

新浪微博达人勋

发表于 2017-5-19 18:05:44 | 显示全部楼层 |阅读模式

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

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

x
fil1 = ('3B-DAY.MS.MRG.3IMERG.20140420-S000000-E235959.V04.nc4');
prep=ncread(fil1,'precipitationCal');
lat=ncread(fil1,'lat');
lon=ncread(fil1,'lon');
[xx,yy]=meshgrid(lat,lon);
x=-89.95:0.025:89.95;
y=-179.95:0.025:179.95;
[xi,yi]=meshgrid(x,y);
vq=interp2(xx,yy,prep,xi,yi);



error:
Error using griddedInterpolant
The grid vectors do not define a grid of points that match the given values.

Error in interp2>makegriddedinterp (line 228)
    F = griddedInterpolant(varargin{:});

Error in interp2 (line 136)
        F = makegriddedinterp(X, Y, V, method,extrap);

Error in bilinear (line 9)
vq=interp2(xx,yy,prep,xi,yi);

密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

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

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

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