<?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 Running Cell Stat from copied Python command produces error in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/running-cell-stat-from-copied-python-command/m-p/529188#M23271</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I run Cell Statistics from the UI, then copy the python command from History and paste it into the Python window, it produces an error:&amp;nbsp;&lt;/P&gt;&lt;PRE style="text-align: left;"&gt;&lt;STRONG&gt;TypeError: CellStatistics() takes from 1 to 3 positional arguments but 4 were given.&amp;nbsp;&lt;/STRONG&gt;&lt;/PRE&gt;&lt;P&gt;The only modification I made to the script was changing the name of the output.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the code:&lt;/P&gt;&lt;P&gt;arcpy.ia.CellStatistics(r"'WindSpeed\WindSpd_10_HTGL1/9/2019 6:00:00 PM';'WindSpeed\WindSpd_10_HTGL1/9/2019 12:00:00 PM';'WindSpeed\WindSpd_10_HTGL1/9/2019 6:00:00 AM';WindSpeed\WindSpd_10_HTGL1/9/2019;'WindSpeed\WindSpd_10_HTGL1/8/2019 6:00:00 PM';'WindSpeed\WindSpd_10_HTGL1/8/2019 12:00:00 PM';'WindSpeed\WindSpd_10_HTGL1/8/2019 6:00:00 AM';WindSpeed\WindSpd_10_HTGL1/8/2019;'WindSpeed\WindSpd_10_HTGL1/7/2019 6:00:00 PM';'WindSpeed\WindSpd_10_HTGL1/7/2019 12:00:00 PM';'WindSpeed\WindSpd_10_HTGL1/7/2019 6:00:00 AM';WindSpeed\WindSpd_10_HTGL1/7/2019;'WindSpeed\WindSpd_10_HTGL1/6/2019 6:00:00 PM';'WindSpeed\WindSpd_10_HTGL1/6/2019 12:00:00 PM';'WindSpeed\WindSpd_10_HTGL1/6/2019 6:00:00 AM';WindSpeed\WindSpd_10_HTGL1/10/2019", r"C:\Users\gmarcus\Documents\ArcGIS\Projects\MyProject4\MyProject4.gdb\WindSpdMaxde", "MAXIMUM", "DATA")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why would the python that ArcGIS Pro produces cause an error? Is this yet another example of a line of python produced by ArcGIS Pro that is known to not work?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm aware that when copying the Python from Raster Calculator also doesn't work. It seems lame to allow a user to copy a Python snippet when it won't work. Looking at the example of Cell Statistics &lt;A href="http://pro.arcgis.com/en/pro-app/tool-reference/spatial-analyst/cell-statistics.htm"&gt;in the documentation&lt;/A&gt;, it seems like this is another example of this approach. WHY ARE YOU DOING THIS ESRI?!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Gabe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Jan 2019 19:59:27 GMT</pubDate>
    <dc:creator>GabrielMarcus1</dc:creator>
    <dc:date>2019-01-07T19:59:27Z</dc:date>
    <item>
      <title>Running Cell Stat from copied Python command produces error</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/running-cell-stat-from-copied-python-command/m-p/529188#M23271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I run Cell Statistics from the UI, then copy the python command from History and paste it into the Python window, it produces an error:&amp;nbsp;&lt;/P&gt;&lt;PRE style="text-align: left;"&gt;&lt;STRONG&gt;TypeError: CellStatistics() takes from 1 to 3 positional arguments but 4 were given.&amp;nbsp;&lt;/STRONG&gt;&lt;/PRE&gt;&lt;P&gt;The only modification I made to the script was changing the name of the output.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the code:&lt;/P&gt;&lt;P&gt;arcpy.ia.CellStatistics(r"'WindSpeed\WindSpd_10_HTGL1/9/2019 6:00:00 PM';'WindSpeed\WindSpd_10_HTGL1/9/2019 12:00:00 PM';'WindSpeed\WindSpd_10_HTGL1/9/2019 6:00:00 AM';WindSpeed\WindSpd_10_HTGL1/9/2019;'WindSpeed\WindSpd_10_HTGL1/8/2019 6:00:00 PM';'WindSpeed\WindSpd_10_HTGL1/8/2019 12:00:00 PM';'WindSpeed\WindSpd_10_HTGL1/8/2019 6:00:00 AM';WindSpeed\WindSpd_10_HTGL1/8/2019;'WindSpeed\WindSpd_10_HTGL1/7/2019 6:00:00 PM';'WindSpeed\WindSpd_10_HTGL1/7/2019 12:00:00 PM';'WindSpeed\WindSpd_10_HTGL1/7/2019 6:00:00 AM';WindSpeed\WindSpd_10_HTGL1/7/2019;'WindSpeed\WindSpd_10_HTGL1/6/2019 6:00:00 PM';'WindSpeed\WindSpd_10_HTGL1/6/2019 12:00:00 PM';'WindSpeed\WindSpd_10_HTGL1/6/2019 6:00:00 AM';WindSpeed\WindSpd_10_HTGL1/10/2019", r"C:\Users\gmarcus\Documents\ArcGIS\Projects\MyProject4\MyProject4.gdb\WindSpdMaxde", "MAXIMUM", "DATA")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why would the python that ArcGIS Pro produces cause an error? Is this yet another example of a line of python produced by ArcGIS Pro that is known to not work?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm aware that when copying the Python from Raster Calculator also doesn't work. It seems lame to allow a user to copy a Python snippet when it won't work. Looking at the example of Cell Statistics &lt;A href="http://pro.arcgis.com/en/pro-app/tool-reference/spatial-analyst/cell-statistics.htm"&gt;in the documentation&lt;/A&gt;, it seems like this is another example of this approach. WHY ARE YOU DOING THIS ESRI?!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Gabe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2019 19:59:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/running-cell-stat-from-copied-python-command/m-p/529188#M23271</guid>
      <dc:creator>GabrielMarcus1</dc:creator>
      <dc:date>2019-01-07T19:59:27Z</dc:date>
    </item>
    <item>
      <title>Re: Running Cell Stat from copied Python command produces error</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/running-cell-stat-from-copied-python-command/m-p/529189#M23272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you will have to parse the output string since you have noted, up to 3 are required, but it appears that they have whipped in the save portion into the output string&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #f8f8f8; color: #595959; font-family: 'Consolas','Andale Mono','Lucida Console','Monaco',monospace; font-size: 14.46px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 23.8px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px; word-wrap: normal;"&gt;outCellStats = CellStatistics([&lt;/SPAN&gt;&lt;SPAN style="background-color: transparent; color: #c41a16; 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.46px; 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: pre; word-spacing: 0px;"&gt;"degs"&lt;/SPAN&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #f8f8f8; color: #595959; font-family: 'Consolas','Andale Mono','Lucida Console','Monaco',monospace; font-size: 14.46px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 23.8px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px; word-wrap: normal;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="background-color: transparent; color: #c41a16; 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.46px; 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: pre; word-spacing: 0px;"&gt;"negs"&lt;/SPAN&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #f8f8f8; color: #595959; font-family: 'Consolas','Andale Mono','Lucida Console','Monaco',monospace; font-size: 14.46px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 23.8px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px; word-wrap: normal;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="background-color: transparent; color: #c41a16; 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.46px; 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: pre; word-spacing: 0px;"&gt;"cost"&lt;/SPAN&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #f8f8f8; color: #595959; font-family: 'Consolas','Andale Mono','Lucida Console','Monaco',monospace; font-size: 14.46px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 23.8px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px; word-wrap: normal;"&gt;], &lt;/SPAN&gt;&lt;SPAN style="background-color: transparent; color: #c41a16; 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.46px; 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: pre; word-spacing: 0px;"&gt;"STD"&lt;/SPAN&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #f8f8f8; color: #595959; font-family: 'Consolas','Andale Mono','Lucida Console','Monaco',monospace; font-size: 14.46px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 23.8px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px; word-wrap: normal;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="background-color: transparent; color: #c41a16; 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.46px; 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: pre; word-spacing: 0px;"&gt;"DATA"&lt;/SPAN&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #f8f8f8; color: #595959; font-family: 'Consolas','Andale Mono','Lucida Console','Monaco',monospace; font-size: 14.46px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 23.8px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px; word-wrap: normal;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #f8f8f8; color: #595959; font-family: 'Consolas','Andale Mono','Lucida Console','Monaco',monospace; font-size: 14.46px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 23.8px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px; word-wrap: normal;"&gt;outCellStats.save(&lt;/SPAN&gt;&lt;SPAN style="background-color: transparent; color: #c41a16; 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.46px; 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: pre; word-spacing: 0px;"&gt;"C:/sapyexamples/output/outcellstats.img"&lt;/SPAN&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #f8f8f8; color: #595959; font-family: 'Consolas','Andale Mono','Lucida Console','Monaco',monospace; font-size: 14.46px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 23.8px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px; word-wrap: normal;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #f8f8f8; color: #595959; font-family: 'Consolas','Andale Mono','Lucida Console','Monaco',monospace; font-size: 14.46px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 23.8px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px; word-wrap: normal;"&gt;you stuff&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #f8f8f8; color: #595959; font-family: 'Consolas','Andale Mono','Lucida Console','Monaco',monospace; font-size: 14.46px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 23.8px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px; word-wrap: normal;"&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3d3d3d; font-family: arial,helvetica,'helvetica neue',verdana,sans-serif; font-size: 15px; 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; word-wrap: break-word;"&gt;result = arcpy.ia.CellStatistics(r'..snip...', "MAXIMUM", "DATA")&amp;nbsp; # your input list&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #f8f8f8; color: #595959; font-family: 'Consolas','Andale Mono','Lucida Console','Monaco',monospace; font-size: 14.46px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 23.8px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px; word-wrap: normal;"&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3d3d3d; font-family: arial,helvetica,'helvetica neue',verdana,sans-serif; font-size: 15px; 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; word-wrap: break-word;"&gt;result.save( r"C:\… snip... \MyProject4.gdb\WindSpdMaxde")&amp;nbsp; # your output folder&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2019 20:24:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/running-cell-stat-from-copied-python-command/m-p/529189#M23272</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2019-01-07T20:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: Running Cell Stat from copied Python command produces error</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/running-cell-stat-from-copied-python-command/m-p/529190#M23273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have it working now. I'm annoyed that copying the python command won't work though.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2019 22:13:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/running-cell-stat-from-copied-python-command/m-p/529190#M23273</guid>
      <dc:creator>GabrielMarcus1</dc:creator>
      <dc:date>2019-01-07T22:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: Running Cell Stat from copied Python command produces error</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/running-cell-stat-from-copied-python-command/m-p/529191#M23274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gabriel,&lt;/P&gt;&lt;P&gt;It is a bug, and I will report it to the ArcGIS Pro 2.3 beta 2 forum&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Worked in the interface as designed and described.&lt;/P&gt;&lt;P&gt;Copied the path into the CellStatistics line which it shouldn't&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;arcpy.ia.CellStatistics("r012;2", r"C:\Git_Dan\arraytools\array_tools_testing\array_tools.gdb\CellSta_r0121", "MAXIMUM", "DATA")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DONE... I will report here any information, but the help is misleading and/or it should include an optional path parameter should the user wish to save the results.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2019 22:23:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/running-cell-stat-from-copied-python-command/m-p/529191#M23274</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2019-01-07T22:23:22Z</dc:date>
    </item>
    <item>
      <title>Re: Running Cell Stat from copied Python command produces error</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/running-cell-stat-from-copied-python-command/m-p/529192#M23275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for bringing this issue to our attention.&amp;nbsp; I have submitted this issue to our development team and will work towards a fix for next release.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2019 00:03:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/running-cell-stat-from-copied-python-command/m-p/529192#M23275</guid>
      <dc:creator>ElizabethGraham</dc:creator>
      <dc:date>2019-01-08T00:03:41Z</dc:date>
    </item>
    <item>
      <title>Re: Running Cell Stat from copied Python command produces error</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/running-cell-stat-from-copied-python-command/m-p/529193#M23276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;2.3 beta 2? Does it matter that I'm running 2.2.4?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2019 00:28:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/running-cell-stat-from-copied-python-command/m-p/529193#M23276</guid>
      <dc:creator>GabrielMarcus1</dc:creator>
      <dc:date>2019-01-08T00:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: Running Cell Stat from copied Python command produces error</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/running-cell-stat-from-copied-python-command/m-p/529194#M23277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gabriel... I am running 2.3 beta 2 and it failed… if it failed in 2.2.4, then it just hasn't been detected as an error, or no one reported it before.&lt;/P&gt;&lt;P&gt;Your workaround is to remember that the 'save' portion of the process has somehow been included in the one-line but needs to be separated out as I showed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2019 00:33:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/running-cell-stat-from-copied-python-command/m-p/529194#M23277</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2019-01-08T00:33:29Z</dc:date>
    </item>
    <item>
      <title>Re: Running Cell Stat from copied Python command produces error</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/running-cell-stat-from-copied-python-command/m-p/529195#M23278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help everyone!&lt;/P&gt;&lt;P&gt;One other thing: why are some commands such as "merge" and "project" output from the "Copy as python command" as arcpy.management.&lt;EM&gt;name&lt;/EM&gt;&amp;nbsp; versus "&lt;EM&gt;name&lt;/EM&gt;_management" the way that they appear in the docs?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2019 21:16:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/running-cell-stat-from-copied-python-command/m-p/529195#M23278</guid>
      <dc:creator>GabrielMarcus1</dc:creator>
      <dc:date>2019-01-08T21:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: Running Cell Stat from copied Python command produces error</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/running-cell-stat-from-copied-python-command/m-p/529196#M23279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dan,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is your raster.save working appropriately?&lt;/P&gt;&lt;P&gt;I've annotated my script with status messages using print() statements.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a loop that saves 3 files to a GDB. The first one executes, then stops.&amp;nbsp;&lt;/P&gt;&lt;P&gt;There's no error. It just stops executing. The raster file is named the variable name, but the name I chose for the raster is stored in the GDB.&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are no conditional statements to branch off or evaluate a condition.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jan 2019 03:31:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/running-cell-stat-from-copied-python-command/m-p/529196#M23279</guid>
      <dc:creator>GabrielMarcus1</dc:creator>
      <dc:date>2019-01-16T03:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: Running Cell Stat from copied Python command produces error</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/running-cell-stat-from-copied-python-command/m-p/529197#M23280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I save my rasters to *.tif files for a variety of reason, so not in a gdb.&lt;/P&gt;&lt;P&gt;I would therefore, specify a complete path to a folder.&lt;/P&gt;&lt;P&gt;I don't know what happens when things go wrong and rasters are directed to a gdb.&lt;/P&gt;&lt;P&gt;On the upside, I can use my tif files in other applications... if I need a raster equivalent in a gdb, I can 'copy raster' it in without the file extension.&lt;/P&gt;&lt;P&gt;Just make sure you don't send rasters to a folder without a file extension, unless you want esri grids (which aren't the same as rasters in a gdb if memory serves)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jan 2019 04:21:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/running-cell-stat-from-copied-python-command/m-p/529197#M23280</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2019-01-16T04:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: Running Cell Stat from copied Python command produces error</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/running-cell-stat-from-copied-python-command/m-p/529198#M23281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Both arcpy.management.Copy(... parameters..) and arcpy.Copy_management(... parameters ...) are equally valid and interchangeable for all tools.&amp;nbsp;&lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&amp;nbsp;More generic is:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;arcpy.toolboxalias.toolname(parameters) or&lt;/P&gt;&lt;P&gt;arcpy.toolname_toolboxalias(parameters)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jan 2019 18:17:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/running-cell-stat-from-copied-python-command/m-p/529198#M23281</guid>
      <dc:creator>NobbirAhmed</dc:creator>
      <dc:date>2019-01-16T18:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: Running Cell Stat from copied Python command produces error</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/running-cell-stat-from-copied-python-command/m-p/529199#M23282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As Nobbir said, both formats are supported&amp;nbsp;&lt;A class="link-titled" href="http://pro.arcgis.com/en/pro-app/arcpy/geoprocessing_and_python/using-tools-in-python.htm#ESRI_SECTION1_9C29CCC8373B4623BF5FD1F31EFEDBF2" title="http://pro.arcgis.com/en/pro-app/arcpy/geoprocessing_and_python/using-tools-in-python.htm#ESRI_SECTION1_9C29CCC8373B4623BF5FD1F31EFEDBF2"&gt;Using tools in Python—Geoprocessing and Python | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We include both syntax options to support different preferences for running tools - some people prefer to think of every toolbox as a Python module, which is a more Pythonic way of executing functions - arcpy.toolbox.tool(). However we wanted to support arcpy.tool_toolbox() as well since this is the legacy syntax from the old arcgisscripting, and some people prefer to have this flat list where you do not need to know the toolbox a tool is in to access it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jan 2019 18:23:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/running-cell-stat-from-copied-python-command/m-p/529199#M23282</guid>
      <dc:creator>DrewFlater</dc:creator>
      <dc:date>2019-01-16T18:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: Running Cell Stat from copied Python command produces error</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/running-cell-stat-from-copied-python-command/m-p/529200#M23283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There seem to be a few of these. It's been an issue for a while - with ArcMap 10.3 the function to convert a model to a python script was only useful for populating the tool names, otherwise it needed to be rewritten.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, similar to Gabriel's issue, Intersect has a similar problem. "Copy Python Command" returns this:&lt;/P&gt;&lt;PRE&gt;arcpy.analysis.Intersect(r"BETA_AAFC_BUP_LU2010_Poly #;V_PopCtrs_2016_Buf5k_seldis_ #", r"BETA_AAFC_BUP_LU2010_Buff", "ALL", None, "INPUT")&lt;/PRE&gt;&lt;P&gt;When what it needs is this:&lt;/P&gt;&lt;PRE&gt;arcpy.analysis.Intersect(["BETA_AAFC_BUP_LU2010_Poly", "V_PopCtrs_2016_Buf5k_seldis_"], r"BETA_AAFC_BUP_LU2010_Buff", "ALL", None, "INPUT")&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the record, this is ArcGIS Pro V2.1.1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 May 2019 13:48:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/running-cell-stat-from-copied-python-command/m-p/529200#M23283</guid>
      <dc:creator>MatthewNoteboom1</dc:creator>
      <dc:date>2019-05-14T13:48:22Z</dc:date>
    </item>
  </channel>
</rss>

