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

# Interface DecoderOptions

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

interface DecoderOptions {  
    [channel](#channel): [UsedRgbChannel](https://docs.maptiler.com/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.maptiler.com/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.)
