Python: Read all the remote sensing data in tif format in the folder to form a numpy three-dimensional array

Author: CSDN @ _Yakult_

This article records the code to read the remote sensing time series data in tif format in the folder and form a numpy three-dimensional array for subsequent matrix operations or time series analysis. The code is implemented in python language.


Article directory


1. Code

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

def read_tif_files(folder_path):
    tif_files 

Guess you like

Origin blog.csdn.net/qq_35591253/article/details/130979190