Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

background不为None时 出错 #127

Open
hehuan710 opened this issue Nov 7, 2021 · 0 comments
Open

background不为None时 出错 #127

hehuan710 opened this issue Nov 7, 2021 · 0 comments

Comments

@hehuan710
Copy link

hehuan710 commented Nov 7, 2021

为None时正常运行
grid0 = meb.interp_sg_idw(sta,grid0,nearNum = 4,background=0,effectR=20)

C:\ProgramData\Anaconda3\lib\site-packages\meteva\base\fun\interpolating.py in interp_gg_linear(grd, grid, used_coords, outer_value)
460 if (grd is None):
461 return None
--> 462 levels = grd["level"].values
463 times = grd["time"].values
464 dtimes = grd["dtime"].values

TypeError: 'int' object is not subscriptable

另外一个小问题(1)meb.combine_on_level_time_dtime_id(all_test,result,how="outer")
采用这种合并,如果前者有站不在后者里面,则前部分数据会丢失经纬度
(2)mpd.score_id 只有一行数据时会报错

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant