Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- gdalwarp -tr 250 250 -r average input_r30.tif output_r250.tif
- from osgeo import gdal
- inDs = gdal.Open('input_r30.tif')
- outDs = gdal.Warp('output_r250.tif', inDs, format = 'GTiff', xRes = 250, yRes = 250, resampleAlg = gdal.GRIORA_Average)
- inDs = None
- outDs = None
- GRIORA_NearestNeighbour = 0,
- GRIORA_Bilinear = 1,
- GRIORA_Cubic = 2,
- GRIORA_CubicSpline = 3,
- GRIORA_Lanczos = 4,
- GRIORA_Average = 5,
- GRIORA_Mode = 6,
- GRIORA_Gauss = 7
Add Comment
Please, Sign In to add comment