---
title: "DecoderOptions | Weather SDK | JavaScript maps SDK"
description: "Documentation for Weather JS"
---

> For AI agents: a documentation index is available at [/llms.txt](https://docs-qmgv.pages.dev/llms.txt). Markdown versions of all pages are available by appending .md to any URL.

# Interface DecoderOptions

Describes how to read the data value from the input files.

interface DecoderOptions {  
    [channel](#channel): [UsedRgbChannel](https://docs-qmgv.pages.dev/sdk-js/modules/weather/api-reference/types/UsedRgbChannel/);  
    [max](#max): number;  
    [min](#min): number;  
}

##### Index

### Properties

[channel](#channel) [max](#max) [min](#min)

## Properties

### channel[](#channel)

channel: [UsedRgbChannel](https://docs-qmgv.pages.dev/sdk-js/modules/weather/api-reference/types/UsedRgbChannel/)

Channel to be used to read the value from - `"r"`/`"g"`/`"b"`. If more letters are present (`"rg"`), each channel is decoded separately and then the vector length is calculated.

Irrelevant when decoding data for `VolumeLayer`.

### max[](#max)

max: number

Maximum value encoded in each channel.

### min[](#min)

min: number

Minimum value encoded in each channel. (Value of `0` in the raster = this value.)
