<?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: Point to Raster rounds large numbers wrongly in ArcMap Questions</title>
    <link>https://community.esri.com/t5/arcmap-questions/point-to-raster-rounds-large-numbers-wrongly/m-p/270322#M651</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No problem Giacomo, you might want to mark the correct answer so this is closed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Oct 2018 18:26:50 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2018-10-30T18:26:50Z</dc:date>
    <item>
      <title>Point to Raster rounds large numbers wrongly</title>
      <link>https://community.esri.com/t5/arcmap-questions/point-to-raster-rounds-large-numbers-wrongly/m-p/270317#M646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I noticed that the Point to Raster tool is not respecting the original point values when these are in over the hundred thousands.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is in the 10k it rounds the numbers are close but not exactly the same. In this example the original point value has 2 decimal points while the raster value has 6 and it is not exactly the same number:&lt;/P&gt;&lt;P&gt;Point value 24946.34&lt;BR /&gt;Pixel value 24946.339844&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If instead the the point values get larger, the larger will be the discrepancy in the pixel values. Also the pixel value will be rounded to the unit and no the original decimal point of the Point Value. Examples:&lt;/P&gt;&lt;P&gt;Point value 7148409430.99&lt;BR /&gt;Pixel value 7148409344.000000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Point value 6155669928.95&lt;BR /&gt;Pixel value 6155670016.000000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Point value 46218249.2442&lt;BR /&gt;Pixel value 46218248.000000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Point data is on a perfect 0.1 decimal degree grid and the raster has the same resolution so that only one point falls within each raster cell. Selecting the cell alignment type to Sum, Mean or any other did not cause any change in the raster values output of the tool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone replicate this behavior?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2018 16:37:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/point-to-raster-rounds-large-numbers-wrongly/m-p/270317#M646</guid>
      <dc:creator>GiacomoFavaron</dc:creator>
      <dc:date>2018-10-30T16:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: Point to Raster rounds large numbers wrongly</title>
      <link>https://community.esri.com/t5/arcmap-questions/point-to-raster-rounds-large-numbers-wrongly/m-p/270318#M647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;could be that the numbers aren't 64 bit.&amp;nbsp; here is what happens in numpy when floats (aka doubles) are of a lower type.&lt;/P&gt;&lt;P&gt;For the lower numbers ….&amp;nbsp;24946.339844&amp;nbsp; rounded to&amp;nbsp;24946.0 for both 64 and 32 bit&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;a &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; np&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;round&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;np&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;array&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;6155669928.95&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; np&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;float64&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN class="comment token"&gt;# ---- 64 bit numbers&lt;/SPAN&gt;

a&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN class="comment token"&gt;# ----- rounded... looks good&lt;/SPAN&gt;

&lt;SPAN class="number token"&gt;6155669929.0&lt;/SPAN&gt;

a &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; np&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;round&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;np&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;array&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;6155669928.95&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; np&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;float32&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN class="comment token"&gt;# ---- now try 32 bit&lt;/SPAN&gt;

a&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN class="comment token"&gt;# ---- rounded, not so good&lt;/SPAN&gt;

&lt;SPAN class="number token"&gt;6155670000.0&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 13:13:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/point-to-raster-rounds-large-numbers-wrongly/m-p/270318#M647</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2021-12-11T13:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: Point to Raster rounds large numbers wrongly</title>
      <link>https://community.esri.com/t5/arcmap-questions/point-to-raster-rounds-large-numbers-wrongly/m-p/270319#M648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It could be. For completeness of information I am on Windows 10 64 bit and I have tried to run the tool as background&amp;nbsp; and foreground processing but I had the same results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't tried directly in python.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2018 17:00:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/point-to-raster-rounds-large-numbers-wrongly/m-p/270319#M648</guid>
      <dc:creator>GiacomoFavaron</dc:creator>
      <dc:date>2018-10-30T17:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: Point to Raster rounds large numbers wrongly</title>
      <link>https://community.esri.com/t5/arcmap-questions/point-to-raster-rounds-large-numbers-wrongly/m-p/270320#M649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The rasters may not be 64 bit is really the point&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://pro.arcgis.com/en/pro-app/help/data/imagery/supported-raster-dataset-file-formats.htm" title="http://pro.arcgis.com/en/pro-app/help/data/imagery/supported-raster-dataset-file-formats.htm"&gt;Raster file formats—ArcGIS Pro | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example esri grids are&amp;nbsp;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #4c4c4c; font-family: 'Avenir Next W01','Avenir Next W00','Avenir Next','Avenir','Helvetica Neue',sans-serif; font-size: 14.8px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;32-bit signed integer&lt;/SPAN&gt; or&amp;nbsp;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #4c4c4c; font-family: 'Avenir Next W01','Avenir Next W00','Avenir Next','Avenir','Helvetica Neue',sans-serif; font-size: 14.8px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;32-bit floating point&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can examine your case against the list.&lt;/P&gt;&lt;P&gt;And you can't 'upscale' to a higher bit type and expect more than what you already have.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2018 17:12:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/point-to-raster-rounds-large-numbers-wrongly/m-p/270320#M649</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-10-30T17:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: Point to Raster rounds large numbers wrongly</title>
      <link>https://community.esri.com/t5/arcmap-questions/point-to-raster-rounds-large-numbers-wrongly/m-p/270321#M650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you are correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wasn't specifying the raster file format and the default is ESRI Grid, but if I specify the format as .tif the rounding is correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you Dan!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2018 17:59:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/point-to-raster-rounds-large-numbers-wrongly/m-p/270321#M650</guid>
      <dc:creator>GiacomoFavaron</dc:creator>
      <dc:date>2018-10-30T17:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: Point to Raster rounds large numbers wrongly</title>
      <link>https://community.esri.com/t5/arcmap-questions/point-to-raster-rounds-large-numbers-wrongly/m-p/270322#M651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No problem Giacomo, you might want to mark the correct answer so this is closed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2018 18:26:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/point-to-raster-rounds-large-numbers-wrongly/m-p/270322#M651</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-10-30T18:26:50Z</dc:date>
    </item>
  </channel>
</rss>

