2

It can be achieved with a simple walk or listdir: import os, sys # the standard imports BaseFolder = r'c:\your\folder\with\data' # change this to match your data for FullPath, dirs, files in os.walk(BaseFolder): for ThisFile in files: # iterate the files fN,fE = os.path.splitext(ThisFile) # separate file name and extension ...


1

I am not sure if you considered that if your warp operation is rotating the image then the original top-left pixel is not at the top-left corner of the envelope of the warped image. A test with gdalwarp and image LC08_L1TP_033033_20180706_20180717_01_T1_B5.tif Command gdalwarp -t_srs epsg:4326 LC08_L1TP_033033_20180706_20180717_01_T1_B5.tif warped.tif -co ...


1

I am not certain of what you try to achieve but I have two sugestions: Follow this idea on how to resize a numpy array using scipy. Use gdal.Warp to warp a tiff to a different resolution. For example: import gdal infn = '/path/to/source.tif' outfn = '/path/to/target.tif' xres=6.5 yres=6.5 resample_alg = 'near' ds = gdal.Warp(outfn, infn, warpoptions=...


Only top voted, non community-wiki answers of a minimum length are eligible