<?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: How can I access the bands of a raster layer? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/how-can-i-access-the-bands-of-a-raster-layer/m-p/23153#M1781</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share your code and if possible a part of your data? Possibly it is not the "Band_#" part that is causing the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What if you&amp;nbsp;navigate to your data using the catalog window and copy the path of a selected band, does that correspond to the path you are using in your code?&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/369650_pastedImage_1.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(not a good a example, but it explains what I mean)&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 02 Sep 2017 14:35:18 GMT</pubDate>
    <dc:creator>XanderBakker</dc:creator>
    <dc:date>2017-09-02T14:35:18Z</dc:date>
    <item>
      <title>How can I access the bands of a raster layer?</title>
      <link>https://community.esri.com/t5/python-questions/how-can-i-access-the-bands-of-a-raster-layer/m-p/23151#M1779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've used MakeNetcdfRasterLayer to create a raster layer. That raster layer has 365 individual bands.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I need to apply zonal statistics to each of those bands. The normal way I would do this is to pass rastername/Band_1 to the zonal statistics function, then rastername/Band_2 and so forth. However when I do that here it says that the specified input doesn't exist. Am I going about this the wrong way?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Sep 2017 18:44:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-can-i-access-the-bands-of-a-raster-layer/m-p/23151#M1779</guid>
      <dc:creator>JustinAdamson</dc:creator>
      <dc:date>2017-09-01T18:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: How can I access the bands of a raster layer?</title>
      <link>https://community.esri.com/t5/python-questions/how-can-i-access-the-bands-of-a-raster-layer/m-p/23152#M1780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;does it use band names or index numbers?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Sep 2017 02:23:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-can-i-access-the-bands-of-a-raster-layer/m-p/23152#M1780</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-09-02T02:23:22Z</dc:date>
    </item>
    <item>
      <title>Re: How can I access the bands of a raster layer?</title>
      <link>https://community.esri.com/t5/python-questions/how-can-i-access-the-bands-of-a-raster-layer/m-p/23153#M1781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share your code and if possible a part of your data? Possibly it is not the "Band_#" part that is causing the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What if you&amp;nbsp;navigate to your data using the catalog window and copy the path of a selected band, does that correspond to the path you are using in your code?&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/369650_pastedImage_1.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(not a good a example, but it explains what I mean)&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Sep 2017 14:35:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-can-i-access-the-bands-of-a-raster-layer/m-p/23153#M1781</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2017-09-02T14:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: How can I access the bands of a raster layer?</title>
      <link>https://community.esri.com/t5/python-questions/how-can-i-access-the-bands-of-a-raster-layer/m-p/23154#M1782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Justin,&lt;/P&gt;&lt;P&gt;I've come across situations when the names of bands were Layer_1, Layer_2, etc., it does not always have to be Band_1, Band_2, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps try to list the individual bands programmatically as shown here:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://gis.stackexchange.com/questions/150067/access-individual-bands-and-use-them-in-map-algebra" title="https://gis.stackexchange.com/questions/150067/access-individual-bands-and-use-them-in-map-algebra"&gt;python - Access individual bands and use them in map algebra - Geographic Information Systems Stack Exchange&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The main idea is to set&amp;nbsp;your main raster dataset as a workspace and then use arcpy.ListRasters() function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Filip.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Sep 2017 19:20:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-can-i-access-the-bands-of-a-raster-layer/m-p/23154#M1782</guid>
      <dc:creator>FilipKrál</dc:creator>
      <dc:date>2017-09-05T19:20:25Z</dc:date>
    </item>
  </channel>
</rss>

