I have approximately 700 raster files in a single folder and I need to find files that have the same spatial extent and copy to a different folder. The raster files measure daily snow cover and therefore have the exact same spatial extent.
Tell me more
×
Geographic Information Systems Stack Exchange is a question and answer site for
cartographers, geographers and GIS professionals. It's 100% free, no registration required.
|
|
One possible solution using GDAL. The first trick is get a list of rasters into Python. For argument's sake we'll assume they are all TIFF files, meaning we can use
I'm going to assume that you don't know what the size is, so you want different folders for each set of rasters with the same size. We'll use the GDAL's
Note you could perform an almost identical operation with |
|||||||||
|