buf_xsize and buf_ysize control the number of x and y pixels in the returned image. I have noticed that these arguments are respected - they give the right size raster, but the geo_transform attr in the Canvas object reflects the resolution of the native file (in its 2nd and 6th numbers [grid cell offset distances]), not the resolution as its was interpreted by the reader.
An example - this is band 8 of the tifs in elm-data after being read with buf_xsize = buf_ysize =1000, the 15 and -15 in geo_transform are now wrong.
buf_xsize
andbuf_ysize
control the number of x and y pixels in the returned image. I have noticed that these arguments are respected - they give the right size raster, but the geo_transform attr in the Canvas object reflects the resolution of the native file (in its 2nd and 6th numbers [grid cell offset distances]), not the resolution as its was interpreted by the reader.An example - this is band 8 of the tifs in elm-data after being read with buf_xsize = buf_ysize =1000, the 15 and -15 in geo_transform are now wrong.