<?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 Get the Minimum and Maximum Using the RasterCalculator Function in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/get-the-minimum-and-maximum-using-the/m-p/1400361#M70152</link>
    <description>&lt;P&gt;I'm working on a Python script to normalize my raster image using the RasterCalculator function in ArcGIS Pro. However, I'm encountering an issue with accessing the minimum and maximum values of the raster dataset. When using the ArcGIS GUI, the calculation works as expected, but in my script, it doesn't recognize 'minimum' or 'maximum'. Here's a snippet of my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;normalised_raster = arcpy.ia.RasterCalculator([&lt;SPAN class=""&gt;"test.tif"], [&lt;SPAN class=""&gt;"x"], &lt;SPAN class=""&gt;"(x - x.minimum) / (x.maximum - x.minimum)")&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;How can I properly access the minimum and maximum values to perform this raster calculation in my script?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;How can I properly access the minimum and maximum values to perform this raster calculation in my script?&lt;/P&gt;</description>
    <pubDate>Mon, 25 Mar 2024 14:52:51 GMT</pubDate>
    <dc:creator>James477</dc:creator>
    <dc:date>2024-03-25T14:52:51Z</dc:date>
    <item>
      <title>Get the Minimum and Maximum Using the RasterCalculator Function</title>
      <link>https://community.esri.com/t5/python-questions/get-the-minimum-and-maximum-using-the/m-p/1400361#M70152</link>
      <description>&lt;P&gt;I'm working on a Python script to normalize my raster image using the RasterCalculator function in ArcGIS Pro. However, I'm encountering an issue with accessing the minimum and maximum values of the raster dataset. When using the ArcGIS GUI, the calculation works as expected, but in my script, it doesn't recognize 'minimum' or 'maximum'. Here's a snippet of my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;normalised_raster = arcpy.ia.RasterCalculator([&lt;SPAN class=""&gt;"test.tif"], [&lt;SPAN class=""&gt;"x"], &lt;SPAN class=""&gt;"(x - x.minimum) / (x.maximum - x.minimum)")&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;How can I properly access the minimum and maximum values to perform this raster calculation in my script?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;How can I properly access the minimum and maximum values to perform this raster calculation in my script?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2024 14:52:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/get-the-minimum-and-maximum-using-the/m-p/1400361#M70152</guid>
      <dc:creator>James477</dc:creator>
      <dc:date>2024-03-25T14:52:51Z</dc:date>
    </item>
  </channel>
</rss>

