Re: Read data from a sequence of TIF files


Sean Gillies
 

Hi Shaunak,

A virtual mosaic using GDAL's VRT format https://gdal.org/drivers/raster/vrt.html is the best-tested approach for doing this. Rasterio can open and operate on such VRT XML files.


On Mon, Aug 16, 2021 at 4:58 PM <shaunakde@...> wrote:

Hello,

I was trying to use the Global Surface Water dataset found here: https://global-surface-water.appspot.com/download 

The data is delivered as a sequence of TIF files tiles as 10x10 degree granules. For example the granule starting at 10N and 10E is here: https://storage.googleapis.com/global-surface-water/downloads2020/occurrence/occurrence_120E_40Sv1_3_2020.tif 

I was wondering what the best way to read all the data intersecting an AOI was (without having to manually merge all the data)

Shaunak


--
Sean Gillies

Join main@rasterio.groups.io to automatically receive all group messages.