Label | Explanation | Data Type |
Input Raster | The raster dataset that will be pan sharpened. | Mosaic Dataset; Mosaic Layer; Raster Dataset; Raster Layer |
Red Channel | The input raster band that will display with the red color channel. | Long |
Green Channel | The input raster band that will display with the green color channel. | Long |
Blue Channel | The input raster band that will display with the blue color channel. | Long |
Infrared Channel (Optional) | The input raster band that will display with the infrared color channel. | Long |
Output Raster Dataset | The name, location, and format of the raster dataset that will be created. When storing the raster dataset in a file format, specify the file extension as follows: When storing a raster dataset in a geodatabase, do not add a file extension to the name of the raster dataset. When storing the raster dataset in a file format, you must specify the file extension:
When storing a raster dataset in a geodatabase, do not add a file extension to the name of the raster dataset. When storing a raster dataset to a JPEG format file, a JPEG 2000 format file, a TIFF format file, or a geodatabase, you can specify Compression Type and Compression Quality values in the geoprocessing environments. | Raster Dataset |
Panchromatic Image | The higher-resolution panchromatic image. | Raster Layer |
Pan-sharpening Type | Specifies the algorithm that will be used to combine the panchromatic and multispectral bands.
| String |
Red Weight (Optional) | A value from 0 to 1 that will be used to weight the red band. | Double |
Green Weight (Optional) | A value from 0 to 1 that will be used to weight the green band. | Double |
Blue Weight (Optional) | A value from 0 to 1 that will be used to weight the blue band. | Double |
Infrared Weight (Optional) | A value from 0 to 1 that will be used to weight the infrared band. | Double |
Sensor
(Optional) | Specifies the sensor of the multiband raster input. You can specify the sensor when the Pan-sharpening Type parameter is set to Gram-Schmidt. Specifying the sensor will set appropriate band weights.
| String |
Summary
Combines a high-resolution panchromatic raster dataset with a lower-resolution multiband raster dataset to create a high-resolution multiband raster dataset for visual analysis.
Usage
Only the areas that fully overlap will be affected by this tool.
You can save the output to BIL, BIP, BMP, BSQ, DAT, Esri Grid , GIF, IMG, JPEG, JPEG 2000, PNG, TIFF, MRF, or CRF format or to any geodatabase raster dataset.
The four weight values assigned to the blue, green, red, and infrared bands allow you to adjust the pan-sharpening algorithms.
Pan sharpening performed on a three-band raster dataset will produce a raster dataset that has three bands. Pan sharpening performed on a four-band raster dataset will produce a raster dataset that has four bands.
Parameters
arcpy.management.CreatePansharpenedRasterDataset(in_raster, red_channel, green_channel, blue_channel, {infrared_channel}, out_raster_dataset, in_panchromatic_image, pansharpening_type, {red_weight}, {green_weight}, {blue_weight}, {infrared_weight}, {sensor})
Name | Explanation | Data Type |
in_raster | The raster dataset that will be pan sharpened. | Mosaic Dataset; Mosaic Layer; Raster Dataset; Raster Layer |
red_channel | The input raster band that will display with the red color channel. | Long |
green_channel | The input raster band that will display with the green color channel. | Long |
blue_channel | The input raster band that will display with the blue color channel. | Long |
infrared_channel (Optional) | The input raster band that will display with the infrared color channel. | Long |
out_raster_dataset | The name, location, and format of the raster dataset that will be created. When storing the raster dataset in a file format, specify the file extension as follows: When storing a raster dataset in a geodatabase, do not add a file extension to the name of the raster dataset. When storing the raster dataset in a file format, you must specify the file extension:
When storing a raster dataset in a geodatabase, do not add a file extension to the name of the raster dataset. When storing a raster dataset to a JPEG format file, a JPEG 2000 format file, a TIFF format file, or a geodatabase, you can specify Compression Type and Compression Quality values in the geoprocessing environments. | Raster Dataset |
in_panchromatic_image | The higher-resolution panchromatic image. | Raster Layer |
pansharpening_type | Specifies the algorithm that will be used to combine the panchromatic and multispectral bands.
| String |
red_weight (Optional) | A value from 0 to 1 that will be used to weight the red band. | Double |
green_weight (Optional) | A value from 0 to 1 that will be used to weight the green band. | Double |
blue_weight (Optional) | A value from 0 to 1 that will be used to weight the blue band. | Double |
infrared_weight (Optional) | A value from 0 to 1 that will be used to weight the infrared band. | Double |
sensor (Optional) | Specifies the sensor of the multiband raster input. You can specify the sensor when the pansharpening_type parameter is set to Gram-Schmidt. Specifying the sensor will set appropriate band weights.
| String |
Code sample
This is a Python sample for the CreatePansharpenedRasterDataset function.
import arcpy
arcpy.CreatePansharpenedRasterDataset_management(
"c:/data/rgbn.tif","3","2","1","4", "c:/data/outpan.tif",
"c:/data/in_pan.img","Gram-Schmidt","","","","","QuickBird")
This is a Python script sample for the CreatePansharpenedRasterDataset function.
#3 Band RGB Pansharpen with Brovey algorithm
import arcpy
arcpy.env.workspace = "C:/workspace"
arcpy.CreatePansharpenedRasterDataset_management(
"rgb.img","3","2","1","1", "output\\rgb_pan.img","pan.img","Brovey")
Environments
Licensing information
- Basic: Yes
- Standard: Yes
- Advanced: Yes