<?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 Rounding raster values up AND down in ArcGIS Spatial Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/rounding-raster-values-up-and-down/m-p/1087998#M11428</link>
    <description>&lt;P&gt;I'm using ArcGIS Pro 2.8.2. I have Raster Calculator code that performs well for rounding and converting my data into julian dates, but it gets the wrong final result when the decimal is above 0.5 and should be rounded up. I'd like to add a Con function to the end, but am not sure exactly how to format it. Any help would be greatly appreciated!&lt;/P&gt;&lt;P&gt;My current code is:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Int((((Int(x)-1)*16)+1)+((x-Int(x))*16))&lt;/LI-CODE&gt;&lt;P&gt;where x represents the raster's data.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 11 Aug 2021 17:00:17 GMT</pubDate>
    <dc:creator>BeckB</dc:creator>
    <dc:date>2021-08-11T17:00:17Z</dc:date>
    <item>
      <title>Rounding raster values up AND down</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/rounding-raster-values-up-and-down/m-p/1087998#M11428</link>
      <description>&lt;P&gt;I'm using ArcGIS Pro 2.8.2. I have Raster Calculator code that performs well for rounding and converting my data into julian dates, but it gets the wrong final result when the decimal is above 0.5 and should be rounded up. I'd like to add a Con function to the end, but am not sure exactly how to format it. Any help would be greatly appreciated!&lt;/P&gt;&lt;P&gt;My current code is:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Int((((Int(x)-1)*16)+1)+((x-Int(x))*16))&lt;/LI-CODE&gt;&lt;P&gt;where x represents the raster's data.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2021 17:00:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/rounding-raster-values-up-and-down/m-p/1087998#M11428</guid>
      <dc:creator>BeckB</dc:creator>
      <dc:date>2021-08-11T17:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding raster values up AND down</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/rounding-raster-values-up-and-down/m-p/1088027#M11429</link>
      <description>&lt;LI-CODE lang="c"&gt;y = Int((((Int(x)-1)*16)+1)+((x-Int(x))*16))

Con( (x - Int(x) &amp;lt; 0.5), y, y+1)&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 11 Aug 2021 17:59:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/rounding-raster-values-up-and-down/m-p/1088027#M11429</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2021-08-11T17:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: Rounding raster values up AND down</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/rounding-raster-values-up-and-down/m-p/1088036#M11430</link>
      <description>&lt;P&gt;A few more functions to consider:&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/spatial-analyst/round-up.htm" target="_self"&gt;Round Up&lt;/A&gt; (used to be Ceil())&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/spatial-analyst/round-down.htm" target="_self"&gt;Round Down&lt;/A&gt; (used to be Floor())&lt;/P&gt;&lt;P&gt;Either of these expressions will round a value &amp;gt;=0.5 up and others down&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Int(x + 0.5)
RoundDown(x + 0.5)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2021 18:09:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/rounding-raster-values-up-and-down/m-p/1088036#M11430</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2021-08-11T18:09:12Z</dc:date>
    </item>
  </channel>
</rss>

