RGB Composite

The RGB composite operator computes pixel-wise rgba values on three raster sources, referred to as red, green, and blue. They fill the red, green, and blue parts of the output, which are U32 pixels, respectively. Internally, the four bytes of the (unitless) U32 are filled with red, green, blue and alpha information. The special rgba colorizer symbology treats the values "as is" and maps them to the RGB output.

Parameters

ParameterTypeDescriptionExample Value
redMinnumberMinimum value for red source
0
redMaxnumberMinimum value for red source
255
redScalenumber (optional)Scaling factor for the red source in [0, 1]
1
greenMaxnumberMinimum value for green source
255
greenMinnumberMinimum value for green source
0
greenScalenumber (optional)Scaling factor for the green source in [0, 1]
0.5
blueMinnumberMinimum value for blue source
0
blueMaxnumberMinimum value for blue source
255
blueScalenumber (optional)Scaling factor for the blue source in [0, 1]
0.75

Inputs

The RGB composite operator expects three raster inputs.

ParameterType
redSingleRasterSource
greenSingleRasterSource
blueSingleRasterSource

Errors

The parsing of the parameters can fail if, e.g., scale values are not in the range [0, 1].

Example JSON

{
  "type": "Rgb",
  "params": {
    "redMin": 0,
    "redMax": 2000,
    "redScale": 1,
    "greenMin": 0,
    "greenMax": 2000,
    "greenScale": 1,
    "blueMin": 0,
    "blueMax": 2000,
    "blueScale": 1
  },
  "sources": {
    "red": {
      "type": "GdalSource",
      "params": {
        "data": "sentinel2-b2"
      }
    },
    "green": {
      "type": "GdalSource",
      "params": {
        "data": "sentinel2-b3"
      }
    },
    "blue": {
      "type": "GdalSource",
      "params": {
        "data": "sentinel2-b4"
      }
    }
  }
}