<?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: I need to Mean for  multiple rasters in a folder with their corresponding rasters in another folder in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/i-need-to-mean-for-multiple-rasters-in-a-folder/m-p/773332#M824</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sir could you trouble shoot my process,i attached the file and i have to&lt;/P&gt;&lt;P&gt;calculate mean for those corresponding data sets.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Nov 2019 06:58:33 GMT</pubDate>
    <dc:creator>ravitejaSETTIPALLI</dc:creator>
    <dc:date>2019-11-22T06:58:33Z</dc:date>
    <item>
      <title>I need to Mean for  multiple rasters in a folder with their corresponding rasters in another folder</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/i-need-to-mean-for-multiple-rasters-in-a-folder/m-p/773325#M817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am attempting to iterate through and Mean two sets of corresponding rasters(each set conatains 136 files), named 'AQUA' (e.g. 'MOD04_3K.A2019060.mosaic.061.2019318071023.pssgmc_000501390776.Optical_Depth_Land_And_Ocean-Optical_Depth_Land_And_Ocean.tif') and 'TERRA' (e.g.'MYD04_3K.A2019060.mosaic.061.2019318064730.pssgmc_000501390767.Optical_Depth_Land_And_Ocean-Optical_Depth_Land_And_Ocean.tif'),but iam facing this Runtime error &lt;BR /&gt;Runtime error &lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt; File "&amp;lt;string&amp;gt;", line 7, in &amp;lt;module&amp;gt;&lt;BR /&gt;RuntimeError: ERROR 000732: Input Raster: Dataset D:\FINAL\TERRA\MYD04_3K.A2019060.mosaic.061.2019318064730.pssgmc_000501390767.Optical_Depth_Land_And_Ocean-Optical_Depth_Land_And_Ocean.tif.tif does not exist or is not supported&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/353731"&gt;Lochlan Jones&lt;/A&gt;&amp;nbsp;‌@&lt;A _jive_internal="true" class="" data-userid="3116" data-username="Dan_Patterson" href="https://community.esri.com/people/Dan_Patterson" style="color: #3778c7; background-color: #ffffff; border: 0px; font-weight: 200; text-decoration: underline; font-size: 1.286rem;"&gt;Dan Patterson&lt;/A&gt;&lt;SPAN style="color: #a9a9a9; background-color: #ffffff; font-weight: 500;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Nov 2019 10:59:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/i-need-to-mean-for-multiple-rasters-in-a-folder/m-p/773325#M817</guid>
      <dc:creator>ravitejaSETTIPALLI</dc:creator>
      <dc:date>2019-11-21T10:59:55Z</dc:date>
    </item>
    <item>
      <title>Re: I need to Mean for  multiple rasters in a folder with their corresponding rasters in another folder</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/i-need-to-mean-for-multiple-rasters-in-a-folder/m-p/773326#M818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;could be the double *.tif.tif at the end of the filename&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Nov 2019 11:59:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/i-need-to-mean-for-multiple-rasters-in-a-folder/m-p/773326#M818</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2019-11-21T11:59:58Z</dc:date>
    </item>
    <item>
      <title>Re: I need to Mean for  multiple rasters in a folder with their corresponding rasters in another folder</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/i-need-to-mean-for-multiple-rasters-in-a-folder/m-p/773327#M819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="not working sir,please look into issue sir" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/474172_cropped.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Nov 2019 12:42:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/i-need-to-mean-for-multiple-rasters-in-a-folder/m-p/773327#M819</guid>
      <dc:creator>ravitejaSETTIPALLI</dc:creator>
      <dc:date>2019-11-21T12:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: I need to Mean for  multiple rasters in a folder with their corresponding rasters in another folder</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/i-need-to-mean-for-multiple-rasters-in-a-folder/m-p/773328#M820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/474182_AQUA.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Nov 2019 12:43:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/i-need-to-mean-for-multiple-rasters-in-a-folder/m-p/773328#M820</guid>
      <dc:creator>ravitejaSETTIPALLI</dc:creator>
      <dc:date>2019-11-21T12:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: I need to Mean for  multiple rasters in a folder with their corresponding rasters in another folder</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/i-need-to-mean-for-multiple-rasters-in-a-folder/m-p/773329#M821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/474183_TERRA.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Nov 2019 12:43:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/i-need-to-mean-for-multiple-rasters-in-a-folder/m-p/773329#M821</guid>
      <dc:creator>ravitejaSETTIPALLI</dc:creator>
      <dc:date>2019-11-21T12:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: I need to Mean for  multiple rasters in a folder with their corresponding rasters in another folder</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/i-need-to-mean-for-multiple-rasters-in-a-folder/m-p/773330#M822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raviteja,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does shortening the file names allow the code to work? Also, does removing the periods (".") in the file names help?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Lauren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Nov 2019 16:11:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/i-need-to-mean-for-multiple-rasters-in-a-folder/m-p/773330#M822</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2019-11-21T16:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: I need to Mean for  multiple rasters in a folder with their corresponding rasters in another folder</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/i-need-to-mean-for-multiple-rasters-in-a-folder/m-p/773331#M823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i tried as you said,but still facing same issue&lt;IMG alt="runtime error" class="jive-emoji image-1 jive-image j-img-original" src="/legacyfs/online/474371_error data.png" /&gt; :&lt;/P&gt;&lt;P&gt;Runtime error &lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt; File "&amp;lt;string&amp;gt;", line 9, in &amp;lt;module&amp;gt;&lt;BR /&gt;RuntimeError: ERROR 000732: Input Raster: Dataset D:\final 2\TERRA\MYD04_3K.A2019060_terra.tif does not exist or is not supported&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Nov 2019 06:07:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/i-need-to-mean-for-multiple-rasters-in-a-folder/m-p/773331#M823</guid>
      <dc:creator>ravitejaSETTIPALLI</dc:creator>
      <dc:date>2019-11-22T06:07:28Z</dc:date>
    </item>
    <item>
      <title>Re: I need to Mean for  multiple rasters in a folder with their corresponding rasters in another folder</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/i-need-to-mean-for-multiple-rasters-in-a-folder/m-p/773332#M824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sir could you trouble shoot my process,i attached the file and i have to&lt;/P&gt;&lt;P&gt;calculate mean for those corresponding data sets.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Nov 2019 06:58:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/i-need-to-mean-for-multiple-rasters-in-a-folder/m-p/773332#M824</guid>
      <dc:creator>ravitejaSETTIPALLI</dc:creator>
      <dc:date>2019-11-22T06:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: I need to Mean for  multiple rasters in a folder with their corresponding rasters in another folder</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/i-need-to-mean-for-multiple-rasters-in-a-folder/m-p/773333#M825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your file names and paths need some work since they will continue to generate errors unless you raw encode them or use forward slashes&lt;/P&gt;&lt;DIV&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;# ---- big fail
f = "D:\final 2\TERRA\Some.File.With.Periods.tif"
f
'D:\x0cinal 2\\TERRA\\Some.File.With.Periods.tif'  # ---- unicode fail


# ---- raw encoding with the little `r` works for sure
f = r"D:\final 2\TERRA\Some.File.With.Periods.tif"
f
'D:\\final 2\\TERRA\\Some.File.With.Periods.tif'

# ---- this works by chance because little f isn't the same as big F
f = "D:\Final 2\TERRA\Some.File.With.Periods.tif"
f
'D:\\Final 2\\TERRA\\Some.File.With.Periods.tif'&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;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 08:39:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/i-need-to-mean-for-multiple-rasters-in-a-folder/m-p/773333#M825</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2021-12-12T08:39:32Z</dc:date>
    </item>
  </channel>
</rss>

