如何栅格化每日地理数据表?

问题描述

我有一个全局地理数据表,它有 5 列:Lon、Lat、Year、Day、X。我想对其进行光栅化并将其保存为 tif 文件。我的最终目标是在 tif 文件中将“X”保存为 lon、lat、天的函数:X[Lon、Lat、Days]。我写了以下代码

    figure = figure(figsize=(7,5),dpi=100)
    ax=figure.add_subplot(111)
    canvas = figureCanvasTkAgg(figure,master=self.subframe_plots)
    canvas.draw()
    self.widget_main= canvas.get_tk_widget()
    self.widget_main.grid(row=8,column=1)
    # navigation toolbar
    toolbarFrame = Frame(master= self.subframe_plots)
    toolbarFrame.grid(row=11,column=1)
    self.toolbar_main = NavigationToolbar2Tk(canvas,toolbarFrame) 
    self.toolbar_main.update()
    ax.grid()
    
    
    ax.plot(self.dict_info["Indentation/Separation (nm)"],self.dict_info["Force (pN)"])


    ax.set_xlabel("Indentation/Separation (nm)")
    ax.set_ylabel("Force (pN)")

输出是 X[720,360,1] 而不是 X[720,365]。 任何帮助表示赞赏。谢谢

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)