<?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: Different results when running arcpy outside ArcMap? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/different-results-when-running-arcpy-outside/m-p/621710#M48398</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sounds like I had your answer. The ArcMap defaults clearly aren't the same as what you expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I do raster processing I try to project the data (Project Raster, Resample) instead of project on the fly, because then I have full control of how the resampling works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Explicitly controlling the raster processing environment (cell size, snap raster, etc) makes sure you are comparing apples with apples.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Oct 2014 20:18:17 GMT</pubDate>
    <dc:creator>curtvprice</dc:creator>
    <dc:date>2014-10-14T20:18:17Z</dc:date>
    <item>
      <title>Different results when running arcpy outside ArcMap?</title>
      <link>https://community.esri.com/t5/python-questions/different-results-when-running-arcpy-outside/m-p/621704#M48392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to run ZonalStatisticsAsTable using python.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a feature class in a FGDB and a raster within an SDE database (SQL Server).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I load these into layers within arcmap, open the python console (within arcmap) and execute:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14128546209322850" jivemacro_uid="_14128546209322850"&gt;
&lt;P&gt;arcpy.CheckOutExtension("Spatial")&lt;/P&gt;
&lt;P&gt;arcpy.sa.ZonalStatisticsAsTable(r"Site Boundary\Site", "Site", "sde_jbacfm.JBAGISEDITOR.River09Q1000D", "TempTable")&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;I get a table of results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I run this code, from a python console outside of arcmap:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14128546286286429" jivemacro_uid="_14128546286286429" modifiedtitle="true"&gt;
&lt;P&gt;import arcpy&lt;/P&gt;
&lt;P&gt;arcpy.CheckOutExtension("Spatial")&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;# In these filepaths I have purposefully replaced the full path with '...' for clarity. This is just for this example&lt;/P&gt;
&lt;P&gt;arcpy.env.workspace = r"C:\...\Output.gdb" # This is an empty geodatabase initiated with a WGS84 projection&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;input_feat = r"C:\...\SitePolygon.gdb\Site Boundary\Site"&lt;/P&gt;
&lt;P&gt;raster = r"C:\...\connection.sde\sde_jbacfm.JBAGISEDITOR.River09Q1000D"&lt;/P&gt;
&lt;P&gt;output = "TempTable"&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;arcpy.sa.ZonalStatisticsAsTable(input_feat, "Site", raster, output)&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works but I get an entirely different result for the statistics.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to work out what is going on? The only thing I can think of is that the projection of each input (and the output database) is different, but I had understood that arcpy would handle different projections automatically?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In any case, I would still expect to get the same result using python through arcmap as I did not reproject anything there either.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Oct 2014 11:38:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/different-results-when-running-arcpy-outside/m-p/621704#M48392</guid>
      <dc:creator>JamesRamm</dc:creator>
      <dc:date>2014-10-09T11:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: Different results when running arcpy outside ArcMap?</title>
      <link>https://community.esri.com/t5/python-questions/different-results-when-running-arcpy-outside/m-p/621705#M48393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;first this line should be put in raw format&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.env.workspace = &lt;SPAN class="string"&gt;"C:\...\Output.gdb"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="string"&gt;I wouldn't assume anything about...nor would I rely upon...projections on the fly.&amp;nbsp; You can easily fix that by establishing them explicitly&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Oct 2014 12:18:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/different-results-when-running-arcpy-outside/m-p/621705#M48393</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2014-10-09T12:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: Different results when running arcpy outside ArcMap?</title>
      <link>https://community.esri.com/t5/python-questions/different-results-when-running-arcpy-outside/m-p/621706#M48394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The line is in raw format; just an error in my editing for this forum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Projections on the fly or not...it doesnt explain why it would behave differently within arcmap than outside?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The two should be the same (right?), so should both give the same result, right or wrong. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Oct 2014 13:39:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/different-results-when-running-arcpy-outside/m-p/621706#M48394</guid>
      <dc:creator>JamesRamm</dc:creator>
      <dc:date>2014-10-09T13:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: Different results when running arcpy outside ArcMap?</title>
      <link>https://community.esri.com/t5/python-questions/different-results-when-running-arcpy-outside/m-p/621707#M48395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I see a difference in tool output inside and outside ArcMap (especially raster tools) my first place to check is the geoprocessing environment (extent, cellsize, output coordinate system, etc). If the environment settings are different in the ArcMap document than the environment defaults that are used when you run a python script standalone, you are likely to see different results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;gt; &lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;The only thing I can think of is that the projection of each input (and the output database) is different, but I had understood that arcpy would handle different projections automatically?&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Yes, but its automatic choice will depend on your geoprocessing settings and the input datasets. This varies by tool. In this situation, you probably want to explicitly set the spatial reference. Zonal Statistics analysis is area-weighted so you should specify an equal-area (projected) coordinate system rather than just letting arcpy geoprocessing guess based in your inputs.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;The easiest way to do do this in Python is to use the EPSG code:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14129691931623061" jivemacro_uid="_14129691931623061"&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;arcpy.env.outputCoordinateSystem = arcpy.SpatialReference(102039) # Albers equal area&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Oct 2014 17:43:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/different-results-when-running-arcpy-outside/m-p/621707#M48395</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2014-10-09T17:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: Different results when running arcpy outside ArcMap?</title>
      <link>https://community.esri.com/t5/python-questions/different-results-when-running-arcpy-outside/m-p/621708#M48396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The env information is exactly the same, apart from the output workspace - however, these are both just file geodatabases with the same parameters. &lt;/P&gt;&lt;P&gt;env is mostly the same because the parameters are not set (i.e. extent, cellsize, output coordinate system are all blank in both arcmap and stand-alone).&lt;/P&gt;&lt;P&gt;I would've thought that in this case though, arcpy would always choose the same parameters for any settings it requires which are not user-provided, as the inputs are exactly the same whether it is arcmap or stand-alone. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2014 12:48:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/different-results-when-running-arcpy-outside/m-p/621708#M48396</guid>
      <dc:creator>JamesRamm</dc:creator>
      <dc:date>2014-10-14T12:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: Different results when running arcpy outside ArcMap?</title>
      <link>https://community.esri.com/t5/python-questions/different-results-when-running-arcpy-outside/m-p/621709#M48397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are right:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Setting&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14132912510165935 jive_text_macro" jivemacro_uid="_14132912510165935"&gt;
