<?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 Wrong cell values after conversion to a NumPy-Array? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/wrong-cell-values-after-conversion-to-a-numpy/m-p/657410#M51141</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Comunity,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Due to my Bachelor Thesis I am working on some python-scripts für ArcGIS.&lt;/P&gt;&lt;P&gt;At the Moment, I develop a script for rastermanipulation by modifying the cell values. My dataset contains cell values from 1,000093 to 4,43723 metres, on which I want to perform some height-modification. Therefore, I convert the raster to a NumPy-array, which contains surprisingly cell values from -3,40282e+038 to 4,43723 metres.&lt;/P&gt;&lt;P&gt;How does this min-value came across my data?&lt;/P&gt;&lt;P&gt;I guess, it is a "nodata"-value which cause probles with the "float32"-datatype, but I am not sure.&lt;/P&gt;&lt;P&gt;Maybe I can find some help around here.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;André&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Oct 2014 10:09:07 GMT</pubDate>
    <dc:creator>AndréBaldauf</dc:creator>
    <dc:date>2014-10-15T10:09:07Z</dc:date>
    <item>
      <title>Wrong cell values after conversion to a NumPy-Array?</title>
      <link>https://community.esri.com/t5/python-questions/wrong-cell-values-after-conversion-to-a-numpy/m-p/657410#M51141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Comunity,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Due to my Bachelor Thesis I am working on some python-scripts für ArcGIS.&lt;/P&gt;&lt;P&gt;At the Moment, I develop a script for rastermanipulation by modifying the cell values. My dataset contains cell values from 1,000093 to 4,43723 metres, on which I want to perform some height-modification. Therefore, I convert the raster to a NumPy-array, which contains surprisingly cell values from -3,40282e+038 to 4,43723 metres.&lt;/P&gt;&lt;P&gt;How does this min-value came across my data?&lt;/P&gt;&lt;P&gt;I guess, it is a "nodata"-value which cause probles with the "float32"-datatype, but I am not sure.&lt;/P&gt;&lt;P&gt;Maybe I can find some help around here.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;André&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2014 10:09:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/wrong-cell-values-after-conversion-to-a-numpy/m-p/657410#M51141</guid>
      <dc:creator>AndréBaldauf</dc:creator>
      <dc:date>2014-10-15T10:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong cell values after conversion to a NumPy-Array?</title>
      <link>https://community.esri.com/t5/python-questions/wrong-cell-values-after-conversion-to-a-numpy/m-p/657411#M51142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when running function &lt;STRONG style="color: #4d4d4d; font-family: Arial, Helvetica, sans-serif;"&gt;RasterToNumPyArray (in_raster, {lower_left_corner}, {ncols}, {nrows}, {nodata_to_value})&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;try setting the &lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;-3,40282e+038 &lt;/SPAN&gt;for the nodata_to_value parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It could also be a product of the way the numpy creates it's arrays, by creating the array 1st with dummy values and then going and updating the values that correspond to the raster.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2014 13:05:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/wrong-cell-values-after-conversion-to-a-numpy/m-p/657411#M51142</guid>
      <dc:creator>DallasShearer</dc:creator>
      <dc:date>2014-10-15T13:05:56Z</dc:date>
    </item>
  </channel>
</rss>

