[Python] How to download created tiff image file in python directory to local pc storage?...

Discussão em 'Python' iniciado por Stack, Janeiro 30, 2025.

  1. Stack

    Stack Membro Participativo

    Im using GDAL to process raster images in Google Colab, specifically divide the raster into multiple tiles that are individual raster files themselves. They are stored in the directory, but i would like to automatically download them to my local pc storage since there are a lot of tiles and manually downloading them from the directory is very tedious.

    Below is a snippet of GDAL translate function that creates the tiles and puts them in the directory. How do I automatically download them locally?

    outfile = f"LC_{x}_{y}.tif"
    gdal.Translate(outfile, LC_gdal, srcWin=[xoff, yoff, xsize, ysize], projWin=[xmin, ymax,
    xmax, ymin])
    print(f"Created tile: {outfile}")

    Continue reading...

Compartilhe esta Página