Band Selection from Raster Dataset

04-11-2022 01:23 AM
Labels (1)
New Contributor

Hi everyone

I have a stacked raster from Landsat multispectral bands. I need to know how can I select a specific band from the stack layer in the raster calculator ArcGIS pro. Because the raster calculator just shows the name of the layer, not bands. Could anyone help me please? 

0 Kudos
2 Replies
Regular Contributor

You could use the Extract Bands raster function to extract the band of interest and then use this as input into raster calculator. Do see

Occasional Contributor II

description = arcpy.da.Describe(raster)
for band in description ['children']:
    if (band['name'] == 'Band_x'):
        band['name'] (calculate)

0 Kudos