<?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: Mosaictonewraster after aggregating rasters  in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/mosaictonewraster-after-aggregating-rasters/m-p/514731#M40401</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;cell size should be a float and I wouldn't leave it unspecified even though it is optiona.&lt;/P&gt;&lt;P&gt;the number bands an integer (long), you have it as text&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/mosaic-to-new-raster.htm" title="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/mosaic-to-new-raster.htm"&gt;Mosaic To New Raster—Data Management toolbox | Documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 15 Mar 2020 20:47:50 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2020-03-15T20:47:50Z</dc:date>
    <item>
      <title>Mosaictonewraster after aggregating rasters</title>
      <link>https://community.esri.com/t5/python-questions/mosaictonewraster-after-aggregating-rasters/m-p/514730#M40400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to aggregate three rasters and then use mosaictonewraster to create a unified raster. I have run this using point and click in Arcgis 10.7.1&amp;nbsp; but when I run it in python it is unable to locate the aggregated rasters. Here is the core code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;outaggreg_t2 = Aggregate(file_tile2, cellFactor, "SUM", "TRUNCATE", "NODATA")
 
 outaggreg_t3 = Aggregate(file_tile3, cellFactor, "SUM", "TRUNCATE", "NODATA")
 outaggreg_t6 = Aggregate(file_tile6, cellFactor, "SUM", "TRUNCATE", "NODATA")
 #Create New Raster
 newtile="t2t3t6"+"_"+filename1[0:6]+"_"+filename2+".tif"
 print newtile
 arcpy.MosaicToNewRaster_management("outaggreg_t2;outaggreg_t3;outaggreg_t6","F:/VIIRS unzipped/scratch", newtile, "","32_BIT_FLOAT", "", "1", "LAST","FIRST")&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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get the error message&amp;nbsp;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;ExecuteError: ERROR 000999: Failed to get raster. Please check if the input parameters is correct.
Failed to execute (MosaicToNewRaster)&lt;SPAN class="line-numbers-rows"&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;I know the easy solution to this is to save each of the outaggreg* files as explicitly and then call the latter files. Is that necessary,&amp;nbsp; or is there something else that I am doing incorrectly?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 22:29:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/mosaictonewraster-after-aggregating-rasters/m-p/514730#M40400</guid>
      <dc:creator>AreendamChanda</dc:creator>
      <dc:date>2021-12-11T22:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: Mosaictonewraster after aggregating rasters</title>
      <link>https://community.esri.com/t5/python-questions/mosaictonewraster-after-aggregating-rasters/m-p/514731#M40401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;cell size should be a float and I wouldn't leave it unspecified even though it is optiona.&lt;/P&gt;&lt;P&gt;the number bands an integer (long), you have it as text&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/mosaic-to-new-raster.htm" title="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/mosaic-to-new-raster.htm"&gt;Mosaic To New Raster—Data Management toolbox | Documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Mar 2020 20:47:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/mosaictonewraster-after-aggregating-rasters/m-p/514731#M40401</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2020-03-15T20:47:50Z</dc:date>
    </item>
  </channel>
</rss>

