2.3 显示遥感影像

from osgeo import gdal
import matplotlib.pyplot as plt
ds = gdal.Open(r"C:\Users\HP\Desktop\raster\GLASS01B02.V04.A2015225.2017269.hdfout.LAI.tif").ReadAsArray()#需要注意后面的.ReadAsArray()
im = plt.imshow(ds)
plt.colorbar(im)

你可能感兴趣的:(2.3 显示遥感影像)