[英]ArcMap conditional statement raster attribute?
I'm having difficulty with the syntax to do the following: 我在语法上遇到困难,无法执行以下操作:
I have four raster products from various classifications. 我有四种来自各种分类的光栅产品。 Each has one or two classes representing the units I am interested in, so I want to use raster calculator to make a new raster where unit of interest in each of the inputs is reduced to values of 0 or 1 (for presence or absence of class(es) of interest) and then summed into a final raster values 0 to 4 to represent degree of agreement between classification methods.
每个类别都有一个或两个表示我感兴趣的单位的类,因此我想使用栅格计算器制作一个新的栅格,其中每个输入中的感兴趣单位都减小为0或1(存在或不存在类别) (es)),然后将其汇总为最终栅格值0到4,以表示分类方法之间的一致性。
When inspecting these rasters they have attributes "Class Name", "Color Index" and "Color(a,r,g,b)", and I'm having trouble figuring out the syntax to query them. 检查这些栅格时,它们具有属性“类名称”,“颜色索引”和“颜色(a,r,g,b)”,而我在弄清楚查询它们的语法时遇到了麻烦。
Thank you! 谢谢!
RT 逆转录
I was able to resolve the problem. 我能够解决问题。 I was "viewing" classification rasters in ArcMap after creating them in ENVI, and as such ArcMap could not process them.
在ENVI中创建分类栅格后,我正在“查看”分类栅格,因此ArcMap无法处理它们。 I had to export each as a new file through ArcMap, reopen them, and then use the following syntax:
我必须通过ArcMap将每个导出为新文件,重新打开它们,然后使用以下语法:
Con("Raster1" == 3, 1, 0) + Con("Raster2" == 7, 1, 0)..... Con(“ Raster1” == 3,1,0)+ Con(“ Raster2” == 7,1,0).....
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.