<?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 Data arcpy command line to save Tiff raster with zero compression in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/export-data-arcpy-command-line-to-save-tiff-raster/m-p/278384#M21486</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did try that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;arcpy.env.compression = "NONE"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The results are still compressed with LZW.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Jul 2018 17:40:22 GMT</pubDate>
    <dc:creator>SondraRobinson</dc:creator>
    <dc:date>2018-07-30T17:40:22Z</dc:date>
    <item>
      <title>Export Data arcpy command line to save Tiff raster with zero compression</title>
      <link>https://community.esri.com/t5/python-questions/export-data-arcpy-command-line-to-save-tiff-raster/m-p/278382#M21484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys. I have a script which cycles through a directory and adds 4band data. It works like a charm. The problem is that the customer wants the results &lt;EM&gt;UN&lt;/EM&gt;compressed. By default, all of the resulting files are compressed and so I have to manually open each file and then simply export data/raster to raster/compression set to zero. That works, but it's tedious and unnecessarily expensive in time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have looked everywhere I can to find out how&amp;nbsp;to do the export process with zero compression by script. No luck, so I figured I'd try here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the currently &lt;STRONG&gt;functioning&lt;/STRONG&gt; script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;----------------------------------------------------&lt;/P&gt;&lt;P&gt;import os,arcpy,glob&lt;/P&gt;&lt;P&gt;rasterpath = r"filepath-source"&lt;BR /&gt;outFolder = r"filepath-end"&lt;/P&gt;&lt;P&gt;arcpy.env.workspace = rasterpath&lt;/P&gt;&lt;P&gt;for rasterFile in arcpy.ListRasters("*.tif"):&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; oName, oExt = os.path.splitext(rasterFile)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; outRaster = os.path.join(outFolder, oName+ ".tif") &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.CopyRaster_management(rasterFile,outRaster,"DEFAULTS","255","255","","","8_BIT_UNSIGNED")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know that the process of adding the band data creates pyramids, but my attempts to add zero compression to the environment on this script fails. What I'm looking for help with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;* the command line which will simply resave the data as-is&amp;nbsp;but with no compression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Compression is not an option for arcpy.CopyRaster_management in tiff format that I can find. There has to be a way to automate this. I'll be shooting myself if I have to manually open and resave hundreds of ortho images per object just for that single variable. I hope you guys can help! Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2018 16:49:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/export-data-arcpy-command-line-to-save-tiff-raster/m-p/278382#M21484</guid>
      <dc:creator>SondraRobinson</dc:creator>
      <dc:date>2018-07-30T16:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: Export Data arcpy command line to save Tiff raster with zero compression</title>
      <link>https://community.esri.com/t5/python-questions/export-data-arcpy-command-line-to-save-tiff-raster/m-p/278383#M21485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="link-titled" href="http://pro.arcgis.com/en/pro-app/tool-reference/environment-settings/compression.htm" title="http://pro.arcgis.com/en/pro-app/tool-reference/environment-settings/compression.htm"&gt;Compression (Environment setting)—Geoprocessing | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is an environment setting, so I suppose you tried setting it to None&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: transparent; color: #4c4c4c; font-family: &amp;amp;quot; consolas&amp;amp;quot;,&amp;amp;quot;andale mono&amp;amp;quot;,&amp;amp;quot;lucida console&amp;amp;quot;,&amp;amp;quot;monaco&amp;amp;quot;,monospace; font-size: 14.8px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;compression_type&lt;/SPAN&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #4c4c4c; font-family: 'Avenir Next W01','Avenir Next W00','Avenir Next','Avenir','Helvetica Neue',sans-serif; font-size: 14.8px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt; (Required)&lt;/SPAN&gt; &amp;nbsp;&lt;SPAN style="background-color: transparent; color: #4c4c4c; font-family: &amp;amp;quot; avenir next w01&amp;amp;quot;,&amp;amp;quot;avenir next w00&amp;amp;quot;,&amp;amp;quot;avenir next&amp;amp;quot;,&amp;amp;quot;avenir&amp;amp;quot;,&amp;amp;quot;helvetica neue&amp;amp;quot;,sans-serif; font-size: 15.8px; font-style: normal; font-variant: normal; font-weight: bold; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;NONE&lt;/SPAN&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #4c4c4c; font-family: 'Avenir Next W01','Avenir Next W00','Avenir Next','Avenir','Helvetica Neue',sans-serif; font-size: 15.8px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; list-style-position: outside; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;—No compression will occur.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2018 17:14:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/export-data-arcpy-command-line-to-save-tiff-raster/m-p/278383#M21485</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-07-30T17:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: Export Data arcpy command line to save Tiff raster with zero compression</title>
      <link>https://community.esri.com/t5/python-questions/export-data-arcpy-command-line-to-save-tiff-raster/m-p/278384#M21486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did try that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;arcpy.env.compression = "NONE"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The results are still compressed with LZW.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2018 17:40:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/export-data-arcpy-command-line-to-save-tiff-raster/m-p/278384#M21486</guid>
      <dc:creator>SondraRobinson</dc:creator>
      <dc:date>2018-07-30T17:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: Export Data arcpy command line to save Tiff raster with zero compression</title>
      <link>https://community.esri.com/t5/python-questions/export-data-arcpy-command-line-to-save-tiff-raster/m-p/278385#M21487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="link-titled" href="http://pro.arcgis.com/en/pro-app/tool-reference/data-management/copy-raster.htm" title="http://pro.arcgis.com/en/pro-app/tool-reference/data-management/copy-raster.htm"&gt;Copy Raster—Data Management toolbox | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;well it is supposed to honor Compression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #4c4c4c; font-family: 'Avenir Next W01','Avenir Next W00','Avenir Next','Avenir','Helvetica Neue',sans-serif; font-size: 14.8px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;out_rasterdataset&lt;/SPAN&gt; &amp;nbsp;&amp;nbsp;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #4c4c4c; font-family: 'Avenir Next W01','Avenir Next W00','Avenir Next','Avenir','Helvetica Neue',sans-serif; font-size: 14.8px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;When storing a raster dataset to a JPEG file, JPEG 2000 file, TIFF file, or geodatabase, you can specify a compression type and compression quality.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #4c4c4c; font-family: 'Avenir Next W01','Avenir Next W00','Avenir Next','Avenir','Helvetica Neue',sans-serif; font-size: 14.8px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;HOWEVER!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #4c4c4c; font-family: 'Avenir Next W01','Avenir Next W00','Avenir Next','Avenir','Helvetica Neue',sans-serif; font-size: 14.8px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;&lt;A class="link-titled" href="http://pro.arcgis.com/en/pro-app/help/data/imagery/supported-raster-dataset-file-formats.htm" title="http://pro.arcgis.com/en/pro-app/help/data/imagery/supported-raster-dataset-file-formats.htm"&gt;Raster file formats—ArcGIS Pro | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #4c4c4c; font-family: 'Avenir Next W01','Avenir Next W00','Avenir Next','Avenir','Helvetica Neue',sans-serif; font-size: 14.8px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;Depends on your tif&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE style="background-color: #ffffff; border-collapse: collapse; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; border-spacing: 0px 0px; color: #4c4c4c; font-family: &amp;amp;quot; avenir next w01&amp;amp;quot;,&amp;amp;quot;avenir next w00&amp;amp;quot;,&amp;amp;quot;avenir next&amp;amp;quot;,&amp;amp;quot;avenir&amp;amp;quot;,&amp;amp;quot;helvetica neue&amp;amp;quot;,sans-serif; font-size: 14.8px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 26.35px; margin-bottom: 26.35px; orphans: 2; overflow: auto; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; width: 1035.72px; word-spacing: 0px; border: 0.5px solid #cccccc;"&gt;&lt;TBODY style="overflow: auto; width: 100%;"&gt;&lt;TR style="border-bottom-color: #cccccc; border-bottom-style: solid; border-bottom-width: 1px; text-align: left;"&gt;&lt;TD colspan="1" rowspan="1" style="border-left-color: #cccccc; border-left-style: solid; border-left-width: 1px; border-right-color: #cccccc; border-right-style: solid; border-right-width: 1px; font-weight: 300; padding: 8.67px;"&gt;&lt;P style="margin-bottom: 0px; margin-top: 0px;"&gt;1-bit unsigned integer&lt;/P&gt;&lt;/TD&gt;&lt;TD colspan="1" rowspan="1" style="border-left-color: #cccccc; border-left-style: solid; border-left-width: 1px; border-right-color: #cccccc; border-right-style: solid; border-right-width: 1px; font-weight: 300; padding: 8.67px;"&gt;&lt;P style="margin-bottom: 0px; margin-top: 0px;"&gt;No&lt;/P&gt;&lt;/TD&gt;&lt;TD colspan="1" rowspan="1" style="border-left-color: #cccccc; border-left-style: solid; border-left-width: 1px; border-right-color: #cccccc; border-right-style: solid; border-right-width: 1px; font-weight: 300; padding: 8.67px;"&gt;&lt;P style="margin-bottom: 0px; margin-top: 0px;"&gt;CCITT (1D), CCITT Group 3, CCITT Group 4, Packbits, LZW, or None&lt;/P&gt;&lt;/TD&gt;&lt;TD colspan="1" rowspan="1" style="border-left-color: #cccccc; border-left-style: solid; border-left-width: 1px; border-right-color: #cccccc; border-right-style: solid; border-right-width: 1px; font-weight: 300; padding: 8.67px;"&gt;&lt;P style="margin-bottom: 0px; margin-top: 0px;"&gt;Yes&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border-bottom-color: #cccccc; border-bottom-style: solid; border-bottom-width: 1px; text-align: left;"&gt;&lt;TD colspan="1" rowspan="1" style="border-left-color: #cccccc; border-left-style: solid; border-left-width: 1px; border-right-color: #cccccc; border-right-style: solid; border-right-width: 1px; font-weight: 300; padding: 8.67px;"&gt;&lt;P style="margin-bottom: 0px; margin-top: 0px;"&gt;4-bit signed integer&lt;/P&gt;&lt;/TD&gt;&lt;TD colspan="1" rowspan="1" style="border-left-color: #cccccc; border-left-style: solid; border-left-width: 1px; border-right-color: #cccccc; border-right-style: solid; border-right-width: 1px; font-weight: 300; padding: 8.67px;"&gt;&lt;P style="margin-bottom: 0px; margin-top: 0px;"&gt;No&lt;/P&gt;&lt;/TD&gt;&lt;TD colspan="1" rowspan="1" style="border-left-color: #cccccc; border-left-style: solid; border-left-width: 1px; border-right-color: #cccccc; border-right-style: solid; border-right-width: 1px; font-weight: 300; padding: 8.67px;"&gt;&lt;P style="margin-bottom: 0px; margin-top: 0px;"&gt;Packbits, LZW, or None&lt;/P&gt;&lt;/TD&gt;&lt;TD colspan="1" rowspan="1" style="border-left-color: #cccccc; border-left-style: solid; border-left-width: 1px; border-right-color: #cccccc; border-right-style: solid; border-right-width: 1px; font-weight: 300; padding: 8.67px;"&gt;&lt;P style="margin-bottom: 0px; margin-top: 0px;"&gt;Yes&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border-bottom-color: #cccccc; border-bottom-style: solid; border-bottom-width: 1px; text-align: left;"&gt;&lt;TD colspan="1" rowspan="1" style="border-left-color: #cccccc; border-left-style: solid; border-left-width: 1px; border-right-color: #cccccc; border-right-style: solid; border-right-width: 1px; font-weight: 300; padding: 8.67px;"&gt;&lt;P style="margin-bottom: 0px; margin-top: 0px;"&gt;8-bit unsigned integer&lt;/P&gt;&lt;/TD&gt;&lt;TD colspan="1" rowspan="1" style="border-left-color: #cccccc; border-left-style: solid; border-left-width: 1px; border-right-color: #cccccc; border-right-style: solid; border-right-width: 1px; font-weight: 300; padding: 8.67px;"&gt;&lt;P style="margin-bottom: 0px; margin-top: 0px;"&gt;Yes&lt;/P&gt;&lt;/TD&gt;&lt;TD colspan="1" rowspan="1" style="border-left-color: #cccccc; border-left-style: solid; border-left-width: 1px; border-right-color: #cccccc; border-right-style: solid; border-right-width: 1px; font-weight: 300; padding: 8.67px;"&gt;&lt;P style="margin-bottom: 0px; margin-top: 0px;"&gt;Packbits, LZW, JPEG (lossy), or None&lt;/P&gt;&lt;/TD&gt;&lt;TD colspan="1" rowspan="1" style="border-left-color: #cccccc; border-left-style: solid; border-left-width: 1px; border-right-color: #cccccc; border-right-style: solid; border-right-width: 1px; font-weight: 300; padding: 8.67px;"&gt;&lt;P style="margin-bottom: 0px; margin-top: 0px;"&gt;Yes&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Big no for&lt;/P&gt;&lt;TABLE style="background-color: #ffffff; border-collapse: collapse; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; border-spacing: 0px 0px; color: #4c4c4c; font-family: &amp;amp;quot; avenir next w01&amp;amp;quot;,&amp;amp;quot;avenir next w00&amp;amp;quot;,&amp;amp;quot;avenir next&amp;amp;quot;,&amp;amp;quot;avenir&amp;amp;quot;,&amp;amp;quot;helvetica neue&amp;amp;quot;,sans-serif; font-size: 14.8px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 26.35px; margin-bottom: 26.35px; orphans: 2; overflow: auto; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; width: 1035.72px; word-spacing: 0px; border: 0.5px solid #cccccc;"&gt;&lt;TBODY style="overflow: auto; width: 100%;"&gt;&lt;TR style="border-bottom-color: #cccccc; border-bottom-style: solid; border-bottom-width: 1px; text-align: left;"&gt;&lt;TD colspan="1" rowspan="1" style="border-left-color: #cccccc; border-left-style: solid; border-left-width: 1px; border-right-color: #cccccc; border-right-style: solid; border-right-width: 1px; font-weight: 300; padding: 8.67px;"&gt;&lt;P style="margin-bottom: 0px; margin-top: 0px;"&gt;8-bit signed integer&lt;/P&gt;&lt;/TD&gt;&lt;TD colspan="1" rowspan="1" style="border-left-color: #cccccc; border-left-style: solid; border-left-width: 1px; border-right-color: #cccccc; border-right-style: solid; border-right-width: 1px; font-weight: 300; padding: 8.67px;"&gt;&lt;P style="margin-bottom: 0px; margin-top: 0px;"&gt;No&lt;/P&gt;&lt;/TD&gt;&lt;TD colspan="1" rowspan="1" style="border-left-color: #cccccc; border-left-style: solid; border-left-width: 1px; border-right-color: #cccccc; border-right-style: solid; border-right-width: 1px; font-weight: 300; padding: 8.67px;"&gt;&lt;P style="margin-bottom: 0px; margin-top: 0px;"&gt;LZW&lt;/P&gt;&lt;/TD&gt;&lt;TD colspan="1" rowspan="1" style="border-left-color: #cccccc; border-left-style: solid; border-left-width: 1px; border-right-color: #cccccc; border-right-style: solid; border-right-width: 1px; font-weight: 300; padding: 8.67px;"&gt;&lt;P style="margin-bottom: 0px; margin-top: 0px;"&gt;No&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border-bottom-color: #cccccc; border-bottom-style: solid; border-bottom-width: 1px; text-align: left;"&gt;&lt;TD colspan="1" rowspan="1" style="border-left-color: #cccccc; border-left-style: solid; border-left-width: 1px; border-right-color: #cccccc; border-right-style: solid; border-right-width: 1px; font-weight: 300; padding: 8.67px;"&gt;&lt;P style="margin-bottom: 0px; margin-top: 0px;"&gt;16-bit unsigned integer&lt;/P&gt;&lt;/TD&gt;&lt;TD colspan="1" rowspan="1" style="border-left-color: #cccccc; border-left-style: solid; border-left-width: 1px; border-right-color: #cccccc; border-right-style: solid; border-right-width: 1px; font-weight: 300; padding: 8.67px;"&gt;&lt;P style="margin-bottom: 0px; margin-top: 0px;"&gt;Yes&lt;/P&gt;&lt;/TD&gt;&lt;TD colspan="1" rowspan="1" style="border-left-color: #cccccc; border-left-style: solid; border-left-width: 1px; border-right-color: #cccccc; border-right-style: solid; border-right-width: 1px; font-weight: 300; padding: 8.67px;"&gt;&lt;P style="margin-bottom: 0px; margin-top: 0px;"&gt;LZW&lt;/P&gt;&lt;/TD&gt;&lt;TD colspan="1" rowspan="1" style="border-left-color: #cccccc; border-left-style: solid; border-left-width: 1px; border-right-color: #cccccc; border-right-style: solid; border-right-width: 1px; font-weight: 300; padding: 8.67px;"&gt;&lt;P style="margin-bottom: 0px; margin-top: 0px;"&gt;Yes&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border-bottom-color: #cccccc; border-bottom-style: solid; border-bottom-width: 1px; text-align: left;"&gt;&lt;TD colspan="1" rowspan="1" style="border-left-color: #cccccc; border-left-style: solid; border-left-width: 1px; border-right-color: #cccccc; border-right-style: solid; border-right-width: 1px; font-weight: 300; padding: 8.67px;"&gt;&lt;P style="margin-bottom: 0px; margin-top: 0px;"&gt;16-bit signed integer&lt;/P&gt;&lt;/TD&gt;&lt;TD colspan="1" rowspan="1" style="border-left-color: #cccccc; border-left-style: solid; border-left-width: 1px; border-right-color: #cccccc; border-right-style: solid; border-right-width: 1px; font-weight: 300; padding: 8.67px;"&gt;&lt;P style="margin-bottom: 0px; margin-top: 0px;"&gt;No&lt;/P&gt;&lt;/TD&gt;&lt;TD colspan="1" rowspan="1" style="border-left-color: #cccccc; border-left-style: solid; border-left-width: 1px; border-right-color: #cccccc; border-right-style: solid; border-right-width: 1px; font-weight: 300; padding: 8.67px;"&gt;&lt;P style="margin-bottom: 0px; margin-top: 0px;"&gt;LZW&lt;/P&gt;&lt;/TD&gt;&lt;TD colspan="1" rowspan="1" style="border-left-color: #cccccc; border-left-style: solid; border-left-width: 1px; border-right-color: #cccccc; border-right-style: solid; border-right-width: 1px; font-weight: 300; padding: 8.67px;"&gt;&lt;P style="margin-bottom: 0px; margin-top: 0px;"&gt;No&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border-bottom-color: #cccccc; border-bottom-style: solid; border-bottom-width: 1px; text-align: left;"&gt;&lt;TD colspan="1" rowspan="1" style="border-left-color: #cccccc; border-left-style: solid; border-left-width: 1px; border-right-color: #cccccc; border-right-style: solid; border-right-width: 1px; font-weight: 300; padding: 8.67px;"&gt;&lt;P style="margin-bottom: 0px; margin-top: 0px;"&gt;32-bit unsigned/signed integer, or floating point&lt;/P&gt;&lt;/TD&gt;&lt;TD colspan="1" rowspan="1" style="border-left-color: #cccccc; border-left-style: solid; border-left-width: 1px; border-right-color: #cccccc; border-right-style: solid; border-right-width: 1px; font-weight: 300; padding: 8.67px;"&gt;&lt;P style="margin-bottom: 0px; margin-top: 0px;"&gt;No&lt;/P&gt;&lt;/TD&gt;&lt;TD colspan="1" rowspan="1" style="border-left-color: #cccccc; border-left-style: solid; border-left-width: 1px; border-right-color: #cccccc; border-right-style: solid; border-right-width: 1px; font-weight: 300; padding: 8.67px;"&gt;&lt;P style="margin-bottom: 0px; margin-top: 0px;"&gt;LZW&lt;/P&gt;&lt;/TD&gt;&lt;TD colspan="1" rowspan="1" style="border-left-color: #cccccc; border-left-style: solid; border-left-width: 1px; border-right-color: #cccccc; border-right-style: solid; border-right-width: 1px; font-weight: 300; padding: 8.67px;"&gt;&lt;P style="margin-bottom: 0px; margin-top: 0px;"&gt;No&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2018 17:58:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/export-data-arcpy-command-line-to-save-tiff-raster/m-p/278385#M21487</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-07-30T17:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: Export Data arcpy command line to save Tiff raster with zero compression</title>
      <link>https://community.esri.com/t5/python-questions/export-data-arcpy-command-line-to-save-tiff-raster/m-p/278386#M21488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you know how I would set that? I've seen that, but there are no examples I can copy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm changing this line:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;arcpy.CopyRaster_management(rasterFile,outRaster,"DEFAULTS","255","255","","","8_BIT_UNSIGNED")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;arcpy.CopyRaster_management(rasterFile,outRaster\\none,"DEFAULTS","255","255","","","8_BIT_UNSIGNED")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using the 8-bit unsigned, so that appears to have the option at least.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE style="border: 0.5px solid #cccccc; width: 1035.72px; text-align: left; color: #4c4c4c; text-transform: none; line-height: 26.35px; text-indent: 0px; letter-spacing: normal; overflow: auto; font-size: 14.8px; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; margin-bottom: 26.35px; word-spacing: 0px; white-space: normal; border-collapse: collapse; border-spacing: 0px 0px; orphans: 2; background-color: #ffffff; -webkit-text-stroke-width: 0px;"&gt;&lt;TBODY style="width: 100%; overflow: auto;"&gt;&lt;TR style="text-align: left; border-bottom-color: #cccccc; border-bottom-width: 1px; border-bottom-style: solid;"&gt;&lt;TD colspan="1" rowspan="1" style="padding: 8.67px; font-weight: 300; border-right-color: #cccccc; border-left-color: #cccccc; border-right-width: 1px; border-left-width: 1px; border-right-style: solid; border-left-style: solid;"&gt;&lt;P style="margin-top: 0px; margin-bottom: 0px;"&gt;8-bit unsigned integer&lt;/P&gt;&lt;/TD&gt;&lt;TD colspan="1" rowspan="1" style="padding: 8.67px; font-weight: 300; border-right-color: #cccccc; border-left-color: #cccccc; border-right-width: 1px; border-left-width: 1px; border-right-style: solid; border-left-style: solid;"&gt;&lt;P style="margin-top: 0px; margin-bottom: 0px;"&gt;Yes&lt;/P&gt;&lt;/TD&gt;&lt;TD colspan="1" rowspan="1" style="padding: 8.67px; font-weight: 300; border-right-color: #cccccc; border-left-color: #cccccc; border-right-width: 1px; border-left-width: 1px; border-right-style: solid; border-left-style: solid;"&gt;&lt;P style="margin-top: 0px; margin-bottom: 0px;"&gt;Packbits, LZW, JPEG (lossy), or None&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2018 18:12:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/export-data-arcpy-command-line-to-save-tiff-raster/m-p/278386#M21488</guid>
      <dc:creator>SondraRobinson</dc:creator>
      <dc:date>2018-07-30T18:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: Export Data arcpy command line to save Tiff raster with zero compression</title>
      <link>https://community.esri.com/t5/python-questions/export-data-arcpy-command-line-to-save-tiff-raster/m-p/278387#M21489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the suggestions Dan! I'll keep looking.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2018 19:20:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/export-data-arcpy-command-line-to-save-tiff-raster/m-p/278387#M21489</guid>
      <dc:creator>SondraRobinson</dc:creator>
      <dc:date>2018-07-30T19:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: Export Data arcpy command line to save Tiff raster with zero compression</title>
      <link>https://community.esri.com/t5/python-questions/export-data-arcpy-command-line-to-save-tiff-raster/m-p/278388#M21490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sondra, you set the environment parameter as you had before within the script before copyraster&lt;/P&gt;&lt;P&gt;I ran a test to check to see if it did anything.&amp;nbsp; If it isn't set it defaults to 'LZ77' but I don't trust that capitalized NONE thing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;env&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;compression &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; None
arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;env&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'compression'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'LZ77'&lt;/SPAN&gt;
arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;env&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;compression &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"NONE"&lt;/SPAN&gt;
arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;env&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'compression'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
&lt;SPAN class="string token"&gt;'NONE'&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN class="comment token"&gt;# returned value&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 13:33:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/export-data-arcpy-command-line-to-save-tiff-raster/m-p/278388#M21490</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2021-12-11T13:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: Export Data arcpy command line to save Tiff raster with zero compression</title>
      <link>https://community.esri.com/t5/python-questions/export-data-arcpy-command-line-to-save-tiff-raster/m-p/278389#M21491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any luck?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Aug 2018 17:39:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/export-data-arcpy-command-line-to-save-tiff-raster/m-p/278389#M21491</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-08-04T17:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: Export Data arcpy command line to save Tiff raster with zero compression</title>
      <link>https://community.esri.com/t5/python-questions/export-data-arcpy-command-line-to-save-tiff-raster/m-p/278390#M21492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nope. none at all. still looking to save a raster without compression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did do a verification through print(arcpy.env.compression) that the compression environment was successfully&amp;nbsp;set to None, both before and after the loop. It was came back with the correct setting, but still getting the compression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Interestingly, the compression is actually LZW, not the default LZ77. I found a reference to "How To: Change the default compression format for output TIFF files" but the file this article mentions doesn't exist on the machine I'm using. &lt;A href="https://support.esri.com/en/technical-article/000007588"&gt;https://support.esri.com/en/technical-article/000007588&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Aug 2018 02:45:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/export-data-arcpy-command-line-to-save-tiff-raster/m-p/278390#M21492</guid>
      <dc:creator>SondraRobinson</dc:creator>
      <dc:date>2018-08-12T02:45:36Z</dc:date>
    </item>
    <item>
      <title>Re: Export Data arcpy command line to save Tiff raster with zero compression</title>
      <link>https://community.esri.com/t5/python-questions/export-data-arcpy-command-line-to-save-tiff-raster/m-p/278391#M21493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This seems to work ok in 10.6.1 and Pro 2.2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; arcpy
outFolder &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;"C:\temp\data\results"&lt;/SPAN&gt;
arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;env&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;workspace &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;"c:\temp\data"&lt;/SPAN&gt;
arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;env&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;compression &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"NONE"&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; rasterFile &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ListRasters&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"*"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"TIF"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
 outName&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; outExtension &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;os&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;path&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;splitext&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;rasterFile&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
 outRaster &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;os&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;path&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;join&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;outFolder&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;''&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;join&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;outName&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"_u"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; outExtension&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
 arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;CopyRaster_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;rasterFile&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; outRaster&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 13:33:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/export-data-arcpy-command-line-to-save-tiff-raster/m-p/278391#M21493</guid>
      <dc:creator>ThomasEmge</dc:creator>
      <dc:date>2021-12-11T13:33:17Z</dc:date>
    </item>
    <item>
      <title>Re: Export Data arcpy command line to save Tiff raster with zero compression</title>
      <link>https://community.esri.com/t5/python-questions/export-data-arcpy-command-line-to-save-tiff-raster/m-p/278392#M21494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you! I had add this as a second script. So the first script adds the 4-band data and does what it needs to do [CopyRaster_management(rasterFile,outRaster,"DEFAULTS","255","255","","","8_BIT_UNSIGNED")]. This second script with then resaves everything without the compression exactly as you have it.&amp;nbsp;You saved my sanity!!!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2018 17:19:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/export-data-arcpy-command-line-to-save-tiff-raster/m-p/278392#M21494</guid>
      <dc:creator>SondraRobinson</dc:creator>
      <dc:date>2018-08-22T17:19:03Z</dc:date>
    </item>
  </channel>
</rss>

