ArcGIS栅格计算器

栅格计算器能用好的话真的也是很强大

 

一,arcgis中栅格计算常用表达式(我自己遇到的差不多就这些)

1、将特定值(-9999)赋值为0

Con("raster"==-9999,0,"raster")

2、将某一范围内(如小于0)赋值为0

Con("raster" <0,0,"raster")

3、将特定的栅格值(如1)赋值为空值

setnull("raster"==1,"raster")

4、给空值赋予特定的值(如0)

CON(ISNULL("raster"),0,"raster")

5、平方和开方

(1)Power(raster,2),Power(raster,0.5)

(2)Squre(),SquareRoot()

6、提取栅格数据中特定值

(1)Pick("raster",[1,2,3,......])

(2)Slope>15,提取Slope大于15的格子,赋值为1,其余为0

(3)Con("Slope">5,"Slope"),提取Slope大于5的格子,值不变

(4)工具箱中Math下面的greater工具,结果为1和0

7、将影像中的多个值赋予无效值

SetNull(("raster == -32768)|("raster" == -10000),"raster")

参考:

https://desktop.arcgis.com/zh-cn/arcmap/10.3/tools/spatial-analyst-toolbox/raster-calculator.htm

https://zhuanlan.zhihu.com/p/60319674

https://desktop.arcgis.com/zh-cn/arcmap/10.3/guide-books/extensions/spatial-analyst/map-algebra/what-is-map-algebra.htm

原文地址:https://www.cnblogs.com/icydengyw/p/12801615.html