import gdal
import os
filename=“图像名”
dataset=gdal.Open(filename) #打开文件
width = dataset.RasterXSize #栅格矩阵的列数
height = dataset.RasterYSize #栅格矩阵的行数
bands = dataset.RasterCount #波段数
data = dataset.ReadAsArray(0,0,width,height)
t=data[0,0,0]
print(t)
@快乐的小p鹅