<?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: Saving results from Int used on a raster (ERROR 010240) in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/saving-results-from-int-used-on-a-raster-error/m-p/1250247#M64500</link>
    <description>&lt;P&gt;Hi, did you figure this problem out?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using arcpy.Sa.Plus function on two rasters and I have exactly the same problem with saving the raster.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;</description>
    <pubDate>Sun, 22 Jan 2023 13:54:33 GMT</pubDate>
    <dc:creator>MartinPorteš</dc:creator>
    <dc:date>2023-01-22T13:54:33Z</dc:date>
    <item>
      <title>Saving results from Int used on a raster (ERROR 010240)</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/saving-results-from-int-used-on-a-raster-error/m-p/1106731#M46605</link>
      <description>&lt;P&gt;I'm trying convert a raster from float to integers (see code and resulting error below). I've tried making env.workspace and env.scratchWorkspace the same/making them different/changing what geodatabases I'm saving to, and outputting the raster as different types of raster datasets (FGDBR, GRID, TIFF). The path works when running with other functions and I've verified that the float raster dataset works normally. It also works without any errors when running Int as a tool instead of in python.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;import&lt;/SPAN&gt;&lt;SPAN&gt; arcpy&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;from&lt;/SPAN&gt;&lt;SPAN&gt; arcpy &lt;/SPAN&gt;&lt;SPAN class=""&gt;import&lt;/SPAN&gt;&lt;SPAN&gt; env&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;from&lt;/SPAN&gt;&lt;SPAN&gt; arcpy.sa &lt;/SPAN&gt;&lt;SPAN class=""&gt;import&lt;/SPAN&gt;&lt;SPAN&gt; *&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;env.workspace = env.scratchWorkspace= path+"\\OnlineVisuals.gdb"&lt;/P&gt;&lt;P&gt;in_raster=Raster(path+"\\Grids.gdb\\"+x)&lt;BR /&gt;out_raster=Int(in_raster)&lt;BR /&gt;out_raster.save(path+"\\OnlineVisuals.gdb\\"+x+"I")&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;RuntimeError&lt;/SPAN&gt;: ERROR 010240: Could not save raster dataset to r3241300I with output format FGDBR.&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I think the problem may be that when it runs Int on the raster it's creating a .afr file in a temp folder instead of paying attention to the set workspace (printing out_raster shows it's creating a file in the temp folder below), but I can't figure out how to change that? Thanks for any ideas/insight!&lt;/P&gt;&lt;P&gt;\Temp\ArcGISProTemp38044\xa29dca8c_ce7c_4863_99bf_3a4d30cb1f75y0.afr&lt;/P&gt;</description>
      <pubDate>Tue, 12 Oct 2021 15:52:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/saving-results-from-int-used-on-a-raster-error/m-p/1106731#M46605</guid>
      <dc:creator>AnnaPearson</dc:creator>
      <dc:date>2021-10-12T15:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: Saving results from Int used on a raster (ERROR 010240)</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/saving-results-from-int-used-on-a-raster-error/m-p/1250247#M64500</link>
      <description>&lt;P&gt;Hi, did you figure this problem out?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using arcpy.Sa.Plus function on two rasters and I have exactly the same problem with saving the raster.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;</description>
      <pubDate>Sun, 22 Jan 2023 13:54:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/saving-results-from-int-used-on-a-raster-error/m-p/1250247#M64500</guid>
      <dc:creator>MartinPorteš</dc:creator>
      <dc:date>2023-01-22T13:54:33Z</dc:date>
    </item>
  </channel>
</rss>

