1gdal_pansharpen(1)          General Commands Manual         gdal_pansharpen(1)
2
3
4

NAME

6       gdal_pansharpenPerform a pansharpen operation.
7
8       (Since GDAL 2.1)
9

SYNOPSIS

11       gdal_pansharpen [--help-general] pan_dataset {spectral_dataset[,band=num]}+ out_dataset
12                       [-of format] [-b band]* [-w weight_val]*
13                       [-r {nearest,bilinear,cubic,cubicspline,lanczos,average}]
14                       [-threads {ALL_CPUS|number}] [-bitdepth val] [-nodata val]
15                       [-spat_adjust {union,intersection,none,nonewithoutwarning}]
16                       [-co NAME=VALUE]* [-q]
17

DESCRIPTION

19       The gdal_pansharpen.py script performs a pan-sharpening operation. It
20       can create a 'classic' output dataset (such as GeoTIFF), or a VRT
21       dataset describing the pan-sharpening operation.
22
23       More details can be found in the VRT tutorial.
24
25       -of format:
26           Select the output format. Starting with GDAL 2.3, if not specified,
27           the format is guessed from the extension (previously was GTiff).
28           Use the short format name. 'VRT' can also be used.
29
30       -b band:
31           Select band band from the input spectral bands for output. Bands
32           are numbered from 1 in the order spectral bands are specified.
33           Multiple -b switches may be used. When no -b switch is used, all
34           input spectral bands are set for output.
35
36       -w weight_val:
37           Specify a weight for the computation of the pseudo panchromatic
38           value. There must be as many -w switches as input spectral bands.
39
40       -r {nearest,bilinear,cubic (default),cubicspline,lanczos,average}:
41           Select a resampling algorithm.
42
43       -threads {ALL_CPUS,number}:
44           Specify number of threads to use to do the resampling and pan-
45           sharpening itself. Can be an integer number or ALL_CPUS.
46
47       -bitdepth val:
48           Specify the bit depth of the panchromatic and spectral bands (e.g.
49           12). If not specified, the NBITS metadata item from the
50           panchromatic band will be used if it exists.
51
52       -nodata val:
53           Specify nodata value for bands. Used for the resampling and pan-
54           sharpening computation itself. If not set, deduced from the input
55           bands, provided they have a consistent setting.
56
57       -spat_adjust {union (default),intersection,none,nonewithoutwarning}:
58           Select behaviour when bands have not the same extent. See
59           SpatialExtentAdjustment documentation in VRT tutorial
60
61       -co 'NAME=VALUE':
62           Passes a creation option to the output format driver. Multiple -co
63           options may be listed. See format specific documentation for legal
64           creation options for each format.
65
66       -q:
67           Suppress progress monitor and other non-error output.
68
69       pan_dataset
70           Dataset with panchromatic band (first band will be used).
71
72       spectral_dataset[,band=num]
73           Dataset with one or several spectral bands. If the band option is
74           not specified, all bands of the datasets are taken into account.
75           Otherwise, only the specified (num)th band. The same dataset can be
76           repeated several times.
77
78       out_dataset
79           Output dataset
80
81       Bands should be in the same projection.
82

EXAMPLE

84       With spectral bands in a single dataset :
85
86       gdal_pansharpen.py panchro.tif multispectral.tif pansharpened_out.tif
87
88
89       With a few spectral bands from a single dataset, reordered :
90
91       gdal_pansharpen.py panchro.tif multispectral.tif,band=3 multispectral.tif,band=2 multispectral.tif,band=1 pansharpened_out.tif
92
93
94       With spectral bands in several datasets :
95
96       gdal_pansharpen.py panchro.tif band1.tif band2.tif band3.tif pansharpened_out.tif
97
98
99       Specify weights:
100
101       gdal_pansharpen.py -w 0.7 -w 0.2 -w 0.1 panchro.tif multispectral.tif pansharpened_out.tif
102
103
104       Specify RGB bands from a RGBNir multispectral dataset while computing
105       the pseudo panchromatic intensity on the 4 RGBNir bands:
106
107       gdal_pansharpen.py -b 1 -b 2 -b 3 panchro.tif rgbnir.tif pansharpened_out.tif
108
109

AUTHORS

111       Even Rouault <even.rouault at spatialys.com>
112
113
114
115GDAL                            Mon Feb 11 2019             gdal_pansharpen(1)
Impressum