Guest User

Untitled

a guest
Nov 18th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. gdalwarp -tr 250 250 -r average input_r30.tif output_r250.tif
  2.  
  3. from osgeo import gdal
  4.  
  5. inDs = gdal.Open('input_r30.tif')
  6. outDs = gdal.Warp('output_r250.tif', inDs, format = 'GTiff', xRes = 250, yRes = 250, resampleAlg = gdal.GRIORA_Average)
  7.  
  8. inDs = None
  9. outDs = None
  10.  
  11. GRIORA_NearestNeighbour = 0,
  12. GRIORA_Bilinear = 1,
  13. GRIORA_Cubic = 2,
  14. GRIORA_CubicSpline = 3,
  15. GRIORA_Lanczos = 4,
  16. GRIORA_Average = 5,
  17. GRIORA_Mode = 6,
  18. GRIORA_Gauss = 7
Add Comment
Please, Sign In to add comment