&lt;P&gt;arcpy.env.outputCoordinateSystem&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&amp;nbsp; ensures the same answer whether from within arcmap or stand alone, however it is a different answer than that gained when run from within arcmap without&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14132912599136773" jivemacro_uid="_14132912599136773"&gt;
&lt;P&gt; arcpy.env.outputCoordinateSystem.&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have decided that the latter case is the right answer, so I'm still trying to figure out what has gone wrong.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2014 12:54:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/different-results-when-running-arcpy-outside/m-p/621709#M48397</guid>
      <dc:creator>JamesRamm</dc:creator>
      <dc:date>2014-10-14T12:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: Different results when running arcpy outside ArcMap?</title>
      <link>https://community.esri.com/t5/python-questions/different-results-when-running-arcpy-outside/m-p/621710#M48398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sounds like I had your answer. The ArcMap defaults clearly aren't the same as what you expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I do raster processing I try to project the data (Project Raster, Resample) instead of project on the fly, because then I have full control of how the resampling works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Explicitly controlling the raster processing environment (cell size, snap raster, etc) makes sure you are comparing apples with apples.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2014 20:18:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/different-results-when-running-arcpy-outside/m-p/621710#M48398</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2014-10-14T20:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: Different results when running arcpy outside ArcMap?</title>
      <link>https://community.esri.com/t5/python-questions/different-results-when-running-arcpy-outside/m-p/621711#M48399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes I have it working by projecting the input feature to the same projection as the raster to extract stats from. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It does seem a bit non-intuitive that arcpy would opaquely alter settings from within arcmap and not without. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2014 11:18:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/different-results-when-running-arcpy-outside/m-p/621711#M48399</guid>
      <dc:creator>JamesRamm</dc:creator>
      <dc:date>2014-10-15T11:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: Different results when running arcpy outside ArcMap?</title>
      <link>https://community.esri.com/t5/python-questions/different-results-when-running-arcpy-outside/m-p/621712#M48400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;&amp;gt; &lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; background-color: #f3f3f3;"&gt;It does seem a bit non-intuitive that arcpy would opaquely alter settings from within arcmap and not without.&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When running from ArcMap, there are settings the user can set in the geoprocessing environment dialog, and in modelbuilder -- and also if you call your tool from a python script, it may have environment settings before your tool is called. To support this, the tool behavior must be affected by the GP environment set in the application. So if you care (like in this case, with zonal stats) you need to explicitly set the env in your tool. Your script documentation should inform the user which geoprocessing settings your tool will honor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#/Environment_levels_and_hierarchy/001w00000036000000/"&gt;Desktop Help 10.2: Environment Levels and Hierarchy&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2014 17:10:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/different-results-when-running-arcpy-outside/m-p/621712#M48400</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2014-10-15T17:10:03Z</dc:date>
    </item>
    <item>
      <title>Re: Different results when running arcpy outside ArcMap?</title>
      <link>https://community.esri.com/t5/python-questions/different-results-when-running-arcpy-outside/m-p/621713#M48401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Seems like I've not fully resolved this issue as it appears that trying to project two of the same feature, but with different coordinate systems, to the same coordinate system gives slightly different results. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Importing two features which are the same but have different SRS's to arcmap correctly displays them (i.e. on top of each other). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reprojecting both to a 3rd coordinate system outside of arcmap and then importing these new features now shows that they are not in the same position. &lt;/P&gt;&lt;P&gt;I'm wondering what other environment settings are controlling this. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2014 09:15:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/different-results-when-running-arcpy-outside/m-p/621713#M48401</guid>
      <dc:creator>JamesRamm</dc:creator>
      <dc:date>2014-10-20T09:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: Different results when running arcpy outside ArcMap?</title>
      <link>https://community.esri.com/t5/python-questions/different-results-when-running-arcpy-outside/m-p/621714#M48402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This sounds like a different issue. Please start a new thread with more detail (i.e. which spatial references, data types, even some test data).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2014 02:33:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/different-results-when-running-arcpy-outside/m-p/621714#M48402</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2014-10-23T02:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: Different results when running arcpy outside ArcMap?</title>
      <link>https://community.esri.com/t5/python-questions/different-results-when-running-arcpy-outside/m-p/621715#M48403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;In any case, I would still expect to get the same result using python through arcmap as I did not reproject anything there either.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I published a peer reviewed paper in 2015, based on tabulated results that were obtained using a python script that used the arcpy method zonal histogram. I had no environments set there, other than snap to raster. The area shapefile and the raster, were&amp;nbsp;in the same projection. Recently,having to check those results again, I used zonal histogram&amp;nbsp;in the ArcMap GUI and, using the same exact input layers, and also not setting any environments other than snap to raster, I got drastically different results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How is this not a bug? The answer to the OP should be simple and clear: sorry - we'll fix this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;arcpy/ArcMap should not have opaque settings that produce different results, when the same tool is used and all the input layers and settings are equal. Period.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It took me several hours of debugging to figure out the issue - the default (and OPAQUE) environment settings in zonal histogram when used from the arcmap GUI analyze the data at a coarser resolution than the inputs, to save computational time. Setting the environment setting to match the pixel size of the raster being analyzed, makes the tool perform as expected, and as it should be as default, obviously, and therefore matches the output results i get when using zonal histogram on the same exact layers in an arcpy script.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gdal next time?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jun 2017 00:25:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/different-results-when-running-arcpy-outside/m-p/621715#M48403</guid>
      <dc:creator>giuseppemolinario</dc:creator>
      <dc:date>2017-06-08T00:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: Different results when running arcpy outside ArcMap?</title>
      <link>https://community.esri.com/t5/python-questions/different-results-when-running-arcpy-outside/m-p/621716#M48404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's only fair to note in this thread that the help for this tool&amp;nbsp;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/tools/spatial-analyst-toolbox/zonal-histogram.htm" title="http://desktop.arcgis.com/en/arcmap/latest/tools/spatial-analyst-toolbox/zonal-histogram.htm"&gt;Zonal Histogram—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp; and &lt;A class="link-titled" href="http://pro.arcgis.com/en/pro-app/tool-reference/spatial-analyst/zonal-statistics-as-table.htm" title="http://pro.arcgis.com/en/pro-app/tool-reference/spatial-analyst/zonal-statistics-as-table.htm"&gt;Zonal Statistics as Table—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp; both have a bullet item warning about this behavior. (No doubt in response to user input in the form of support tickets!)&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;It is recommended to only use rasters as the zone input, as it offers you greater control over the vector-to-raster conversion. This will help ensure you consistently get the expected results.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I am the author of&lt;A href="http://www.arcgis.com/home/item.html?id=cbb59504f59f4e18b23817fb0ef40e56"&gt; a tool that does Zonal stats&lt;/A&gt;&amp;nbsp;and I have it avoid this problem by defaulting the cell size (and snap) to the raster dataset resolution as you suggest. Unless the environment cell size has been set, in which case it honors the env cell size, resampling the value raster, but warning the user.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;More on environments:&amp;nbsp;&lt;A href="http://desktop.arcgis.com/en/arcmap/latest/tools/environments/setting-geoprocessing-environment.htm" title="http://desktop.arcgis.com/en/arcmap/latest/tools/environments/setting-geoprocessing-environment.htm"&gt;Setting geoprocessing environments—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jun 2017 03:53:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/different-results-when-running-arcpy-outside/m-p/621716#M48404</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2017-06-08T03:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: Different results when running arcpy outside ArcMap?</title>
      <link>https://community.esri.com/t5/python-questions/different-results-when-running-arcpy-outside/m-p/621717#M48405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;At least in PRO they have put the Environments tab at the top, front and center instead of being buried in the bottom right corner of the dialog&amp;nbsp;&lt;/P&gt;&lt;P&gt;Small steps... I would love to have a non-removable popup when settings haven't been explicitly set OR checked.&amp;nbsp; Would make the classroom go a lot smoother&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jun 2017 06:11:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/different-results-when-running-arcpy-outside/m-p/621717#M48405</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-06-08T06:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: Different results when running arcpy outside ArcMap?</title>
      <link>https://community.esri.com/t5/python-questions/different-results-when-running-arcpy-outside/m-p/621718#M48406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I totally agree with&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/6238"&gt;giuseppe molinario&lt;/A&gt; that the environments are quite a bit below the hood, and that sometimes it can be absolutely maddening &amp;nbsp;when you get results you didn't expect because of environment settings set at the application level inside a dialog that is not even included as a button on the ArcMap toolbar! (Personally I use Customize mode to add an environments button next to the Python button.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also am missing a button you can push in the environments dialog to "reset all environments" to defaults. Except, the question is asked: which defaults, as the current settings are saved with the map document. Something that is supposed to be a convenience can become a curse in a hurry.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope the links I offered were in a spirit of helpfulness to readers of this thread, and definitely not in disrespect to anyone frustrated with the platform, which is very powerful like a knife with many blades that can cut you. Been there many times in the last 30 years, I get it. Trust but verify.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jun 2017 09:16:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/different-results-when-running-arcpy-outside/m-p/621718#M48406</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2017-06-08T09:16:00Z</dc:date>
    </item>
  </channel>
</rss>

