简体   繁体   English

ArcMap条件语句的栅格属性?

[英]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.

相关问题 将表连接到栅格属性表以使用重新分类的值python或R创建新栅格 - Joining tables to a raster attribute table to create new raster with the reclassified values python or R Rapidminer if else语句,用于属性生成 - rapidminer if else statement for attribute generation 分类的栅格图像提取R中的信息循环 - Classified raster images extract infos loop in R RSNNS神经网络预测R中的栅格图像分类 - RSNNS neural network prediction for raster image classification in R 在新的栅格数据集上加载分类树模型 - Load classification tree model on new raster data set 如何创建仅包含两个类别的分类栅格值的箱线图? - How to create a boxplot containing the values of a classified raster for only two classes? 通过使用其他Raster(数字高程模型)对RasterBrick中的值进行重新分类 - Reclassify values in a RasterBrick by the use of an additional Raster (Digital elevation model) 计算多个重叠多边形(shapefile)内的栅格景观比例(百分比)? - Calculate raster landscape proportion (percentage) within multiple overlaping polygon (shapefiles)? 在 RStudio 中创建集群值并将其设置为新的栅格 k 均值分类 - Creating and setting clusters values to a new raster- k-mean classification in RStudio 使用提取 function 从 R 中的栅格中提取像素值时维护 SpatialPolygonDataFrame 列? - Maintaining SpatialPolygonDataFrame Column when using extract function to extract pixel values from a Raster in R?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM