<?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: Error saving raster in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/error-saving-raster/m-p/705995#M54651</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having the same problem when writing GeoTiff files.&amp;nbsp; The files can be saved when I am running in debug mode, but not when&amp;nbsp;running the code outside of debug.&amp;nbsp; I can also save the intermediate file by displaying first in ArcDesktop 10.5 and then exporting to a file.&amp;nbsp; I am calculating the difference between two input (geotiff) Rasters, the results are in type "Double."&amp;nbsp; I have checked to make sure there&amp;nbsp;is not a file of the same name already in existence.&amp;nbsp; I have also tested whether or not using a different geodatabase path makes a difference, it does not.&amp;nbsp; I have check to see if I could just save it to a folder, I cannot.&amp;nbsp; The code is as follows (current_datestr example: 201909101900):&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;    output_file &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"T2min_{}"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;format&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;current_datestr&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
    output_file &lt;SPAN class="operator 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;output_workspace&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; output_file&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
    output_file &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"{}.tif"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;format&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;output_file&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

    &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Exists&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;output_file&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;Delete_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;output_file&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

    current_raster &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; Raster&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;current_raster&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
    previous_raster &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; Raster&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;previous_raster&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

    &lt;SPAN class="comment token"&gt;# set noData appropriately before subtraction:&lt;/SPAN&gt;
    arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;SetRasterProperties_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;current_raster&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; nodata&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"1 -3"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
    accum &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; current_raster &lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt; previous_raster
    output_con &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;sa&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Con&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;accum &lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; accum&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

    output_con&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;save&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;output_file&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;/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;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;Joleen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 05:40:10 GMT</pubDate>
    <dc:creator>JoleenFeltz</dc:creator>
    <dc:date>2021-12-12T05:40:10Z</dc:date>
    <item>
      <title>Error saving raster</title>
      <link>https://community.esri.com/t5/python-questions/error-saving-raster/m-p/705993#M54649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have spent to much time in trying to solve a &amp;lt;raster&amp;gt;.save(filename) problem, and getting quite desperate.&amp;nbsp; Any help is highly apreciated!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The code is like this&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;....&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;outM = Ln(meanAggregate)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;outM.save("c:/temp/rastertest.gdb/xx")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I get the error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ERROR 010240: Could not save raster dataset to c:\temp\rastertest.gdb\xx with output format FGDBR.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The strange thing is that if I do debugging in PyCharm and have a breakpoint on the saveline, it saves without any problem when I step trough the code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If I remove the Ln function and just do a&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;....&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;outM = meanAggregate &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;outM.save("c:/temp/rastertest.gdb/xx")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; it saves fine also (also when not debugging).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a lot of other rasters in the same python script that saves fine without any problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is really a showstopper and I am getting quite desperate.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-helge&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Dec 2013 13:36:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-saving-raster/m-p/705993#M54649</guid>
      <dc:creator>helgesmebye</dc:creator>
      <dc:date>2013-12-05T13:36:00Z</dc:date>
    </item>
    <item>
      <title>Re: Error saving raster</title>
      <link>https://community.esri.com/t5/python-questions/error-saving-raster/m-p/705994#M54650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Try saving the output to another location, or even another drive to see if the same behavior persists. I've seen something like this before, and it turned out to be a permissions issue, though it was with a profile directory, and not C:/temp. If it works in another GDB in a different location, then it's worth seeing if we can create a reproducible issue. Here's the more detailed description of the error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Description&lt;BR /&gt;The output raster dataset could not be created in the specified format. There may already exist an output raster with the same name and format. Certain raster formats have limitations on the range of values that are supported. For example, the GIF format only supports a value range of 0 to 255, which would be a problem if the output raster would have a range of -10 to 365.&lt;BR /&gt;&lt;BR /&gt;Solution&lt;BR /&gt;Check that a raster with the same name and format does not already exist in the output location. Also, check the Help for the technical specifications of raster dataset formats to make sure that the expected range of values in the output is compatible with the specified format.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, I'd try saving to a different location, and failing that, try writing the output out to another driver -- like a GeoTIFF file. If that works, you should be able to then copy the raster into the FGDB.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Dec 2013 19:35:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-saving-raster/m-p/705994#M54650</guid>
      <dc:creator>ShaunWalbridge</dc:creator>
      <dc:date>2013-12-05T19:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: Error saving raster</title>
      <link>https://community.esri.com/t5/python-questions/error-saving-raster/m-p/705995#M54651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having the same problem when writing GeoTiff files.&amp;nbsp; The files can be saved when I am running in debug mode, but not when&amp;nbsp;running the code outside of debug.&amp;nbsp; I can also save the intermediate file by displaying first in ArcDesktop 10.5 and then exporting to a file.&amp;nbsp; I am calculating the difference between two input (geotiff) Rasters, the results are in type "Double."&amp;nbsp; I have checked to make sure there&amp;nbsp;is not a file of the same name already in existence.&amp;nbsp; I have also tested whether or not using a different geodatabase path makes a difference, it does not.&amp;nbsp; I have check to see if I could just save it to a folder, I cannot.&amp;nbsp; The code is as follows (current_datestr example: 201909101900):&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;    output_file &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"T2min_{}"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;format&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;current_datestr&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
    output_file &lt;SPAN class="operator 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;output_workspace&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; output_file&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
    output_file &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"{}.tif"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;format&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;output_file&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

    &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Exists&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;output_file&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;Delete_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;output_file&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

    current_raster &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; Raster&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;current_raster&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
    previous_raster &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; Raster&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;previous_raster&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

    &lt;SPAN class="comment token"&gt;# set noData appropriately before subtraction:&lt;/SPAN&gt;
    arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;SetRasterProperties_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;current_raster&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; nodata&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"1 -3"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
    accum &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; current_raster &lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt; previous_raster
    output_con &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;sa&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Con&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;accum &lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; accum&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

    output_con&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;save&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;output_file&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;/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;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;Joleen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 05:40:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-saving-raster/m-p/705995#M54651</guid>
      <dc:creator>JoleenFeltz</dc:creator>
      <dc:date>2021-12-12T05:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: Error saving raster</title>
      <link>https://community.esri.com/t5/python-questions/error-saving-raster/m-p/705996#M54652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the problem was that I set the nodata value for the current_raster, but forgot to set it for the previous_raster.&amp;nbsp; In addition, I should have calculated accumulation amounts by setting Null values to zero before subtracting.&amp;nbsp;&amp;nbsp;&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;from&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;sa &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;

current_raster &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; Raster&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;current_raster_name&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
previous_raster &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; Raster&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;previous_raster_name&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

current &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; SetNull&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;current_raster&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; current_raster&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"VALUE &amp;lt; 0"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
previous &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; SetNull&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;previous_raster&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; previous_raster&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"VALUE &amp;lt; 0"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

current_raster &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; Con&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;IsNull&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;current&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; current&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
previous_raster &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; Con&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;IsNull&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;previous&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; previous&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

accum &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; current_raster &lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt; previous_raster
out_con &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; Con&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;accum &lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; accum&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

out_con&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;save&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;output_file&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;/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>Sun, 12 Dec 2021 05:40:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-saving-raster/m-p/705996#M54652</guid>
      <dc:creator>JoleenFeltz</dc:creator>
      <dc:date>2021-12-12T05:40:13Z</dc:date>
    </item>
  </channel>
</rss>

