ResampleΒΆ
r0 = RasterReader('D:/tmp/chirps_original/chirps-v2.0.2016.01.10.tif')
r1 = r0.resample((0.05, 0.05))
print r0.get_parameters()
print r1.get_parameters()
Outputs:
DIM[1, 31, 51] ND[-9999.0] DT[Float32] DRV[GTiff] SRS[WGS 84] TRANS(-48.0, 0.25, 0.0, -8.5, 0.0, -0.25)
DIM[1, 155, 255] ND[-9999.0] DT[Float32] DRV[MEM] SRS[WGS 84] TRANS(-48.0, 0.05, 0.0, -8.5, 0.0, -0.05)