Band Selection from Raster Dataset

1076
2
04-11-2022 01:23 AM
Labels (1)
AmirHosseinAhrari
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
MervynLotter
Occasional Contributor III

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 https://pro.arcgis.com/en/pro-app/2.8/help/analysis/raster-functions/extract-bands-function.htm

AndyAnderson
Occasional Contributor II

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

0 Kudos