This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |