/

16-to-8 Bit Conversion

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


Introduction

For more information, please read the block description.

Block type: PROCESSING

The 16-to-8 Bit Conversion block enables using partner processing blocks that require 8 bit imagery with 16 bit imagery from Sentinel-2 L2A. The block takes 16bit GeoTIFF images as input and applies a conversion factor to output 8bit GeoTIFF images.

Conversion Factor

The conversion makes use of the the formula below:

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

Example parameters

Example parameters using the data block Sentinel-2 L2A (SAFE) and the processing block s2-superresolution:

{
    "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": {}
}

Output format

Output and input format are both GeoTIFF. All metadata elements provided by the input dataset as properties are propagated to the output files.

Capabilities

Input

Output

To know more please check the block capabilities specifications.