Problem with feeding input files into

Problem with feeding input files into

While merging the files using the following code works:[sys.executable,gmerge,'-o','C:

However, when the input files are numerous, each file can not be inserted separately. In this case, the following code does not work:[sys.executable,gmerge,'-o','C:

I did not know how to input the input files. Any idea is welcomed.

you can loop on your files and append them to your list

command = [sys.executable,gmerge,'-o','C:
.tif','-of','GTiff'] images = glob.glob("D:*.tif") for image in images: command.append(image)

Watch the video: Extract point value from a raster file with Python, Geopandas and Rasterio - Tutorial