gdal_convert
geoconverter.gdal_convert
¶
Rescales imagery to specified bit resolution and converts to specified format.
Requires GDAL>=3.1
Usage:
python geoconverter/gdal_convert.py -i ./data/in/a.tif
python geoconverter/gdal_convert.py -i ./data/in/a.tif -o out/a_cog.tif -of COG
python geoconverter/gdal_convert.py -i ./data/in/a.tif -of COG -or 0 255
python geoconverter/gdal_convert.py -i ./data/in/ -o ./data/out/ -of JPEG -b 5,3,2
python geoconverter/gdal_convert.py -i ./data/in/ -o ./data/out/ -of JPEG -b 5,3,2 stretch 2 98