> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wherobots.com/llms.txt
> Use this file to discover all available pages before exploring further.

# RS_NumBands

Returns the number of the bands in the raster.

## Signatures

```sql theme={"system"}
RS_NumBands (raster: Raster)
```

## Parameters

<ParamField body="raster" type="Raster" required>
  The input raster.
</ParamField>

## Return type

<ResponseField type="Integer">
  An integer value.
</ResponseField>

## Example

```sql theme={"system"}
SELECT RS_NumBands(raster) FROM raster_table
```

```
4
```
