Created
September 25, 2014 17:42
-
-
Save kapadia/ab5e3e0d36c0c19556e0 to your computer and use it in GitHub Desktop.
Scaling Bit Depth with GDAL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Converting from 16bit to 8bit | |
gdal_translate -ot Byte -scale 0 65535 0 255 sixteen.tif eight.tif | |
# Converting from 8bit to 16bit | |
gdal_translate -ot Uint16 -scale 0 255 0 65535 eight.tif sixteen.tif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment