<?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: Export Raster Data in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/export-raster-data/m-p/547276#M42701</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I saw that as well.&amp;nbsp; Guess that defeats the purpose of using the python call for what I'm trying to accomplish.&amp;nbsp; I'm surprised the the function doesn't work the same as the export method from the TOC.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Wade&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Aug 2011 18:33:23 GMT</pubDate>
    <dc:creator>WadeGivens</dc:creator>
    <dc:date>2011-08-16T18:33:23Z</dc:date>
    <item>
      <title>Export Raster Data</title>
      <link>https://community.esri.com/t5/python-questions/export-raster-data/m-p/547274#M42699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is there a way to duplicate the functionality found when you right-click on a rster layer and choose "Export"?&amp;nbsp; I'm trying to convert 32 bit images to 8 bit similar to the way you can check the Use Renderer and Froce RGB option in the Export Raster Data window.&amp;nbsp; I've tried using CopyRaster_management, but the results I get from that tool are incorrect (I get a raster image where all the pixels have the same value:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.CopyRaster_management("test", "C:/Temp/grids/test_8bit.tif", "", "", "", "", "ColormapToRGB", "8_BIT_UNSIGNED")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've tried every possible combination of parameters to no avail...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Wade&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2011 15:12:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/export-raster-data/m-p/547274#M42699</guid>
      <dc:creator>WadeGivens</dc:creator>
      <dc:date>2011-08-16T15:12:37Z</dc:date>
    </item>
    <item>
      <title>Re: Export Raster Data</title>
      <link>https://community.esri.com/t5/python-questions/export-raster-data/m-p/547275#M42700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Is there a way to duplicate the functionality found when you right-click on a rster layer and choose "Export"?&amp;nbsp; I'm trying to convert 32 bit images to 8 bit similar to the way you can check the Use Renderer and Froce RGB option in the Export Raster Data window.&amp;nbsp; I've tried using CopyRaster_management, but the results I get from that tool are incorrect (I get a raster image where all the pixels have the same value:&lt;BR /&gt;&lt;BR /&gt;arcpy.CopyRaster_management("test", "C:/Temp/grids/test_8bit.tif", "", "", "", "", "ColormapToRGB", "8_BIT_UNSIGNED")&lt;BR /&gt;&lt;BR /&gt;I've tried every possible combination of parameters to no avail...&lt;BR /&gt;&lt;BR /&gt;Wade&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I think the problem might lie in your pixel_type parameter. The tool help stated: If the pixel type is demoted (lowered), the raster values outside the valid range for that pixel depth will be truncated and lost. 8_BIT_UNSIGNED value range from 0-255 while 32_BIT_UNSIGNED value range from 0 to 4,294,967,295. Try the same pixel_type as your orignal raster and see what happens.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2011 17:57:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/export-raster-data/m-p/547275#M42700</guid>
      <dc:creator>HemingZhu</dc:creator>
      <dc:date>2011-08-16T17:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: Export Raster Data</title>
      <link>https://community.esri.com/t5/python-questions/export-raster-data/m-p/547276#M42701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I saw that as well.&amp;nbsp; Guess that defeats the purpose of using the python call for what I'm trying to accomplish.&amp;nbsp; I'm surprised the the function doesn't work the same as the export method from the TOC.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Wade&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2011 18:33:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/export-raster-data/m-p/547276#M42701</guid>
      <dc:creator>WadeGivens</dc:creator>
      <dc:date>2011-08-16T18:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: Export Raster Data</title>
      <link>https://community.esri.com/t5/python-questions/export-raster-data/m-p/547277#M42702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm trying to do something similiar to this &lt;/SPAN&gt;&lt;A href="http://blogs.esri.com/esri/arcgis/2012/03/08/an-alternative-to-overlaying-layer-tints-on-hillshades/"&gt;ESRI Blog Post&lt;/A&gt;&lt;SPAN&gt; to detail focus areas.&amp;nbsp; I need to Force RGB in order to add Image Analysis functions to achieve the effect.&amp;nbsp; Since I'm doing this on several focus areas I'd like to automate it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any functionality in arcpy that allows you to FORCE RGB??&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2012 10:42:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/export-raster-data/m-p/547277#M42702</guid>
      <dc:creator>RoyHewitt</dc:creator>
      <dc:date>2012-07-02T10:42:48Z</dc:date>
    </item>
  </channel>
</rss>

