GDAL-RASTER-PANSHARPEN(1) GDAL GDAL-RASTER-PANSHARPEN(1) >>> (NAME) gdal-raster-pansharpen - >>>>> >>>>>> >>>>>>>> >>>> (Pan-sharpening) >>>>>> >>> >> >>>> 3.12. >>>>> >>>>> (SYNOPSIS) Usage: gdal raster pansharpen [OPTIONS] ... Perform a pansharpen operation. Positional arguments: -i, --panchromatic, --input Input panchromatic raster dataset [required] [not available in pipelines] --spectral Input spectral band dataset [1.. values] [required] -o, --output Output raster dataset [required] [not available in pipelines] Common Options: -h, --help Display help message and exit --json-usage Display usage as JSON document and exit --config = Configuration option [may be repeated] -q, --quiet Quiet mode (no progress bar or warning message) [not available in pipelines] Options: -f, --of, --format, --output-format Output format ("GDALG" allowed) [not available in pipelines] --co, --creation-option = Creation option [may be repeated] [not available in pipelines] --overwrite Whether overwriting existing output dataset is allowed [not available in pipelines] Mutually exclusive with --append --append Append as a subdataset to existing output [not available in pipelines] Mutually exclusive with --overwrite -r, --resampling Resampling algorithm. RESAMPLING=nearest|bilinear|cubic|cubicspline|lanczos|average (default: cubic) --weights Weight for each input spectral band [may be repeated] --nodata Override nodata value of input bands --bit-depth Override bit depth of input bands --spatial-extent-adjustment Select behavior when bands have not the same extent. SPATIAL-EXTENT-ADJUSTMENT=union|intersection|none|none-without-warning (default: union) -j, --num-threads Number of jobs (or ALL_CPUS) (default: ALL_CPUS) Advanced Options: --if, --input-format Input formats [may be repeated] [not available in pipelines] --oo, --open-option = Open options [may be repeated] [not available in pipelines] >>>>>>> (DESCRIPTION) >>>>> gdal raster pansharpen >>>>>> >>>>>>>>>>>>> (pan-sharpening >> >>>>>> >>>>>>>>>>> >>>>> >> >>>>>>> >> >>>> >>>>>>>>>>>) >> >>>>> >>>>>>. >>> >>>>> >>>>>>>> >> >>>>>> >>>> >>>>> <<>>>>>>>> (>>>>> GeoTIFF) >> >> >>>>>> >>>> VRT >>>>>>>>>>> >>>>>> >>>>>>>>>>>>> >>>>> >>>. >>> >>>>> >> >>>>> >>>>> >> >>>>>> >>>> >>>>>>> >>>>>>>>>>> > >>>>> >>>> >>>> >>>>>> >>>>>> >> >>>>>>> >>>>> >>>>>>>>>>> >>>>> >>>>>>>>> >>>> >> >>>> >>>>>>>>>>> >>>>>. >>>>> >> >>>>>> >>>> >>>>>>>> >>> (>> >>>> >>>>> >>>>>>> >>>> >>>>>) >> >>>> >>>>> >> >> >>> >>>> >>>> >>>>>>>>>>> >>>>> >>>>> >>>. >>>>> >>>>>> >>>> >> >> >>>>> >>>> >>>>>> (CRS) >>>>> >>>>>. >>>>>> >>>>> >> >>>>>>> >> >>> Pansharpened VRT >>>>. >>>>> GDALG (>>>>>> >>>>>>>> >>>>>> >>>>>> / >>>>>>) (GDALG OUTPUT) >>> >>>>>> >> >>>>>>>>>> >> >>>>> >> >>>> >> >>>> JSON >> >>>>>>> >> >>>> >>>>> GDALG >>>>>>>> >>>>>>. >>>> >>>> >> >>>>>>> >>> >> >>>>> >> >>>>>> >>>> >>>>> >> >>>>>>> >> >>>>>> GDALG: GDAL Streamed Algorithm >>> >>> > >>>>>>>>> >>>>>>>> >> >> >>>> >>>>>>> / >>>>>> (on-the-fly / streamed) >>>>> >>>>. >>>>>>>>> >>>>>>> >>>>>> (PROGRAM-SPECIFIC OPTIONS) --bit-depth >>> >>>> >>>>>>> >>>>>>>>>>> > >>>> >> >>>> >>>>>> (>>>>> 12). >> >>>> >>> >>>>>> >> >>>> >>>>> >> >>>> >>>>>>>> NBITS >>>> >>>>>>>>>>> >>>>>>> >>>>> >>. -i, --panchromatic, --input >>>>>> >>>> >>>>> >>>> >>>>>>>>>>>. [>>>>>>] -j, --num-threads >>>>> >>>>>>> (threads) >>>> >>>>> >>>>>>>>>>>>>>> > >>> >>>>>> >>>>>>>>>>>>> >> >>>> >>>>>>. >>>>>>>> >> >>> >>>> >> ALL_CPUS (>>>>>>>) >>>>. --nodata >>>>> nodata >> >>>> >>>>>> >>>> >>>>>>. >>>> >>>>>>> >>>>>>>>>>>>>>> > >>> >>>>>>>>>>>>> >>>>>>> >>>>>>. >> >>>> >>> >>>>>> >> >>>>>>> >>>>> >>>>>>> >>>>>>> >>>>> >> >>>>> >>>>>>> >>>>>>> >>>>> >>>>>. -r, --resampling nearest|bilinear|cubic|cubicspline|lanczos|average >> >>>>>>>> >>>>>>>>>>>>>>> >> >>>>>> >>>>>>. cubic >>>>> >>>>>>> >>>. --spatial-extent-adjustment union|intersection|none|none-without-warning >>>>> >>>>>> >> >> >>>>> >> >>>>>> >>>>>> >>>>> >>>>>> >>>>>> >>>>> >>>>>>. >>>>>>> SpatialExtentAdjustment >> Pansharpened VRT >> >>>>>>. union >>>>> >>>>>>> >>>. --spectral [,band=] >>>>>> >>>> >>>> >> >> >>> >>>> >>>>. [>>>>>>] >>> >>>>> band >>>> >>>>> >>>>> >>>>>>> >>>>>> >>>> >>>> >>>>>>>. >> >>> >>> >>>>> >>>> >>>> (num) >>>>>>>> >> >>> >>>>> >>>>>>. >> >>>>>> >>>> >>>>> >> >>>>>>> >>>>> >>> >>>>> >>>. --weights >>>> >> >>>> >>>>>> >>>>> >>> >>>>>>>>>>> >>>> >>>>>>. >>>>> >>>>>> >>>> >>>>>> >>>>> >> >>>>> >>>>>>> >>>> >>>>> >>>>. >>>>>>>>> >>>>>>>>> (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 --overwrite >> >>>>>> >>>>> >>>>>> >> >>>> >> >>>>>> >>>> >>>> >>>>> >> >>>>>>>> >>>. >> >>> >>> >>>>> >> >>> >>>>>>>> >>> >>>> >> >>>>>> >>>> >>>> >> >>> >>>> >>>>> >>>>> gdal >> >>> >>>>> >>>>>>. >>>>> >>>>> >>>>>>> (RETURN STATUS CODE) >>> >>>>>> >> >>>> >>>>>> >> >>>>> 0 > >> >>>> >>>> >>> >>>>>> >>>>>> >>>>>>>>>>> (>>>>>> >>>>>>>>>>>>> >> >> >>>>> >>>>> >>>> >>>>>>> >> >>>>> >>>>> >>>> >> >>> >>>>> >>>>>>>). >>>>>>> (EXAMPLES) >>>> >: >> >>>>>>> >>>> >> >> >>>>>> >>>> >>>> gdal raster pansharpen panchro.tif rgb.tif pansharpened_out.tif >>>> >: >> >>> >>>> >>>> >> >> >>>>>> >>>> >>>> >> >>>>> >>>>> >>>>> gdal raster pansharpen panchro.tif bgr.tif,band=3 bgr.tif,band=2 bgr.tif,band=1 pansharpened_out.tif >>>> >: >> >>>>>>> >>>> >> >>>>> >>>>>> >>>> gdal raster pansharpen panchro.tif red.tif green.tif blue.tif pansharpened_out.tif >>>> >: >>>> >>>> >>>>>> gdal raster pansharpen -w 0.7,0.2,0.1 panchro.tif multispectral.tif pansharpened_out.tif >>>> >: >>>>>> >>>>>>> RGB >> >> >>>>>> >>>> >>>>>>> RGBNir >> >>> >>>>>> >>> >>> >>>>>>>>>>> >>> > >>>> RGBNir gdal raster pipeline read panchro.tif ! pansharpen rgbnir.tif ! select 1,2,3 ! write pansharpened_out.tif >>>>>>> (AUTHOR) Even Rouault >> >>> (COPYRIGHT) 1998-2026 August 18, 2026 GDAL-RASTER-PANSHARPEN(1)