title: How can I change the resolution of a raster using GDAL?
body: <p>I am looking for the best way to change the resolution of a GDAL raster dataset.</p>
  
  <p>For example, I have a raster that has a pixel size of (30, -30), and I would like to change the pixel size to (5, -5), interpolating all values for a given pixel into the output raster.</p>
  
  <p>So for each pixel of the input raster, I would like to have 36 pixels in the output raster that all share the same value.</p>
  
  <p>If I run <code>gdalwarp -tr 5 -5 inputRaster.tif outputRaster.tif</code>, I get exactly the result that I'm looking for, and so I would assume that I should be able to replicate this functionality with some GDAL function.</p>
  
  <p>I would prefer to avoid using a call to python's Subprocess class, if possible.</p>