Skip to content

Instantly share code, notes, and snippets.

import rasterio
def get_tile_name_path(dst_dir:str, index:int, city=city, code=code):
'''
generating index specific tile name
'''
dst_tile_name = "{}_{}_{}.tif".format(city, code, str(index).zfill(5))
dst_tile_path = os.path.join(dst_dir, dst_tile_name)
return dst_tile_name, dst_tile_path