Advertisement
Guest User

Untitled

a guest
Mar 21st, 2019
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. for i in range(0, xsize-restx, tile_size_x):
  2. for j in range(0, ysize-resty, tile_size_y):
  3. com_string = "gdal_translate -of GTIFF -srcwin " + str(i)+ ", " + str(j) + ", " + str(tile_size_x) + ", " + str(tile_size_y) + " " + str(in_path) + str(input_filename) + " " + str(out_path) + str(output_filename) + str(i) + "_" + str(j) + ".tif"
  4. os.system(com_string)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement