I'm looking for a function similar to GRASS r.resample. I have a folder full of TIF files and want to reduce their resolution ("scale them down") to reduce file size.
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.
|
Your best bet would appear to be gdalwarp, which is documented over here. It's trivially easily scriptable, but the details would depend on your operating system. In Windows, you'd do something like:
which should reduce the input files to 1600 pixels wide, saving the file with the original name appended with "small". This is seriously untested, ymmv. Besides, you're probably using Linux - if so, post back, and someone can help there. Ditto if you're looking for a Python solution. Edited: added parameter to create ESRI world file. Note that this solution doesn't specify the output format, so it's a GeoTiff by default |
|||||
|
|