<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Returning names of rasters with maximum value in ArcGIS Spatial Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/returning-names-of-rasters-with-maximum-value/m-p/474874#M6828</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;If the output of the HighestPosition is the number of raster dataset, this function is not suitable for Jproville's purpose, its return is still to be replaced by the ralated dataset cell original value, and to eliminate the "NoData " output value.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I understood from jproville's question that he wanted to find out &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;which&lt;/SPAN&gt;&lt;SPAN&gt; raster had the max value:&lt;/SPAN&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;...one thing I'd like to see is a raster showing me which of the 23 layers contained the maximum value that was chosen.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;The Max function is fit this application, but why ESRI removed this tool in the 10 version?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;The Max functionality is still there, it's just been moved into a new tool. ESRI changed a lot of things at version 10, names (i.e. UPos -&amp;gt; HighestPosition) and merged some tools (Max/Min/etc = CellStatistics, FocalMax/FocalMean/etc = FocalStatistics etc...).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 31 Jul 2013 23:47:45 GMT</pubDate>
    <dc:creator>Luke_Pinner</dc:creator>
    <dc:date>2013-07-31T23:47:45Z</dc:date>
    <item>
      <title>Returning names of rasters with maximum value</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/returning-names-of-rasters-with-maximum-value/m-p/474868#M6822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a pile of 23 different rasters, on which I'm performing various calculations. One of them is a simple Maximization, using Cell Statistics, and one thing I'd like to see is a raster showing me which of the 23 layers contained the maximum value that was chosen. I'm finding this is pretty hard to do. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In Arc 9.3, I solved this problem using a long string of Con() and Max() statements in the raster calculator, to assign an integer index value to each raster that was selected in the maximization. This is no longer possible in Arc 10 since Max() has been removed. I tried an approach in Python using the code below, but it does not really work. What I'm looking for is a way to return a raster with either index values from 1-23, or ideally the names of each input raster. Each name would be assigned to the cell if it was chosen as a maximum value. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hopefully this makes sense, I can elaborate if not. Any ideas here would be hugely helpful. Here's some sample code I've been playing with, but there has to be a simpler, more elegant solution - perhaps an obvious tool I'm missing?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;opt2 = Con(CellStatistics(["CottonLB","FodderLB","FruitsLB","GroundnutLB","JatrophaLB","MaizeLB","MilletLB","MiscanthusLB","NarcostimulantsLB","OilpalmLB","PulsesLB","RapeseedLB","RiceLB","RootsLB","SorghumLB","SoybeanLB","SugarbeetLB","SugarcaneLB","SunflowerLB","SwitchgrassLB","TubersLB","VegetablesLB","WheatLB","blank"],"MAXIMUM","DATA") == "blank",-9999, Con(CellStatistics(["CottonLB","FodderLB","FruitsLB","GroundnutLB","JatrophaLB","MaizeLB","MilletLB","MiscanthusLB","NarcostimulantsLB","OilpalmLB","PulsesLB","RapeseedLB","RiceLB","RootsLB","SorghumLB","SoybeanLB","SugarbeetLB","SugarcaneLB","SunflowerLB","SwitchgrassLB","TubersLB","VegetablesLB","WheatLB","blank"],"MAXIMUM","DATA") == "CottonLB" ,1, Con(CellStatistics(["CottonLB","FodderLB","FruitsLB","GroundnutLB","JatrophaLB","MaizeLB","MilletLB","MiscanthusLB","NarcostimulantsLB","OilpalmLB","PulsesLB","RapeseedLB","RiceLB","RootsLB","SorghumLB","SoybeanLB","SugarbeetLB","SugarcaneLB","SunflowerLB","SwitchgrassLB","TubersLB","VegetablesLB","WheatLB","blank"],"MAXIMUM","DATA") == "FodderLB" ,2, Con(CellStatistics(["CottonLB","FodderLB","FruitsLB","GroundnutLB","JatrophaLB","MaizeLB","MilletLB","MiscanthusLB","NarcostimulantsLB","OilpalmLB","PulsesLB","RapeseedLB","RiceLB","RootsLB","SorghumLB","SoybeanLB","SugarbeetLB","SugarcaneLB","SunflowerLB","SwitchgrassLB","TubersLB","VegetablesLB","WheatLB","blank"],"MAXIMUM","DATA") == "FruitsLB" ,3, Con(CellStatistics(["CottonLB","FodderLB","FruitsLB","GroundnutLB","JatrophaLB","MaizeLB","MilletLB","MiscanthusLB","NarcostimulantsLB","OilpalmLB","PulsesLB","RapeseedLB","RiceLB","RootsLB","SorghumLB","SoybeanLB","SugarbeetLB","SugarcaneLB","SunflowerLB","SwitchgrassLB","TubersLB","VegetablesLB","WheatLB","blank"],"MAXIMUM","DATA") == "GroundnutLB" ,4, Con(CellStatistics(["CottonLB","FodderLB","FruitsLB","GroundnutLB","JatrophaLB","MaizeLB","MilletLB","MiscanthusLB","NarcostimulantsLB","OilpalmLB","PulsesLB","RapeseedLB","RiceLB","RootsLB","SorghumLB","SoybeanLB","SugarbeetLB","SugarcaneLB","SunflowerLB","SwitchgrassLB","TubersLB","VegetablesLB","WheatLB","blank"],"MAXIMUM","DATA") == "JatrophaLB" ,5, Con(CellStatistics(["CottonLB","FodderLB","FruitsLB","GroundnutLB","JatrophaLB","MaizeLB","MilletLB","MiscanthusLB","NarcostimulantsLB","OilpalmLB","PulsesLB","RapeseedLB","RiceLB","RootsLB","SorghumLB","SoybeanLB","SugarbeetLB","SugarcaneLB","SunflowerLB","SwitchgrassLB","TubersLB","VegetablesLB","WheatLB","blank"],"MAXIMUM","DATA") == "MaizeLB" ,6, Con(CellStatistics(["CottonLB","FodderLB","FruitsLB","GroundnutLB","JatrophaLB","MaizeLB","MilletLB","MiscanthusLB","NarcostimulantsLB","OilpalmLB","PulsesLB","RapeseedLB","RiceLB","RootsLB","SorghumLB","SoybeanLB","SugarbeetLB","SugarcaneLB","SunflowerLB","SwitchgrassLB","TubersLB","VegetablesLB","WheatLB","blank"],"MAXIMUM","DATA") == "MilletLB" ,7, Con(CellStatistics(["CottonLB","FodderLB","FruitsLB","GroundnutLB","JatrophaLB","MaizeLB","MilletLB","MiscanthusLB","NarcostimulantsLB","OilpalmLB","PulsesLB","RapeseedLB","RiceLB","RootsLB","SorghumLB","SoybeanLB","SugarbeetLB","SugarcaneLB","SunflowerLB","SwitchgrassLB","TubersLB","VegetablesLB","WheatLB","blank"],"MAXIMUM","DATA") == "MiscanthusLB" ,8, Con(CellStatistics(["CottonLB","FodderLB","FruitsLB","GroundnutLB","JatrophaLB","MaizeLB","MilletLB","MiscanthusLB","NarcostimulantsLB","OilpalmLB","PulsesLB","RapeseedLB","RiceLB","RootsLB","SorghumLB","SoybeanLB","SugarbeetLB","SugarcaneLB","SunflowerLB","SwitchgrassLB","TubersLB","VegetablesLB","WheatLB","blank"],"MAXIMUM","DATA") == "NarcostimulantsLB" ,9, Con(CellStatistics(["CottonLB","FodderLB","FruitsLB","GroundnutLB","JatrophaLB","MaizeLB","MilletLB","MiscanthusLB","NarcostimulantsLB","OilpalmLB","PulsesLB","RapeseedLB","RiceLB","RootsLB","SorghumLB","SoybeanLB","SugarbeetLB","SugarcaneLB","SunflowerLB","SwitchgrassLB","TubersLB","VegetablesLB","WheatLB","blank"],"MAXIMUM","DATA") == "OilpalmLB" ,10, Con(CellStatistics(["CottonLB","FodderLB","FruitsLB","GroundnutLB","JatrophaLB","MaizeLB","MilletLB","MiscanthusLB","NarcostimulantsLB","OilpalmLB","PulsesLB","RapeseedLB","RiceLB","RootsLB","SorghumLB","SoybeanLB","SugarbeetLB","SugarcaneLB","SunflowerLB","SwitchgrassLB","TubersLB","VegetablesLB","WheatLB","blank"],"MAXIMUM","DATA") == "PulsesLB" ,11, Con(CellStatistics(["CottonLB","FodderLB","FruitsLB","GroundnutLB","JatrophaLB","MaizeLB","MilletLB","MiscanthusLB","NarcostimulantsLB","OilpalmLB","PulsesLB","RapeseedLB","RiceLB","RootsLB","SorghumLB","SoybeanLB","SugarbeetLB","SugarcaneLB","SunflowerLB","SwitchgrassLB","TubersLB","VegetablesLB","WheatLB","blank"],"MAXIMUM","DATA") == "RapeseedLB" ,12, Con(CellStatistics(["CottonLB","FodderLB","FruitsLB","GroundnutLB","JatrophaLB","MaizeLB","MilletLB","MiscanthusLB","NarcostimulantsLB","OilpalmLB","PulsesLB","RapeseedLB","RiceLB","RootsLB","SorghumLB","SoybeanLB","SugarbeetLB","SugarcaneLB","SunflowerLB","SwitchgrassLB","TubersLB","VegetablesLB","WheatLB","blank"],"MAXIMUM","DATA") == "RiceLB" ,13, Con(CellStatistics(["CottonLB","FodderLB","FruitsLB","GroundnutLB","JatrophaLB","MaizeLB","MilletLB","MiscanthusLB","NarcostimulantsLB","OilpalmLB","PulsesLB","RapeseedLB","RiceLB","RootsLB","SorghumLB","SoybeanLB","SugarbeetLB","SugarcaneLB","SunflowerLB","SwitchgrassLB","TubersLB","VegetablesLB","WheatLB","blank"],"MAXIMUM","DATA") == "RootsLB" ,14, Con(CellStatistics(["CottonLB","FodderLB","FruitsLB","GroundnutLB","JatrophaLB","MaizeLB","MilletLB","MiscanthusLB","NarcostimulantsLB","OilpalmLB","PulsesLB","RapeseedLB","RiceLB","RootsLB","SorghumLB","SoybeanLB","SugarbeetLB","SugarcaneLB","SunflowerLB","SwitchgrassLB","TubersLB","VegetablesLB","WheatLB","blank"],"MAXIMUM","DATA") == "SorghumLB" ,15, Con(CellStatistics(["CottonLB","FodderLB","FruitsLB","GroundnutLB","JatrophaLB","MaizeLB","MilletLB","MiscanthusLB","NarcostimulantsLB","OilpalmLB","PulsesLB","RapeseedLB","RiceLB","RootsLB","SorghumLB","SoybeanLB","SugarbeetLB","SugarcaneLB","SunflowerLB","SwitchgrassLB","TubersLB","VegetablesLB","WheatLB","blank"],"MAXIMUM","DATA") == "SoybeanLB" ,16, Con(CellStatistics(["CottonLB","FodderLB","FruitsLB","GroundnutLB","JatrophaLB","MaizeLB","MilletLB","MiscanthusLB","NarcostimulantsLB","OilpalmLB","PulsesLB","RapeseedLB","RiceLB","RootsLB","SorghumLB","SoybeanLB","SugarbeetLB","SugarcaneLB","SunflowerLB","SwitchgrassLB","TubersLB","VegetablesLB","WheatLB","blank"],"MAXIMUM","DATA") == "SugarbeetLB" ,17, Con(CellStatistics(["CottonLB","FodderLB","FruitsLB","GroundnutLB","JatrophaLB","MaizeLB","MilletLB","MiscanthusLB","NarcostimulantsLB","OilpalmLB","PulsesLB","RapeseedLB","RiceLB","RootsLB","SorghumLB","SoybeanLB","SugarbeetLB","SugarcaneLB","SunflowerLB","SwitchgrassLB","TubersLB","VegetablesLB","WheatLB","blank"],"MAXIMUM","DATA") == "SugarcaneLB" ,18, Con(CellStatistics(["CottonLB","FodderLB","FruitsLB","GroundnutLB","JatrophaLB","MaizeLB","MilletLB","MiscanthusLB","NarcostimulantsLB","OilpalmLB","PulsesLB","RapeseedLB","RiceLB","RootsLB","SorghumLB","SoybeanLB","SugarbeetLB","SugarcaneLB","SunflowerLB","SwitchgrassLB","TubersLB","VegetablesLB","WheatLB","blank"],"MAXIMUM","DATA") == "SunflowerLB" ,19, Con(CellStatistics(["CottonLB","FodderLB","FruitsLB","GroundnutLB","JatrophaLB","MaizeLB","MilletLB","MiscanthusLB","NarcostimulantsLB","OilpalmLB","PulsesLB","RapeseedLB","RiceLB","RootsLB","SorghumLB","SoybeanLB","SugarbeetLB","SugarcaneLB","SunflowerLB","SwitchgrassLB","TubersLB","VegetablesLB","WheatLB","blank"],"MAXIMUM","DATA") == "SwitchgrassLB" ,20, Con(CellStatistics(["CottonLB","FodderLB","FruitsLB","GroundnutLB","JatrophaLB","MaizeLB","MilletLB","MiscanthusLB","NarcostimulantsLB","OilpalmLB","PulsesLB","RapeseedLB","RiceLB","RootsLB","SorghumLB","SoybeanLB","SugarbeetLB","SugarcaneLB","SunflowerLB","SwitchgrassLB","TubersLB","VegetablesLB","WheatLB","blank"],"MAXIMUM","DATA") == "TubersLB" ,21, Con(CellStatistics(["CottonLB","FodderLB","FruitsLB","GroundnutLB","JatrophaLB","MaizeLB","MilletLB","MiscanthusLB","NarcostimulantsLB","OilpalmLB","PulsesLB","RapeseedLB","RiceLB","RootsLB","SorghumLB","SoybeanLB","SugarbeetLB","SugarcaneLB","SunflowerLB","SwitchgrassLB","TubersLB","VegetablesLB","WheatLB","blank"],"MAXIMUM","DATA") == "VegetablesLB" ,22, Con(CellStatistics(["CottonLB","FodderLB","FruitsLB","GroundnutLB","JatrophaLB","MaizeLB","MilletLB","MiscanthusLB","NarcostimulantsLB","OilpalmLB","PulsesLB","RapeseedLB","RiceLB","RootsLB","SorghumLB","SoybeanLB","SugarbeetLB","SugarcaneLB","SunflowerLB","SwitchgrassLB","TubersLB","VegetablesLB","WheatLB","blank"],"MAXIMUM","DATA") == "WheatLB" ,23,-9999))))))))))))))))))))))))&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jul 2013 18:07:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/returning-names-of-rasters-with-maximum-value/m-p/474868#M6822</guid>
      <dc:creator>JeremyProville</dc:creator>
      <dc:date>2013-07-30T18:07:27Z</dc:date>
    </item>
    <item>
      <title>Re: Returning names of rasters with maximum value</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/returning-names-of-rasters-with-maximum-value/m-p/474869#M6823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Use the &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Highest_Position/009z0000007v000000/" rel="nofollow" target="_blank"&gt;HighestPosition&lt;/A&gt;&lt;SPAN&gt; function/tool. Used to be called &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?TopicName=upos" rel="nofollow" target="_blank"&gt;UPos&lt;/A&gt;&lt;SPAN&gt; in earlier versions.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jul 2013 02:13:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/returning-names-of-rasters-with-maximum-value/m-p/474869#M6823</guid>
      <dc:creator>Luke_Pinner</dc:creator>
      <dc:date>2013-07-31T02:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: Returning names of rasters with maximum value</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/returning-names-of-rasters-with-maximum-value/m-p/474870#M6824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Use the &lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Highest_Position/009z0000007v000000/"&gt;HighestPosition&lt;/A&gt; function/tool. Used to be called &lt;A href="http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?TopicName=upos"&gt;UPos&lt;/A&gt; in earlier versions.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks lpinner, this was spot-on! In theory it is doing what I need, however in practice it's not working out exactly as planned. I have a follow up question I'm hoping I can get some help with:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Running the tool with three or more input datasets seems to include only results that are an intersection of all the inputs. All other non-intersecting areas are NoData. What I would like is to have a dataset represented in the results, even if it is the only one with a value in a specific cell. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried get around this by adding in a constant value as an input, or a blank raster with constant values everywhere, such that there would be a 'dummy' for comparison for every cell. This didn't seem to work and I'd love to hear about any ideas or further insight into how this tool works.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Much appreciated!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jul 2013 15:22:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/returning-names-of-rasters-with-maximum-value/m-p/474870#M6824</guid>
      <dc:creator>JeremyProville</dc:creator>
      <dc:date>2013-07-31T15:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: Returning names of rasters with maximum value</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/returning-names-of-rasters-with-maximum-value/m-p/474871#M6825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Thanks lpinner, this was spot-on! In theory it is doing what I need, however in practice it's not working out exactly as planned. I have a follow up question I'm hoping I can get some help with:&lt;BR /&gt;...&lt;BR /&gt;Much appreciated!&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you check that HighestPosition (or Upos) function works well or not?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I never use this function, but it seems the illustration from ESRI book is not correct - the return is not always the cell with Max value. ig: the downside left conner cell values from input raster datasets are 4, 3, 1, but the return value for this cell is 1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But the illustration for Max (9 version) function is correct - this cell return value is 4.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If the HighestPosition works and your source rasters does't include the 0 value, you can asign the NoData to 0 first;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;After you get the HighestPosition output, you can asign the 0 value back to NoData (those 0 value celles indicates all input raster datasets are the 0 value in those locations. You don't need to have any value for those celles) .&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jul 2013 17:44:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/returning-names-of-rasters-with-maximum-value/m-p/474871#M6825</guid>
      <dc:creator>TOMKONG</dc:creator>
      <dc:date>2013-07-31T17:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: Returning names of rasters with maximum value</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/returning-names-of-rasters-with-maximum-value/m-p/474872#M6826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Running the tool with three or more input datasets seems to include only results that are an intersection of all the inputs. All other non-intersecting areas are NoData. What I would like is to have a dataset represented in the results, even if it is the only one with a value in a specific cell. &lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It's working as expected.&amp;nbsp; The default processing extent is the intersection of input extents, change this to union - see the &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/Output_Extent/001w00000009000000/"&gt;help for more info&lt;/A&gt;&lt;SPAN&gt;.&amp;nbsp; However, any cell with NoData will be NoData in the output.&amp;nbsp; So change it to a low number first.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i.e. in the raster calculator:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;HighestPosition(Con(IsNull(raster1), -999, raster1), Con(IsNull(raster2), -999, raster2), Con(IsNull(raster3), -999, raster3))&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Did you check that HighestPosition (or Upos) function works well or not?&lt;BR /&gt;I never use this function, but it seems the illustration from ESRI book is not correct - the return is not always the cell with Max value. ig: the downside left conner cell values from input raster datasets are 4, 3, 1, but the return value for this cell is 1.&lt;BR /&gt;But the illustration for Max (9 version) function is correct - this cell return value is 4.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;No, the return value of 1 is correct. HighestPosition/Upos returns the &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;position&lt;/SPAN&gt;&lt;SPAN&gt; of the raster with the highest value in the list, not the maximum value itself.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For your example of 4, 3, 1, 4 is the max and it is at position 1.&amp;nbsp; For something like 9, 12, 7, the HighestPosition/Upos value would be 2 as the raster with the highest value is at the 2nd position in the list.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jul 2013 21:08:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/returning-names-of-rasters-with-maximum-value/m-p/474872#M6826</guid>
      <dc:creator>Luke_Pinner</dc:creator>
      <dc:date>2013-07-31T21:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: Returning names of rasters with maximum value</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/returning-names-of-rasters-with-maximum-value/m-p/474873#M6827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;It's working as expected.&amp;nbsp; The default processing extent is the intersection of input extents, change this to union - see the &lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/Output_Extent/001w00000009000000/"&gt;help for more info&lt;/A&gt;.&amp;nbsp; However, any cell with NoData will be NoData in the output.&amp;nbsp; So change it to a low number first.&lt;BR /&gt;&lt;BR /&gt;i.e. in the raster calculator:&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;HighestPosition(Con(IsNull(raster1), -999, raster1), Con(IsNull(raster2), -999, raster2), Con(IsNull(raster3), -999, raster3))&lt;/PRE&gt;&lt;BR /&gt; &lt;BR /&gt;No, the return value of 1 is correct. HighestPosition/Upos returns the &lt;SPAN style="font-style:italic;"&gt;position&lt;/SPAN&gt; of the raster with the highest value in the list, not the maximum value itself.&lt;BR /&gt;&lt;BR /&gt;For your example of 4, 3, 1, 4 is the max and it is at position 1.&amp;nbsp; For something like 9, 12, 7, the HighestPosition/Upos value would be 2 as the raster with the highest value is at the 2nd position in the list.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your explanation about HighestPosition output.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If the output of the HighestPosition is the number of raster dataset, this function is not suitable for Jproville's purpose, its return is still to be replaced by the ralated dataset cell original value, and to eliminate the "NoData " output value.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The Max function is fit this application, but why ESRI removed this tool in the 10 version?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jul 2013 22:35:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/returning-names-of-rasters-with-maximum-value/m-p/474873#M6827</guid>
      <dc:creator>TOMKONG</dc:creator>
      <dc:date>2013-07-31T22:35:21Z</dc:date>
    </item>
    <item>
      <title>Re: Returning names of rasters with maximum value</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/returning-names-of-rasters-with-maximum-value/m-p/474874#M6828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;If the output of the HighestPosition is the number of raster dataset, this function is not suitable for Jproville's purpose, its return is still to be replaced by the ralated dataset cell original value, and to eliminate the "NoData " output value.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I understood from jproville's question that he wanted to find out &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;which&lt;/SPAN&gt;&lt;SPAN&gt; raster had the max value:&lt;/SPAN&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;...one thing I'd like to see is a raster showing me which of the 23 layers contained the maximum value that was chosen.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;The Max function is fit this application, but why ESRI removed this tool in the 10 version?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;The Max functionality is still there, it's just been moved into a new tool. ESRI changed a lot of things at version 10, names (i.e. UPos -&amp;gt; HighestPosition) and merged some tools (Max/Min/etc = CellStatistics, FocalMax/FocalMean/etc = FocalStatistics etc...).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jul 2013 23:47:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/returning-names-of-rasters-with-maximum-value/m-p/474874#M6828</guid>
      <dc:creator>Luke_Pinner</dc:creator>
      <dc:date>2013-07-31T23:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: Returning names of rasters with maximum value</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/returning-names-of-rasters-with-maximum-value/m-p/474875#M6829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks to both for your responses. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TKONG, indeed lpinner's first answer was right, I was looking for the HighestPosition tool and not the max tool. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;lpinner, appreciate your code suggestion - I tried a great deal of variations on it, but I continue to be baffled by the fact that I only keep getting the intersection of the inputs rather than the union. No matter what I seem to try (e.g. tinkering with the GP extent, con() isnull() and setnull() in raster calculator), I get the same result. I've also tried forcing -999 NoData values through Catalog. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In any case, thanks for all your help and I'll post back if I figure out the problem. Let me know if you have any further ideas.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Aug 2013 18:40:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/returning-names-of-rasters-with-maximum-value/m-p/474875#M6829</guid>
      <dc:creator>JeremyProville</dc:creator>
      <dc:date>2013-08-05T18:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: Returning names of rasters with maximum value</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/returning-names-of-rasters-with-maximum-value/m-p/474876#M6830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; I tried a great deal of variations on it, but I continue to be baffled by the fact that I only keep getting the intersection of the inputs rather than the union. &lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you saying the output &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;extent &lt;/SPAN&gt;&lt;SPAN&gt; is wrong (this is what the environment controls) or just the particular &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;cells&lt;/SPAN&gt;&lt;SPAN&gt; are only getting a value if all the inputs from the stack are data cells? If the latter, Luke's suggestion,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;Con(IsNull(raster), -999, raster)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;should work.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Aug 2013 20:02:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/returning-names-of-rasters-with-maximum-value/m-p/474876#M6830</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2013-08-05T20:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: Returning names of rasters with maximum value</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/returning-names-of-rasters-with-maximum-value/m-p/474877#M6831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Are you saying the output &lt;SPAN style="font-style:italic;"&gt;extent &lt;/SPAN&gt; is wrong (this is what the environment controls) or just the particular &lt;SPAN style="font-style:italic;"&gt;cells&lt;/SPAN&gt; are only getting a value if all the inputs from the stack are data cells? If the latter, Luke's suggestion,&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;Con(IsNull(raster), -999, raster)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;should work.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It is the latter - I've tried the code you mentioned and variations of it, but even by forcing NoData values into all input datasets, it still only gives me the intersection of all inputs, and does not consider all areas that were previously NoData. It is very strange. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The closest I've gotten to understanding this is by going in ArcCatalog and forcing in NoData values to -9999. But it still is erratic, I'll illustrate with an example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Rasters A and B contain data. I force NoData values in these rasters to be -9999, either in Catalog or by using raster calculator with the code above. If I now use HighestPosition on these, it still only returns intersecting data in areas where values were anything but -9999... i.e. it seems to know where those NoData areas were, and omits them.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;However, if I put in Raster A, and a constant dummy value of e.g. -1 as the inputs to HighestPosition, it works and includes all '-9999' areas in the output. Putting in Rasters A, B and the dummy constant makes it fail again, and the output ignores -9999 areas in it's calculation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any insight much appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Aug 2013 20:56:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/returning-names-of-rasters-with-maximum-value/m-p/474877#M6831</guid>
      <dc:creator>JeremyProville</dc:creator>
      <dc:date>2013-08-05T20:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: Returning names of rasters with maximum value</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/returning-names-of-rasters-with-maximum-value/m-p/474878#M6832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm sure setting the output extent to MAXOF/union of inputs used to work in Workstation GRID/older versions of Spatial Analyst when the multiple inputs were Con(IsNull(...),...) functions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think what is happening is that ArcGIS is processing the raster calculator statement from inside to out - i.e it processes the Con(IsNull(...),...) statements individually and as there is only one raster in each of those, the output extent for each Con... statement is set to that of the single input raster, instead of parsing the whole statement and working out the extent for all rasters before processing the Con statements.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Workaround:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Generate a dummy raster with output extent set to MAXOF/union of inputs using something like raster1+raster2+etc... &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Then set output extent = dummy raster and run HighestPosition(Con(IsNull(raster1),-999,raster1),etc...)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Aug 2013 22:15:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/returning-names-of-rasters-with-maximum-value/m-p/474878#M6832</guid>
      <dc:creator>Luke_Pinner</dc:creator>
      <dc:date>2013-08-05T22:15:31Z</dc:date>
    </item>
    <item>
      <title>Re: Returning names of rasters with maximum value</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/returning-names-of-rasters-with-maximum-value/m-p/474879#M6833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Luke - that and a combination of the other workarounds seems to have done the trick. I ended up making a blank 'extent' raster with -9999 values in every cell, and using that to set the extent. I also had to toss in a constant (-9998) in the final raster calculator formula, for HighestPosition. I put this in last place so that I could filter out these NoData (now -9998) areas. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Appreciate everyone's help!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Aug 2013 16:11:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/returning-names-of-rasters-with-maximum-value/m-p/474879#M6833</guid>
      <dc:creator>JeremyProville</dc:creator>
      <dc:date>2013-08-06T16:11:50Z</dc:date>
    </item>
  </channel>
</rss>

