How to make new grid from two diiferent data lat lon coordinates

有些话、适合烂在心里 提交于 2020-05-24 05:45:52

问题


I have two data sets A and B. Each data set have lat,lon and temperature but different lengths A=[200,3] B=[250,3]. I would like perform interpolate A and B and display the temperature(average temperature which are close lat lon from 2 sets). It would be great help someone know how to handle it. I tried from here https://stackoverflow.com/a/56628900/13258046

mesh1=df_A[['latitude(deg)','longititude(deg)']]
mesh2=df_D[['latitude(deg)','longititude(deg)']]

the shape of the data is

mesh1.shape: (9043, 2)
mesh2.shape: (8067, 2)

values_mesh1=df_A[['temparature)']]
values_mesh2=df_D[['temparature']]
tri = Delaunay(mesh1)  # Compute the triangulation
interpolator = LinearNDInterpolator(tri,values_mesh1)
values_new = interpolator(mesh2)

we are not considering values_mesh2=df_D[['temparatue']]? how to contribute values_mesh2?

来源:https://stackoverflow.com/questions/61098743/how-to-make-new-grid-from-two-diiferent-data-lat-lon-coordinates

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!