Getting the majority value for a number of rasters in a conditional statement

المشرف العام

Administrator
طاقم الإدارة
I am trying to execute a conditional statement using Python and ArcGIS 10.1 that looks something like this:

outRas = Con( MAJORITY (raster1, raster2, raster3, raster4) > 110, 1, 0)The idea is that I want to check if the most common value for the current pixel among the provided rasters is greater than 110, and if so, assign a value of 1 to the output raster. Of course, there is no such function called MAJORITY, however I'm wondering if there is something equivalent, or if anyone knows of any other way to achieve this.



أكثر...
 
أعلى