<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(&#39;DOQ_test.TIF&#39;)<br>drv = gdal.GetDriverByName(&#39;VRT&#39;)<br>dst = drv.CreateCopy(&quot;&quot;, src, 0)<br>
<br>dst.RasterXSize = &#39;125&#39;</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>