I tried to merge/stitch my 1000 geotif images, each of around 4gb using rasterio.
files = glob.glob('*.tif')
src_files = 
for fi in files:
src = rasterio.open(fi)
mosaic, out_trans = merge(src_files)
out_meta = src.meta.copy()
with rasterio.open(fo, "w", **out_meta) as dest:
Unfortunately, I could not proceed with the Memory error.
I could merge/stitch them using gdal translate, though it was very slow. So, physical memory should not be problem. To speed up, I tried rasterio, but did not work. Any help to make it possible would be appreciated.