ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Core.Data.Raster Namespace / RasterDataset Class / CreateRaster Method
A set of band indices to use to create the Raster. For example, [0,1,2].

In This Topic
    CreateRaster Method
    In This Topic
    Creates a Raster that has the same properties and the given list of bands from this raster dataset. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    Public Function CreateRaster( _
       ByVal bandIDs As IEnumerable(Of Integer) _
    ) As Raster
    public Raster CreateRaster( 
       IEnumerable<int> bandIDs
    )

    Parameters

    bandIDs
    A set of band indices to use to create the Raster. For example, [0,1,2].

    Return Value

    The Raster created from this raster dataset.
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also