# %pip install -U leafmap import leafmap m = leafmap.Map() url = "https://opengeos.org/data/raster/cog.tif" m.add_cog_layer(url, name="COG") m leafmap.split_raster(url, out_dir="tiles", tile_size=(100, 100), overlap=0) leafmap.find_files("tiles", ext=".tif") leafmap.merge_rasters("tiles", output="merged.tif", input_pattern="*.tif")