python:使用gdal快速将numpy数组保存为tif遥感影像

作者:CSDN @ _养乐多_

本文记录了使用gdal快速将numpy数组保存为tif遥感影像的代码。



一、代码

import os
import glob
import numpy as np
from osgeo import gdal

resultArray = 你的numpy数组
dataset = 你读入的遥感数据,或者是已有的影像,为了读取地理信息

# 将inf值替换为NaN
resultArray[np.isinf

猜你喜欢

转载自blog.csdn.net/qq_35591253/article/details/130980048