<?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: renameBands not working in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/renamebands-not-working/m-p/1620690#M96313</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/16138"&gt;@WadeWall&lt;/a&gt;&amp;nbsp;. this Knowledge Article shows various ways to do this. The ArcPy method described looks different to yours at the &lt;STRONG&gt;bandnames=&lt;/STRONG&gt; step. Does that code works any better for you ?&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.esri.com/en-us/knowledge-base/renaming-individual-raster-bands-within-arcgis-pro-000027398" target="_blank" rel="noopener"&gt;https://support.esri.com/en-us/knowledge-base/renaming-individual-raster-bands-within-arcgis-pro-000027398&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt;import arcpy
im = r"C:\Directory\ArcGIS\Projects\Multiband\Multi_Band.tif"
rast = arcpy.Raster(im)
bandnames = [arcpy.Raster(b) for b in arcpy.ListRasters()]&amp;nbsp;

rast.renameBand('The_Band', 'Band_11')
rast.renameBand('The_Band2', 'Band_22')
rast.renameBand('The_Band3', 'Band_33')
rast.renameBand('The_Band4', 'Band_44')

print(rast.bandNames)&lt;/PRE&gt;</description>
    <pubDate>Wed, 04 Jun 2025 08:01:04 GMT</pubDate>
    <dc:creator>ChrisUnderwood</dc:creator>
    <dc:date>2025-06-04T08:01:04Z</dc:date>
    <item>
      <title>renameBands not working</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/renamebands-not-working/m-p/1620580#M96302</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am trying to rename bands using arcpy.renameBands(), but am having trouble doing so. I have code that used to work, but it appears that renameBands() isn't actually working for me anymore. I am using ArcGIS Pro 3.2.1.&lt;/P&gt;&lt;P&gt;Example code:&lt;/P&gt;&lt;P&gt;rast_Name = r"Path/to/raster.tif"&lt;BR /&gt;rast = arcpy.Raster(rast_Name)&lt;BR /&gt;rast.bandNames&lt;BR /&gt;rast.renameBand("Band_1","NewName")&lt;/P&gt;&lt;P&gt;Thanks for any information.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jun 2025 20:13:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/renamebands-not-working/m-p/1620580#M96302</guid>
      <dc:creator>WadeWall</dc:creator>
      <dc:date>2025-06-03T20:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: renameBands not working</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/renamebands-not-working/m-p/1620690#M96313</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/16138"&gt;@WadeWall&lt;/a&gt;&amp;nbsp;. this Knowledge Article shows various ways to do this. The ArcPy method described looks different to yours at the &lt;STRONG&gt;bandnames=&lt;/STRONG&gt; step. Does that code works any better for you ?&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.esri.com/en-us/knowledge-base/renaming-individual-raster-bands-within-arcgis-pro-000027398" target="_blank" rel="noopener"&gt;https://support.esri.com/en-us/knowledge-base/renaming-individual-raster-bands-within-arcgis-pro-000027398&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt;import arcpy
im = r"C:\Directory\ArcGIS\Projects\Multiband\Multi_Band.tif"
rast = arcpy.Raster(im)
bandnames = [arcpy.Raster(b) for b in arcpy.ListRasters()]&amp;nbsp;

rast.renameBand('The_Band', 'Band_11')
rast.renameBand('The_Band2', 'Band_22')
rast.renameBand('The_Band3', 'Band_33')
rast.renameBand('The_Band4', 'Band_44')

print(rast.bandNames)&lt;/PRE&gt;</description>
      <pubDate>Wed, 04 Jun 2025 08:01:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/renamebands-not-working/m-p/1620690#M96313</guid>
      <dc:creator>ChrisUnderwood</dc:creator>
      <dc:date>2025-06-04T08:01:04Z</dc:date>
    </item>
  </channel>
</rss>

