摘要
通过将栅格函数或函数链应用于一个或多个输入栅格来创建栅格对象。
说明
使用 Apply 函数处理一个或多个应用了栅格函数或函数链的栅格数据集。 此函数将创建一个栅格对象,此栅格对象是应用了栅格函数的输入栅格对象。
输出栅格对象所引用的栅格数据集是临时性的。 要将其设置为永久,可以调用栅格对象的 save 方法。
语法
Apply (in_raster, raster_function, {raster_function_arguments})
参数 | 说明 | 数据类型 |
in_raster [in_raster,...] | The input raster dataset or datasets. The input can include the following:
| Raster |
raster_function | The name of a raster function or the path to a custom raster function (.rft.xml file) to apply to the input. | String |
raster_function_arguments | The parameters and values associated with the raster function or function chain. If not specified, and if applicable, default values will be used. For example, the Tasseled Cap raster function does not require any arguments; the input is a single raster, so there is no need to specify arguments. The Arithmetic raster function, however, requires 5 input parameters: Raster, Raster2, Operation, Cellsize Type and Extent Type. To use Arithmetic with the Apply function, Raster and Raster2 are defined in the in_raster parameter, and the remaining parameters have default values, so if nothing is specified for those parameters, the default values will be used. For information about the function arguments for each raster function, see Raster function objects. | Dictionary |
数据类型 | 说明 |
Raster | 应用了函数的输出栅格数据集。 |