Pansharpen
サマリー
Creates a higher-resolution multiband image by fusing a lower-resolution multispectral image and a higher-resolution panchromatic image.
ディスカッション
For more information about how this function works, see the Pansharpen raster function.
The referenced raster dataset for the raster object is temporary. To make it permanent, you can call the raster object's save method.
構文
Pansharpen(pan_raster, ms_raster, {ir_raster}, {fourth_band_of_ms_is_ir}, {weights}, {type}, {sensor})
| パラメーター | 説明 | データ タイプ |
|---|---|---|
|
pan_raster |
The input panchromatic raster. |
Raster |
|
ms_raster |
The input multispectral raster. |
Raster |
|
ir_raster |
Specify the path to a single-band image containing the near-infrared band. The default value is None. |
Raster |
|
fourth_band_of_ms_is_ir |
Specify that the fourth band of the input multispectral raster (
The default value is True. |
Boolean |
|
weights |
Specify weights applied to Red, Green, Blue, Near-Infrared bands. Sum of the weights is The default value is [0.166, 0.167, 0.167, 0.5]. |
String |
|
type |
Specify the Pansharpening method.
The default value is ESRI. |
String |
|
sensor |
Specify the sensor name of the input imagery when the pansharpening method is The default value is None. |
String |
戻り値
| データ タイプ | 説明 |
|---|---|
|
Raster |
The output pansharpened raster. |
コードのサンプル
Create a higher-resolution multiband image by fusing a lower-resolution multispectral image and a higher-resolution panchromatic image.
import arcpy
Pansharpen_raster = arcpy.ia.Pansharpen(imagePath1, imagePath2, None, True, [0.166, 0.167, 0.167, 0.5], "Gram-Schmidt", None)