<?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: Warp Scripting Tool Degrades Image  in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/warp-scripting-tool-degrades-image/m-p/535601#M41970</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share a screenshot of input and output using Nearest Neighbor? It&amp;nbsp;would help a lot to see&amp;nbsp;how large the degradation&amp;nbsp;is. Please use the same stretching of the image specifying min and max values (not standard deviation or other methods which do not allow to compare&amp;nbsp;the exact difference):&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Select&amp;nbsp;stretch type "Minimum - Maximum"&lt;/LI&gt;&lt;LI&gt;Switch on the option "Edit High/Low Values"&lt;/LI&gt;&lt;LI&gt;Specify a relevant low and high Value according to your data&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/382744_pastedImage_1.png" style="width: 620px; height: 471px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please do this in both the input and output raster and past the screenshots in this thread.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Nov 2017 16:04:10 GMT</pubDate>
    <dc:creator>XanderBakker</dc:creator>
    <dc:date>2017-11-07T16:04:10Z</dc:date>
    <item>
      <title>Warp Scripting Tool Degrades Image</title>
      <link>https://community.esri.com/t5/python-questions/warp-scripting-tool-degrades-image/m-p/535594#M41963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I am using Arcgic 9.3 and had a question regarding the Warp (Data Management) tool. Whenever I warp an image using the Warp (Data Management) tool, it reduces the contrast of my pixels and reduces the black intensities on my panchromatic image even though I have forced the CellSize. This is my code (takes about 1 min to run):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import arcgisscripting&lt;/P&gt;&lt;P&gt;gp = arcgisscripting.create(9.3)&lt;/P&gt;&lt;P&gt;gp.CellSize = 0.00001&lt;/P&gt;&lt;P&gt;gp.Warp_management(inputImage, sourcePoints, targetPoints, outputImage, "POLYORDER1", "CUBIC")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, it works fine using Map Algebra but the code takes a lot longer to run (4-5 mins per image).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import arcgisscripting&lt;/P&gt;&lt;P&gt;gp = arcgisscripting.create(9.3)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;gp.CheckOutExtension("Spatial")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;warp = "warp(inputImage, linkFile, 1, CUBIC, #, 0.00001)"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;gp.SingleOutputMapAlgebra_sa(warp, outputImage)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;Is there somewhere I can force some environment variables that would prevent Warp (Data Management) from losing pixels/degrading my image? Much help would be appreciated as I have been banging my head a long time on this. Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Nov 2017 23:36:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/warp-scripting-tool-degrades-image/m-p/535594#M41963</guid>
      <dc:creator>RyanGoh</dc:creator>
      <dc:date>2017-11-06T23:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: Warp Scripting Tool Degrades Image</title>
      <link>https://community.esri.com/t5/python-questions/warp-scripting-tool-degrades-image/m-p/535595#M41964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From the &lt;A href="http://desktop.arcgis.com/en/arcmap/latest/tools/data-management-toolbox/warp-from-file.htm"&gt;&lt;STRONG&gt;help files&lt;/STRONG&gt;&lt;/A&gt; I would check the transformation types (which you have used the default) and make sure that you aren't changing the cell size (I presume your file is in geographic coordinates).&amp;nbsp; Environment settings can be controlled as specified in the help, so you can set those in your script as necessary.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Nov 2017 23:43:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/warp-scripting-tool-degrades-image/m-p/535595#M41964</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-11-06T23:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: Warp Scripting Tool Degrades Image</title>
      <link>https://community.esri.com/t5/python-questions/warp-scripting-tool-degrades-image/m-p/535596#M41965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dan! Thanks for your reply. However, like I mentioned, I am using Arcgis 9.3 which does not have a WarpFromFile tool. The help files for &lt;A class="link-titled" href="http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?TopicName=Warp%20(Data%20Management)" title="http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?TopicName=Warp%20(Data%20Management)"&gt;ArcGIS Desktop Help 9.3 - Warp (Data Management)&lt;/A&gt;&amp;nbsp;that I am using is this one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even if I use all the default values such as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;gp.CellSize = 0.00001&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;gp.Warp_management(inputImage, sourcePoints, targetPoints, outputImage, "POLYORDER1", "NEAREST")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;The outputImage still loses intensity and degrades. The CellSize does not get restricted to the value that I want either. Does anyone know why that is so?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;A href="https://community.esri.com/people/Dan_Patterson"&gt;Dan_Patterson&lt;/A&gt;‌&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;A href="https://community.esri.com/people/cdspatial"&gt;cdspatial&lt;/A&gt;‌&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;A href="https://community.esri.com/groups/arcgis-data-reviewer?sr=search&amp;amp;searchId=3c33e42c-3ff0-4c00-8310-3e4aa8e1a3db&amp;amp;searchIndex=0"&gt;https://community.esri.com/groups/arcgis-data-reviewer?sr=search&amp;amp;searchId=3c33e42c-3ff0-4c00-8310-3e4aa8e1a3db&amp;amp;searchIndex=0&lt;/A&gt;‌&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2017 10:38:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/warp-scripting-tool-degrades-image/m-p/535596#M41965</guid>
      <dc:creator>RyanGoh</dc:creator>
      <dc:date>2017-11-07T10:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: Warp Scripting Tool Degrades Image</title>
      <link>https://community.esri.com/t5/python-questions/warp-scripting-tool-degrades-image/m-p/535597#M41966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Whether 10.X or 9.3, it seems that the only environment settings honored are&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #000000; font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 12.8px; font-style: normal; font-variant: normal; font-weight: 400; 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;The following environments affect this tool: &lt;/SPAN&gt;&lt;A href="http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?TopicName=Current workspace" style="background-color: transparent; color: #106790; font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 12.8px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: underline; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" target="_top"&gt;current workspace&lt;/A&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #000000; font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 12.8px; font-style: normal; font-variant: normal; font-weight: 400; 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;/SPAN&gt;&lt;A href="http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?TopicName=Scratch workspace" style="background-color: transparent; color: #106790; font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 12.8px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: underline; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" target="_top"&gt;scratch workspace&lt;/A&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #000000; font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 12.8px; font-style: normal; font-variant: normal; font-weight: 400; 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;/SPAN&gt;&lt;A href="http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?TopicName=Output coordinate system" style="background-color: transparent; color: #106790; font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 12.8px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: underline; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" target="_top"&gt;output coordinate system&lt;/A&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #000000; font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 12.8px; font-style: normal; font-variant: normal; font-weight: 400; 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;/SPAN&gt;&lt;A href="http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?TopicName=Output extent" style="background-color: transparent; color: #106790; font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 12.8px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: underline; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" target="_top"&gt;output extent&lt;/A&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #000000; font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 12.8px; font-style: normal; font-variant: normal; font-weight: 400; 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;/SPAN&gt;&lt;A href="http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?TopicName=Snap raster" style="background-color: transparent; color: #106790; font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 12.8px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: underline; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" target="_top"&gt;snap raster&lt;/A&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #000000; font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 12.8px; font-style: normal; font-variant: normal; font-weight: 400; 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;/SPAN&gt;&lt;A href="http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?TopicName=output CONFIG Keyword" style="background-color: transparent; color: #106790; font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 12.8px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: underline; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" target="_top"&gt;output CONFIG keyword&lt;/A&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #000000; font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 12.8px; font-style: normal; font-variant: normal; font-weight: 400; 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;/SPAN&gt;&lt;A href="http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?TopicName=Pyramid" style="background-color: transparent; color: #106790; font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 12.8px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: underline; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" target="_top"&gt;pyramid&lt;/A&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #000000; font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 12.8px; font-style: normal; font-variant: normal; font-weight: 400; 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;/SPAN&gt;&lt;A href="http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?TopicName=Raster statistics" style="background-color: transparent; color: #106790; font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 12.8px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: underline; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" target="_top"&gt;raster statistics&lt;/A&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #000000; font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 12.8px; font-style: normal; font-variant: normal; font-weight: 400; 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;/SPAN&gt;&lt;A href="http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?TopicName=Compression" style="background-color: transparent; color: #106790; font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 12.8px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: underline; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" target="_top"&gt;compression&lt;/A&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #000000; font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 12.8px; font-style: normal; font-variant: normal; font-weight: 400; 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;, and &lt;/SPAN&gt;&lt;A href="http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?TopicName=Tile size" style="background-color: transparent; color: #106790; font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 12.8px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: underline; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;" target="_top"&gt;tile size&lt;/A&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #000000; font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 12.8px; font-style: normal; font-variant: normal; font-weight: 400; 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;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #000000; font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 12.8px; font-style: normal; font-variant: normal; font-weight: 400; 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;Have you confirmed that the intensity and degradation is not the result of the symbology used to view the raster?&amp;nbsp; Perhaps you can show the histogram of before and after through the symbology classify section for comparison. &amp;nbsp;&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: #000000; font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 12.8px; font-style: normal; font-variant: normal; font-weight: 400; 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;EDIT&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #000000; font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 12.8px; font-style: normal; font-variant: normal; font-weight: 400; 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;Then warp apparently ignores the expected number of rows and columns setting bug&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #000000; font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 12.8px; font-style: normal; font-variant: normal; font-weight: 400; 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 href="http://support.esri.com/en/bugs/nimbus/TklNMDU0NDYz"&gt;http://support.esri.com/en/bugs/nimbus/TklNMDU0NDYz&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #000000; font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 12.8px; font-style: normal; font-variant: normal; font-weight: 400; 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;and there were a whole load of other 'issues' in older versions on the support site&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2017 10:55:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/warp-scripting-tool-degrades-image/m-p/535597#M41966</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-11-07T10:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: Warp Scripting Tool Degrades Image</title>
      <link>https://community.esri.com/t5/python-questions/warp-scripting-tool-degrades-image/m-p/535598#M41967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In both examples that you posted I notice that you are using CUBIC:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;EM&gt;&lt;STRONG&gt;Cubic&lt;/STRONG&gt;—Performs a cubic convolution and determines the new value of a cell based on fitting a smooth curve through the 16 nearest input cell centers. It is appropriate for continuous data, although it may result in the output raster containing values outside the range of the input raster. It is geometrically less distorted than the raster achieved by running the nearest neighbor resampling algorithm. The disadvantage of the Cubic option is that it requires more processing time. In some cases, it can result in output cell values outside the range of input cell values. If this is unacceptable, use Bilinear instead.&lt;/EM&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;It is normal&amp;nbsp;that higher and lower values will be smoothed out when using Cubic resampling...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2017 12:13:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/warp-scripting-tool-degrades-image/m-p/535598#M41967</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2017-11-07T12:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: Warp Scripting Tool Degrades Image</title>
      <link>https://community.esri.com/t5/python-questions/warp-scripting-tool-degrades-image/m-p/535599#M41968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wow thanks Dan - I will try to play around with these environment variables and see if it fixes anything.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes I can confirm that the degradation is not a result of viewing tool. I don't have the exact histograms right now but I recall that after warping, my histogram is shifted to the right and I have a whole block of intensities that I never had before.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there another tool I can use to make a transformation like this other than warp?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/people/Dan_Patterson"&gt;Dan_Patterson&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2017 13:22:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/warp-scripting-tool-degrades-image/m-p/535599#M41968</guid>
      <dc:creator>RyanGoh</dc:creator>
      <dc:date>2017-11-07T13:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: Warp Scripting Tool Degrades Image</title>
      <link>https://community.esri.com/t5/python-questions/warp-scripting-tool-degrades-image/m-p/535600#M41969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you refer to the above comment, I get degradation too even when I use default values such as Polyorder1 and Nearest neighbor sampling.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2017 13:23:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/warp-scripting-tool-degrades-image/m-p/535600#M41969</guid>
      <dc:creator>RyanGoh</dc:creator>
      <dc:date>2017-11-07T13:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: Warp Scripting Tool Degrades Image</title>
      <link>https://community.esri.com/t5/python-questions/warp-scripting-tool-degrades-image/m-p/535601#M41970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share a screenshot of input and output using Nearest Neighbor? It&amp;nbsp;would help a lot to see&amp;nbsp;how large the degradation&amp;nbsp;is. Please use the same stretching of the image specifying min and max values (not standard deviation or other methods which do not allow to compare&amp;nbsp;the exact difference):&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Select&amp;nbsp;stretch type "Minimum - Maximum"&lt;/LI&gt;&lt;LI&gt;Switch on the option "Edit High/Low Values"&lt;/LI&gt;&lt;LI&gt;Specify a relevant low and high Value according to your data&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/382744_pastedImage_1.png" style="width: 620px; height: 471px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please do this in both the input and output raster and past the screenshots in this thread.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2017 16:04:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/warp-scripting-tool-degrades-image/m-p/535601#M41970</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2017-11-07T16:04:10Z</dc:date>
    </item>
  </channel>
</rss>

