我正在关注有关如何使用 Canopy Cover 和 Vertical Profile Metrics 数据的GEDI 教程。这是我正在使用的代码:
path1 = hv.Path(pavdAll, vdims='PAVD').options(color='PAVD', clim=(0,0.13), cmap='Greens', line_width=20, colorbar=True,
width=700, height=550, clabel='PAVD', xlabel='Shot Number', tools=['hover'],
ylabel='Elevation (m)', fontsize={'title':16, 'xlabel':16, 'ylabel': 16,
'xticks':12, 'yticks':12,
'clabel':12, 'cticks':10})
path1
当我运行代码时,出现以下错误:
BokehUserWarning:ColumnDataSource 的列必须具有相同的长度。当前长度:('PAVD', 0), ('color', 16), ('xs', 16), ('ys', 16)
我对编程知之甚少,非常感谢可能解决此错误的方法。