<?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: AttributeError: 'Raster' object attribute 'save' is read-only in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/attributeerror-raster-object-attribute-save-is/m-p/544008#M42405</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What about:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;outCon.save(output)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Jul 2011 19:53:34 GMT</pubDate>
    <dc:creator>ChrisBater</dc:creator>
    <dc:date>2011-07-08T19:53:34Z</dc:date>
    <item>
      <title>AttributeError: 'Raster' object attribute 'save' is read-only</title>
      <link>https://community.esri.com/t5/python-questions/attributeerror-raster-object-attribute-save-is/m-p/544007#M42404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm having a bit of trouble with some batch processing; specifically with the .save portion of the loop in the code below.&amp;nbsp; Everytime I try to save any raster calculation I receive the following error: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;AttributeError: 'Raster' object attribute 'save' is read-only&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm hoping there is a work-around or an error with my code; any suggestions would be greatly appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;rasts = arcpy.ListRasters()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;for rast in rasts:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; output = outdir + "/" + str(rast) + "_stage"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; outCon = Con(Raster(rast),1)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; outCon.save = output&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2011 16:17:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/attributeerror-raster-object-attribute-save-is/m-p/544007#M42404</guid>
      <dc:creator>marvinboyd</dc:creator>
      <dc:date>2011-07-08T16:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: AttributeError: 'Raster' object attribute 'save' is read-only</title>
      <link>https://community.esri.com/t5/python-questions/attributeerror-raster-object-attribute-save-is/m-p/544008#M42405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What about:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;outCon.save(output)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2011 19:53:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/attributeerror-raster-object-attribute-save-is/m-p/544008#M42405</guid>
      <dc:creator>ChrisBater</dc:creator>
      <dc:date>2011-07-08T19:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: AttributeError: 'Raster' object attribute 'save' is read-only</title>
      <link>https://community.esri.com/t5/python-questions/attributeerror-raster-object-attribute-save-is/m-p/544009#M42406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Chris,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you; it works now!&amp;nbsp; I'm glad this was operator error and not a more sinister permissions issue.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Jul 2011 11:39:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/attributeerror-raster-object-attribute-save-is/m-p/544009#M42406</guid>
      <dc:creator>marvinboyd</dc:creator>
      <dc:date>2011-07-09T11:39:33Z</dc:date>
    </item>
    <item>
      <title>Re: AttributeError: 'Raster' object attribute 'save' is read-only</title>
      <link>https://community.esri.com/t5/python-questions/attributeerror-raster-object-attribute-save-is/m-p/544010#M42407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, I'm receiving the same error&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've tried to move the output to various places but still same same issue of:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG&gt;outReclassify.save = (output)&lt;BR /&gt;AttributeError: 'Raster' object attribute 'save' is read-only&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;inRaster = "J:\develop\DEGURBA\python\dgurba.gdb\POPL_DENS_GR_1KM_2006_GEOSTAT"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;reclassField = "Value"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;remap = RemapRange ([[0, 300, "NODATA"],[300, 1000000, 1]] )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;output = "j:\\develop\\DEGURBA\\outreclass02"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;outReclassify = Reclassify(inRaster, reclassField, remap, "NODATA")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;outReclassify.save = (output)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2014 12:16:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/attributeerror-raster-object-attribute-save-is/m-p/544010#M42407</guid>
      <dc:creator>MichaelHarrop</dc:creator>
      <dc:date>2014-02-19T12:16:29Z</dc:date>
    </item>
  </channel>
</rss>

