サマリー
Creates a raster object by changing the spatial resolution of the input raster and sets rules for aggregating or interpolating values across the new pixel sizes.
説明
For more information about how this function works, see the Resample 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.
構文
Resample (raster, {resampling_type}, {input_cellsize}, {output_cellsize})
パラメーター | 説明 | データ タイプ |
raster | The input raster. | Raster |
resampling_type | The method used to change the spatial resolution of the input raster.
(デフォルト値は次のとおりです None) | String |
input_cellsize | The cell size of the input raster. (デフォルト値は次のとおりです None) | Double |
output_cellsize | The cell size of the output raster. (デフォルト値は次のとおりです None) | Double |
データ タイプ | 説明 |
Raster | The output raster. |
コードのサンプル
Resamples the input raster from a 1-meter spatial resolution to 3-meter resolution using the NearestNeighbor method.
Import arcpy
resampled_raster = arcpy.ia.Resample("NAIP_1_meter.tif", "NearestNeighbor", 1, 3)