I have a large tif-file that cannot open with gdal.Open
in Python as it is larger than 4 GB. I want to compress this file without losing the initial resolution. I have tried to split the raster into tiles with the following:
- Export the layer as a vrt tif file (image).
I load the newly created tif files and they are now more south than prior, even with the same projection (EPSG: 4326).
Then I tried with the GRASS r.tile
tool, but even when I set the width (41037) and height (13568) to specific values, it changes the outcome and pixels (image). In the new outcome, the width is 41037, and the height is now 6458. This results in the minimum pixel value changes from 65 to 72.
Is there a way to make sure, the tiles either have the same projection/spatial location or simply compress the tif file to just under 4 GB and still keep the resolution?