<span class="Apple-style-span" style="border-collapse: collapse; color: rgb(51, 51, 51); ">Having trouble figuring out how to resample an image to a different cell size from python. I looked over the VRT driver page and have been trying to get this to work:<br>
<br><span class="Apple-style-span" style="font-style: italic;">from osgeo import gdal<br><br>gdal.AllRegister()<br><br>src = gdal.Open('DOQ_test.TIF')<br>drv = gdal.GetDriverByName('VRT')<br>dst = drv.CreateCopy("", src, 0)<br>
<br>dst.RasterXSize = '125'</span><br><br>But it seems the cell size in the datasets and the bands are read only? Is there any programmatic way to do this?</span><br>