<?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 Specifying TIFF data type for batch ASCII to Raster in ArcGIS Spatial Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/specifying-tiff-data-type-for-batch-ascii-to/m-p/369966#M5203</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Technical_specifications_for_raster_dataset_formats/009t0000000r000000/" rel="nofollow" target="_blank"&gt;ArcGIS Desktop&lt;/A&gt; says that 16-bit unsigned integer is a possible option for creating a TIFF for which a color map can be created. I am curious if anyone knows how to specify this data type in the batch code below that I grabbed from an older post?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class="python" name="code"&gt;import os,arcpy, glob&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Path to ascii files&amp;nbsp;&amp;nbsp;&amp;nbsp; filepath = r"C:\VMshared\small_example_valley2\snowdepth"&amp;nbsp;&amp;nbsp;&amp;nbsp; # Path where to put rasters&amp;nbsp;&amp;nbsp;&amp;nbsp; outFolder = r"C:\VMshared\small_example_valley2\snowdepthout"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ascList = glob.glob(filepath + "/*.asc")&amp;nbsp;&amp;nbsp;&amp;nbsp; print ascList&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for ascFile in ascList:&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; outRaster = outFolder + "/" + os.path.split(ascFile)[1][:-3] + "tif"&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; print outRaster&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.ASCIIToRaster_conversion(ascFile, outRaster, "FLOAT") &lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Jan 2015 18:52:15 GMT</pubDate>
    <dc:creator>andrewfullhart</dc:creator>
    <dc:date>2015-01-08T18:52:15Z</dc:date>
    <item>
      <title>Specifying TIFF data type for batch ASCII to Raster</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/specifying-tiff-data-type-for-batch-ascii-to/m-p/369966#M5203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Technical_specifications_for_raster_dataset_formats/009t0000000r000000/" rel="nofollow" target="_blank"&gt;ArcGIS Desktop&lt;/A&gt; says that 16-bit unsigned integer is a possible option for creating a TIFF for which a color map can be created. I am curious if anyone knows how to specify this data type in the batch code below that I grabbed from an older post?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class="python" name="code"&gt;import os,arcpy, glob&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Path to ascii files&amp;nbsp;&amp;nbsp;&amp;nbsp; filepath = r"C:\VMshared\small_example_valley2\snowdepth"&amp;nbsp;&amp;nbsp;&amp;nbsp; # Path where to put rasters&amp;nbsp;&amp;nbsp;&amp;nbsp; outFolder = r"C:\VMshared\small_example_valley2\snowdepthout"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ascList = glob.glob(filepath + "/*.asc")&amp;nbsp;&amp;nbsp;&amp;nbsp; print ascList&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for ascFile in ascList:&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; outRaster = outFolder + "/" + os.path.split(ascFile)[1][:-3] + "tif"&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; print outRaster&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.ASCIIToRaster_conversion(ascFile, outRaster, "FLOAT") &lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2015 18:52:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/specifying-tiff-data-type-for-batch-ascii-to/m-p/369966#M5203</guid>
      <dc:creator>andrewfullhart</dc:creator>
      <dc:date>2015-01-08T18:52:15Z</dc:date>
    </item>
  </channel>
</rss>

