> ## 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_SetPixelType

Returns a modified raster with the desired pixel data type.

The `dataType` parameter accepts one of the following strings.

* "D" - 64 bits Double
* "F" - 32 bits Float
* "I" - 32 bits signed Integer
* "S" - 16 bits signed Short
* "US" - 16 bits unsigned Short
* "B" - 8 bits unsigned Byte

<Note>
  If the specified `dataType` is narrower than the original data type, the function will truncate the pixel values to fit the new data type range.
</Note>

## Signatures

```sql theme={"system"}
RS_SetPixelType(raster: Raster, dataType: String)
```

## Parameters

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

<ParamField body="dataType" type="String" required>
  The data type value.
</ParamField>

## Return type

<ResponseField type="Raster">
  The resulting raster.
</ResponseField>

## Example

```sql theme={"system"}
RS_SetPixelType(raster, "I")
```
