Краткая информация
Создает растровый объект, где каждый пиксел содержит количество раз, в которое набор растров больше, чем другой растр.
Обсуждение
Дополнительные сведения о работе этой функции см. в инструменте Частота больше чем.
Указанный набор растровых данных является временным для растрового объекта. Чтобы сделать его постоянным, вы можете вызвать метод растрового объекта save.
Синтаксис
GreaterThanFrequency (value_raster, rasters, {extent_type}, {cellsize_type}, {process_as_multiband})| Параметр | Описание | Тип данных | 
value_raster  | A value raster that will be referenced by the list of input rasters.  | Raster | 
rasters [rasters,...]  | The list of input rasters.  | Raster | 
extent_type  | The method that will be used to compute the extent of the output when the input rasters have different extents. 
 (Значение по умолчанию — FirstOf)  | String | 
cellsize_type  | The method that will be used to compute the pixel size of the output when the input rasters have different pixel sizes. 
 (Значение по умолчанию — FirstOf)  | String | 
process_as_multiband  | Specifies how the bands of the input rasters will be processed. 
 (Значение по умолчанию — False)  | Boolean | 
| Тип данных | Описание | 
| Raster | 
 Выходной растр.  | 
Пример кода
Вычисляет, во сколько раз набор входных растров больше, чем растр значений.
# Import system modules
import arcpy
from arcpy.ia import *
#Set the local variables
value_raster = r"c:\temp\value_raster.tif"
rasters = [r"c:\temp\raster1.tif", r"c:\temp\raster2.tif", r"c:\temp\raster3.tif"] 
#Execute
GreaterThan_raster = GreaterThanFrequency(value_raster, rasters, "UnionOf", "FirstOf", True)