GDAL-RASTER-SCALE(1) GDAL GDAL-RASTER-SCALE(1) >>> (NAME) gdal-raster-scale - >>>>>>>>>> >>>>>> >>>>>>> >> >>>>>>>>>>> >>>>> >> >>>> 3.11 >>>>> >>. >>>>> >>>>> (SYNOPSIS) Usage: gdal raster scale [OPTIONS] >>>>>>>>>> >>>>>> >>>>>>> >> >>>>>>>>>>> >>>>>. >>>>>>>>>>> >>>>>: -i, --input >>>>>>>>>>>>>>> >>>>> >>>>> [>>>>>>] [>> >>>>>>>>>> >> >>>>> >>>>] -o, --output >>>>>>>>>>> >>>>> >>>>> [>>>>>>] [>> >>>>>>>>>> >> >>>>> >>>>] >>>>>>>>> >>>>>: -h, --help >>>>> >>>> >>>>>> > >>>> --json-usage >>>>> >>>> >>>>>>> >> >>>> >>> JSON > >>>> --config = >>>>> >>>>>>>> [>>>> >>>>>] -q, --quiet >>>> >>>>>> (>>>> >>>> >>>>>> >> >>>> >>>>>) [>> >>>>>>>>>> >> >>>>> >>>>] >>>>>>>>: -f, --of, --format, --output-format >>>> >>>>> (>>>>> "GDALG" >>>> >>>) [>> >>>>>>>>>> >> >>>>> >>>>] --co, --creation-option = >>>>> >>>> >>>>>>>>>>> [>>>> >>>>>] [>> >>>>>>>>>> >> >>>>> >>>>] --overwrite >>>>> >>>>> >>> >>>>>>> >>>>>>>>>>> >>>>> >>>>> >>>> >>> [>> >>>>>>>>>> >> >>>>> >>>>] >>>>>>>> >> --append --append >>>>> >> >>>>> >> >>>>>>>>>>>>>> >> >>>>> >>>>> [>> >>>>>>>>>> >> >>>>> >>>>] >>>>>>>> >> --overwrite --ot, --datatype, --output-data-type >>> >>>> >>>>>. OUTPUT-DATA-TYPE=UInt8|Int8|UInt16|Int16|UInt32|Int32|UInt64|Int64|CInt16|CInt32|Float16|Float32|Float64|CFloat32|CFloat64 -b, --band >>>>>> >>>> >>>> >>>>> >>>> >>>>>>>>>> (>>>> >> >>>> >> >) --input-min >>>>> >>>>> >>>>>> >>>> >>>>>> >> --input-max --input-max >>>>>> >>>>> >>>>>> >>>> >>>>>> >> --input-min --output-min >>>>> >>>>> >>>>>> >>>> >>>>>> >> --output-max --output-max >>>>>> >>>>> >>>>>> >>>> >>>>>> >> --output-min --exponent >>> >>>> >>>>> >>>>>>>>>> >>>>>> >> >> >>>> >>>>> --no-clip >>> >>>> >>>>>> >>>>> >> [input-min, input-max] >>>>>>>>> >>>>>>>: --if, --input-format >>>>>>>> >>>>> [>>>> >>>>>] [>> >>>>>>>>>> >> >>>>> >>>>] --oo, --open-option = >>>>>>>>> >>> >>>> [>>>> >>>>>] [>> >>>>>>>>>> >> >>>>> >>>>] >>>>>>> (DESCRIPTION) >>>>> gdal raster scale >>>>>>>> >>>> >>>>> >>>>> (rescale) >>>>>> >>>>>>>>> >>>>> >> >>>>>> --input-min >> --input-max >> >>>>>> --output-min >> --output-max >> >>> >>>. >>>>>> >>>> >>>> >>> >> >>> >>>> >>>>> >> >>>>> --ot >>>>>>>> >>>. >> >>>> >>> >>>>>> >>>>>> >>>>> >> >>>>> >>>>> >> >>>>>> >>>>> >>>> >>>> >>>>> >>>> >>> >>>> (>>>> >>>> >> 0 >> 255 >>>> >>>>> Byte) >> >> 0 >> 1 >>>> >>>>> >>>> >>>> >>>>> >> >>> >>>>> >>>>>>. >> >>>> >>> >>>>>> >>>>>> >>>>> >> >>> >>>>>> >> >>>>>>>>>>> >>>> >>>>>> >>>>>>. >>> >>>> >>> >> >>>>>> >>> >>> >> >>>>>>>>>>> >>>> >>>> >>>>> > >>> >>>>> >>> >>>> >>>>>>>>>>>> >>>>> gdal_translate >>>>>>> >>>> >>>>>>>> >>>> gdal raster edit --stats {source_dataset} >>>> >>>>>>>>>> >>>>>> >> >>>>>>>>> >> >> >>>>>>>>>> >>>>>>> >>>>> >>>>>>>> >>>>>>> (GeoTIFF> VRT >...) >>>>>>>> >>>>>> >>>>. >>>>>> >>>> >> >>>>>> >>>>>>>>> >>>> srcmin > srcmax >>> (clip) >>>> >>>>>>>> >>> >>>>> --no-clip >>>>> >>> >>>>. >> >>> >>>>>>>> >>>>>>>>>> >>> >>>>> >>>>>> >>>>> >>>>>>. >> >>>>>>> >> --band >>>>>>> >> >> >> >> >>>> >>>>> >>>>> >>> > >>>>>> >>>> >>>>>> >> >>>>>>>>>> >>>> >>>>>. >>> >>>>> >>>>>> >>>>> gdal raster unscale >>>. >>> >>>>>>>> >>>>>> >> >>>>> >> >>>>> >>>>>> >> gdal raster pipeline >> >>>>> >>>. >>>>> GDALG (>>>>>> >>>> >>>> / >>>>>>>>>>) (GDALG OUTPUT (ON-THE-FLY / STREAMED DATASET)) >>> >>>>>> >> >>>>>>>>>> >> >>>>> >> >>>> >> >>>> JSON >> >>>>>>> >> >>>> >>>>> GDALG >>>>>>>> >>>>>>. >>>> >>>> >> >>>>>>> >>> >> >>>>> >> >>>>>>>>>>> >>>>> >> >>>>>>> >> >>>>>> GDALG: GDAL Streamed Algorithm >>> >>> > >>>>>>>>> >>>>>>>> >> >> >>>> >>>>>>> / >>>>>> (on-the-fly / streamed) >>>>> >>>>. >>>>>>>>> >>>>>>> >>>>>> (PROGRAM-SPECIFIC OPTIONS) -b, --band >>>> (>> >>>> >> 1) >>>>> >> >>>>>>>>>> >>>> >>>> >> >>> >> >>>>> >>>. --exponent >>>>> >>>>>>>>>> >>>>>> >> >> >>>> >>>>>. exp_val >>>> >>>> >>>>> >>> (>>>> >>>> >>>>). >>> >>>>> >>>> >>>>> >> >>>>>>>>> --input-min / --input-max / --output-min / --output-max >>>>>>> >>>. >>>>> >>>>>>>>>>>>>> Dst >> >>>>> >>>> Src >> >>>>> >>> >>>>>> >>>>>>: {Dst} = \left( {Dst}_{max} - {Dst}_{min} \right) \times \operatorname{max} \left( 0, \operatorname{min} \left( 1, \left( \frac{{Src} - {Src}_{min}}{{Src}_{max}-{Src}_{min}} \right)^{exp\_val} \right) \right) + {Dst}_{min} >>>>: >>>>> gdal raster unscale >>>>>>>>>> >>> >> >>> >>>>>> > >>> >>> >>>>>>>>> >>>>>> >> >> >>>>>> >>>> >>>>>>>>>. --input-max >>>>>> >>>>> >>>>>> >>>>. >> >>>> >>> >>>>>> >> >>>>>>>>>>> >>>> >>>>>> >>>>> >>. >>> >>>>> >>>> >>>>> >> --input-min >>>>>>> >>>. --input-min >>>>> >>>>> >>>>>> >>>>. >> >>>> >>> >>>>>> >> >>>>>>>>>>> >>>>> >>>>>> >>>>> >>. >>> >>>>> >>>> >>>>> >> --input-max >>>>>>> >>>. --output-max >>>>>> >>>>> >>>>>> >>>>>. >>> >>>>> >>>> >>>>> >> --output-min >>>>>>> >>>. --output-min >>>>> >>>>> >>>>>> >>>>>. >>> >>>>> >>>> >>>>> >> --output-max >>>>>>> >>>. --no-clip >>>>>>> >>>> >>> >>>>>> >>>>> >> >>>>>> >>>>. >>>> >>>>> >>>>> >> >>>>>>> >> >>> >>>>> >>>>> >> >>>>>>>>>> >>>>>> >> >> >>>> >>>>>>> >>>> >>>>>> >>>>>> >>>>> >>>> >> >>>>> >>>>> >>>>>> >>>> >> >>>> >>>>> >>>>>>>>>> (not-a-number) >>>>> >>>>. >>>>>>>>> >>>>>>>>> (STANDARD OPTIONS) --append >>>>> >>>> >>>>> >> >>>>> >> >>>>>>>>>>>>>> (subdataset) >>>> >> >>>> >>>>> >>>>>. >>>> >> >>>>>>>>>> >>> >>>>>> >> >> >>>>>> >>>>>>>>>>>>>> >>>>>>>> >>>>>>>> >>>>> GTiff -- GeoTIFF File Format > GPKG -- GeoPackage raster. >>> >>>>> >>>>>> >> >>>>> >> >>>>>>>>>>> >>>>> >>>> >>>> >>>>>> >>>>> >> >> >>>>> >>>>>>. --co, --creation-option = >>>>>> >> >>>>>>> >> >> >>> >>>>> >>>> >>>>>>> >>>>> >> >>>>>>> >> >>>>> >>>> >>>>> >>>>>> >>>> >>>>>>>> >>>>>>> >>>. >>>> >>>>>> >>>>>> GeoTIFF >> >>>>>>>>> >>>> >>>> >>>>> >>>>>>>>>> > >>>>> >>>>>>>>> (tiled) >>>> >>>> >>>>>>>> >>>>>>. >>>> >>>>> >>>. >>>>>>>>> >>>> >>>>> >>>> >> >>>>>> >>>> >>>>>> >>>>> > >>>> >>>>>>>> >>>> >>>>> >>> >>>>> >>>>> >>>>>>. >>>>>> >> >>>>>>>>> >>>>>>>>>>>> >>>> >> >>>> >> >>>>>>> >> >>>>> >> >>>>> --formats >>>>>> >>>> >>> >>>>>>> >>> >>>> >>>> >>>>> >>>>>>> >>>>> >> >>>>>>>>> >>>> >>>>>> >>>. >>>> >>>>>>>>> >>>> >>>> >> >>>>> >>>>>>> >>>>>>> Raster drivers >> >>>>>>. --if, --input-format >>> >>>>/>>>>>> >>>> >>>> >>> >>> >>>> >>>>(>>>) >>>>>. >>>>>>> >>>>> >> >>>>> >> >>>>> >>> >>>>>>> >> >> >>>> >>>>>>> >> >>>>> >>>>>> >>>>>> >> >>>>>> >> >>>>>> >>>>> >>>>>> >>>>>>> >>>>>>> >>>. >>> >>>>> >>>>>>>> >>>>> >>> >>>> >>>>> >>> >>>>>> >>>>> >>>>> >>>. >>>> >>>>> >>>>> >> >>> >>>>> >>>>>>>> >> >>>>> >> >>> >>>> >>>>>>>>>>> >>>>>>>> >>>>>>> >>>> >>>>>>>> >>>>>>> >>>> >>>> >>>>> >>>> >>>>>. >>>> >>>>> >>>. --oo, --open-option = >>>>> >>> >>>> >>>>>>>>>>> (>>>>> >>>>). >>>> >>>>> >>>. -f, --of, --format, --output-format >>>> >>>>> >>>>> >>>> >>>>>>>. >>>>>> >>>> >> >>>>> >>>>> >>> >>>> >>>>>>>: gdal --formats | grep raster | grep rw | sort --ot, --datatype, --output-data-type >>> >>>> >>>>> >> >>>> Byte> Int8> UInt16> Int16> UInt32> Int32> UInt64> Int64> CInt16> CInt32> Float32> Float64> CFloat32 > CFloat64. --overwrite >> >>>>>> >>>>> >>>>>> >>>> >> >>>>>>>>>>> >>> >>>>> >> >>>>>>> >>>. >> >>> >>> >>>>> >> >>> >>>>>>>> >> >>>>> >> >>>> >> >>>>>>>>>>> >>> >> >>> >>>>> >>>>> gdal >> >>> >>>>> >>>>>>. >> >>>>> >>>>> (RETURN STATUS CODE) >>> >>>>>> >> >>>> >>>>>> >> >>>>> 0 > >> >>>> >>>> >>> >>>>>> >>>>>> >>>>>>>>>>> (>>>>>> >>>>>>>>>>>>> >> >> >>>> >>>>> >>>> >>>>>>> >> >>>>> >>>>> >>>> >> >>> >>>>> >>>>>>>). >>>>>>> (EXAMPLES) >>>> >: >>>>>>>>>> >>> >>>>>> >> >>>>>>>>>>> UInt16 >> [0,4095] >> >> >>>>>>>>>>> Byte [0,255] $ gdal raster scale --datatype Byte --input-min 0 --input-max 4095 uint16.tif byte.tif --overwrite >>>>>>> (AUTHOR) Even Rouault >> >>> (COPYRIGHT) 1998-2026 August 18, 2026 GDAL-RASTER-SCALE(1)