<?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: trouble with pixel depth and type in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/trouble-with-pixel-depth-and-type/m-p/216281#M12397</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In my earlier post, I didn't notice that the quotes says "in a geodatabase" the rasters are promoted.&amp;nbsp; My rasters are tiffs in a folder. Is there someone from ESRI that can explain better about pixel depth than what the help files say?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1.&amp;nbsp; can rasters of different pixel depths be composited?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2.&amp;nbsp; if a raster is promoted, how will that affect classification?&amp;nbsp; I have made combinations of different layers in my composites.&amp;nbsp; The final results (for the same area) have different pixel depths.&amp;nbsp; If I classify these composites, will the pixel depth cause differences not related to the differences in the different layer combinations?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3.&amp;nbsp; is the pixel depth something that only concerns the display?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ESRI?&amp;nbsp; Please help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Kat&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Jan 2013 15:20:20 GMT</pubDate>
    <dc:creator>KatSuda</dc:creator>
    <dc:date>2013-01-15T15:20:20Z</dc:date>
    <item>
      <title>trouble with pixel depth and type</title>
      <link>https://community.esri.com/t5/data-management-questions/trouble-with-pixel-depth-and-type/m-p/216280#M12396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am working with unsigned 8-bit satellite images, processing and compositing them in various combinations.&amp;nbsp; I have several questions about pixel depth.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1.&amp;nbsp; I have read up on pixel depth and NoData values.&amp;nbsp; The help files say:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;[INDENT]When NoData is added to a geodatabase raster (not in ArcSDE) that already has a full-bit range (meaning that all the values in the bit range, for example, 0 to 255, are all represented by at least one cell), it will be promoted to the next higher bit depth.[/INDENT]&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Why then, do my 8-bit rasters all have a NoData value of 256 (Raster Dataset Properties)?&amp;nbsp; Wouldn't the value of 256 promote them to 16-bit rasters?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2.&amp;nbsp; I am using the NDVI as a layer in a raster composite.&amp;nbsp; Does it matter if it is 32-bit floating point when the other layers are 8-bit unsigned integer?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; In the help files, it is written:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;[INDENT]The equation ArcGIS uses to generate the output is as follows: &lt;BR /&gt;&lt;BR /&gt;NDVI = ((IR - R)/(IR + R)) * 100 + 100&lt;BR /&gt;&lt;BR /&gt;This will result in a value range of 0�??200 and fit within an 8-bit structure. [/INDENT]&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I used a python script with the given equation, but it still comes out as 32-bit floating point.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Code follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT]&amp;nbsp;&amp;nbsp;&amp;nbsp; #make a list of the rasters to be processed&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; rasters = arcpy.ListDatasets("t*", "Raster")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #loop through the rasters to make the NDVI&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for raster in rasters:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; band3= raster + '/Band_3'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; band4= raster + '/Band_4'&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print "processing NDVI for " + raster&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NDVI = (Int(Raster(band4) - Raster(band3))/Int(Raster(band4)+ Raster(band3)))*100 + 100&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NDVI.save("v" + raster[1:])[/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3.&amp;nbsp; If the bands do need to have the same pixel depth and type (to compare apples to apples with the various composite combinations), will it matter if I change them using the Copy Raster tool and set the output to 8-bit unsigned integer?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for help in understanding.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;krs&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2013 14:54:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/trouble-with-pixel-depth-and-type/m-p/216280#M12396</guid>
      <dc:creator>KatSuda</dc:creator>
      <dc:date>2013-01-10T14:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: trouble with pixel depth and type</title>
      <link>https://community.esri.com/t5/data-management-questions/trouble-with-pixel-depth-and-type/m-p/216281#M12397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In my earlier post, I didn't notice that the quotes says "in a geodatabase" the rasters are promoted.&amp;nbsp; My rasters are tiffs in a folder. Is there someone from ESRI that can explain better about pixel depth than what the help files say?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1.&amp;nbsp; can rasters of different pixel depths be composited?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2.&amp;nbsp; if a raster is promoted, how will that affect classification?&amp;nbsp; I have made combinations of different layers in my composites.&amp;nbsp; The final results (for the same area) have different pixel depths.&amp;nbsp; If I classify these composites, will the pixel depth cause differences not related to the differences in the different layer combinations?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3.&amp;nbsp; is the pixel depth something that only concerns the display?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ESRI?&amp;nbsp; Please help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Kat&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2013 15:20:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/trouble-with-pixel-depth-and-type/m-p/216281#M12397</guid>
      <dc:creator>KatSuda</dc:creator>
      <dc:date>2013-01-15T15:20:20Z</dc:date>
    </item>
  </channel>
</rss>

