Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for i in range(0, xsize-restx, tile_size_x):
- for j in range(0, ysize-resty, tile_size_y):
- 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"
- os.system(com_string)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement