<?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: 16bit dem image export? in Mapping Questions</title>
    <link>https://community.esri.com/t5/mapping-questions/16bit-dem-image-export/m-p/223625#M2383</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;depends on how bad you need it and you external skills with python numpy and matplotlib&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://stackoverflow.com/questions/25696615/can-i-save-a-numpy-array-as-a-16-bit-image-using-normal-enthought-python" title="http://stackoverflow.com/questions/25696615/can-i-save-a-numpy-array-as-a-16-bit-image-using-normal-enthought-python"&gt;Can I save a numpy array as a 16-bit image using "normal" (Enthought) python? - Stack Overflow&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and if you have scikit and pil (aka with Pro install of the SciPy stack), there is&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://blog.philippklaus.de/2011/08/handle-16bit-tiff-images-in-python" title="https://blog.philippklaus.de/2011/08/handle-16bit-tiff-images-in-python"&gt;https://blog.philippklaus.de/2011/08/handle-16bit-tiff-images-in-python&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dr Google other options, but most rely on numpy/scipy and builtin or external libraries like pypng&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 29 Oct 2016 16:53:20 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2016-10-29T16:53:20Z</dc:date>
    <item>
      <title>16bit dem image export?</title>
      <link>https://community.esri.com/t5/mapping-questions/16bit-dem-image-export/m-p/223624#M2382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi! Is there any way (at least theoretically, using python) to export 16bit float image instead of typical 8bit png raster?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right now I am using this to export:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mxd = arcpy.mapping.MapDocument("CURRENT")&lt;BR /&gt;df = arcpy.mapping.ListDataFrames(mxd)[0]&lt;BR /&gt;for pageNum in range(1, mxd.dataDrivenPages.pageCount + 1):&lt;BR /&gt;mxd.dataDrivenPages.currentPageID = pageNum&lt;BR /&gt;arcpy.mapping.ExportToPNG (mxd, r"D:\mosaicrasterdata\FinalExport" + str(mxd.dataDrivenPages.pageRow.Name) + ".png", df,10016,10016,1210, 100, True)&lt;BR /&gt;del mxd&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but none of the exportToPNG or exportToTIFF has options to deal with 16bit or 32 bit files, selection is only limited to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL class="" style="color: #4d4d4d; background-color: #ffffff; font-size: 0.875em; margin-top: 1.71429em; margin-bottom: 1.5em;"&gt;&lt;LI style="font-size: 0.875rem; padding-left: 1em;"&gt;24-BIT_TRUE_COLOR —24-bit true color&lt;/LI&gt;&lt;LI style="font-size: 0.875rem; padding-left: 1em;"&gt;8-BIT_PALETTE —8-bit palette&lt;/LI&gt;&lt;LI style="font-size: 0.875rem; padding-left: 1em;"&gt;8-BIT_GRAYSCALE —8-bit grayscale&lt;/LI&gt;&lt;LI style="font-size: 0.875rem; padding-left: 1em;"&gt;1-BIT_MONOCHROME_MASK —1-bit monochrome mask&lt;/LI&gt;&lt;LI style="font-size: 0.875rem; padding-left: 1em;"&gt;1-BIT_MONOCHROME_THRESHOLD —1-bit monochrome threshold&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe I can somehow obtain that layour image bit data manually and save it to file myself?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Oct 2016 13:16:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/16bit-dem-image-export/m-p/223624#M2382</guid>
      <dc:creator>KonstantinGorskov</dc:creator>
      <dc:date>2016-10-29T13:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: 16bit dem image export?</title>
      <link>https://community.esri.com/t5/mapping-questions/16bit-dem-image-export/m-p/223625#M2383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;depends on how bad you need it and you external skills with python numpy and matplotlib&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://stackoverflow.com/questions/25696615/can-i-save-a-numpy-array-as-a-16-bit-image-using-normal-enthought-python" title="http://stackoverflow.com/questions/25696615/can-i-save-a-numpy-array-as-a-16-bit-image-using-normal-enthought-python"&gt;Can I save a numpy array as a 16-bit image using "normal" (Enthought) python? - Stack Overflow&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and if you have scikit and pil (aka with Pro install of the SciPy stack), there is&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://blog.philippklaus.de/2011/08/handle-16bit-tiff-images-in-python" title="https://blog.philippklaus.de/2011/08/handle-16bit-tiff-images-in-python"&gt;https://blog.philippklaus.de/2011/08/handle-16bit-tiff-images-in-python&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dr Google other options, but most rely on numpy/scipy and builtin or external libraries like pypng&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Oct 2016 16:53:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/16bit-dem-image-export/m-p/223625#M2383</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-10-29T16:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: 16bit dem image export?</title>
      <link>https://community.esri.com/t5/mapping-questions/16bit-dem-image-export/m-p/223626#M2384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am good with coding, so actual export will not be a problem for me. But how to get hold on the actual raw frame data? It would be easy for me, if I could see source file of a&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;arcpy.mapping.ExportToPNG function. Its likely it gets access on the frame image data, properly transformed with all coordinates and e.t.c, and then goes on with saving it. But that is what I can not find anywhere.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Oct 2016 17:16:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/16bit-dem-image-export/m-p/223626#M2384</guid>
      <dc:creator>KonstantinGorskov</dc:creator>
      <dc:date>2016-10-29T17:16:17Z</dc:date>
    </item>
  </channel>
</rss>

