16-to-8 Bit Conversion

Converts 16 bit imagery from Sentinel-2 into 8 bit imagery.


Analytics platform discontinued after January 31, 2024

The current analytics platform will be discontinued after January 31, 2024, and will be replaced by new advanced processing functionalities. This change will affect projects, workflows, jobs, data blocks, processing blocks, and custom blocks. For more information, see the blog post.

Description

A processing block that enables using partner processing blocks that require 8 bit imagery with 16 bit imagery from Sentinel-2 L2A.

See this block on the marketplace.

Compatibility

Data blocks

Catalog collections

How it works

This block has no configurable JSON parameters.

The block takes 16 bit GeoTIFF images as input and applies a conversion factor to output 8 bit GeoTIFF images. The conversion uses the formula below:

result=val_12bit2812121result = val{\_}12bit \frac{2^8 - 1}{2^{12} - 1}

Example

A workflow with the following blocks:

{
  "aws-s2-l2a:1": {
    "ids": null,
    "bbox": [13.338221, 52.503106, 13.369208, 52.522625],
    "time": "2018-12-01T00:00:00+00:00/2021-12-31T23:59:59+00:00",
    "limit": 1,
    "time_series": null,
    "max_cloud_cover": 100
  },
  "s2-superresolution:1": {
    "bbox": [13.338221, 52.503106, 13.369208, 52.522625],
    "contains": null,
    "intersects": null,
    "clip_to_aoi": true,
    "copy_original_bands": true
  },
  "up42-16to8bit-conversion:1": {}
}

Capabilities

Input

Output

To know more please check the block capabilities specifications.