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

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 11658|回复: 2

[其他] ncl使用双线性插值出错误,请教大家怎么解决!!

[复制链接]

新浪微博达人勋

发表于 2020-4-24 17:27:56 | 显示全部楼层 |阅读模式

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

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

x
f=addfile("./2020042000_024.grib2","r")
lat = f->lat_0
lon = f->lon_0


ncfile    = addfile(filepath + filename,"r")
pre       = ncfile->rain(0,:,:)
latitude  = ncfile->latitude
longitude = ncfile->longitude
pre@_FillValue  = -999.0


APCP=linint2_Wrap(longitude,longitude,pre,False,lon,lat,0)
运行的时候就出现这个错误

fatal:linint2: The rightmost dimensions of fi must be nyi x nxi, where nyi and nxi are the lengths of yi and xi respectively
fatal:["Execute.c":8575]:Execute: Error occurred at or near line 4868 in file $NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl



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

新浪微博达人勋

发表于 2021-4-27 15:37:11 | 显示全部楼层
请问解决了吗?今天遇到了同样的问题
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

发表于 2021-4-27 22:54:24 | 显示全部楼层
linint2_Wrap(longitude,longitude,pre,False,lon,lat,0)
函数前两个参数你都写了经度啊,前后分辨率不匹配
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

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

本版积分规则

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

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

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