True Color, Analysis Ready Planetscope

//VERSION=3

function setup() {
    return {
        input: ["blue", "green", "red", "dataMask"],
        output: {
            bands: 4
        }
    };
}

let factor = 1/2000;
function evaluatePixel(sample) {
    return [
        factor * sample.red,
        factor * sample.green,
        factor * sample.blue,
        sample.dataMask
    ];
}

Evaluate and Visualize

The example data is using Planet Sandox data. This data is restricted to Sentinel Hub users with active paid plans. If you are already a Planet Customer, see here on how to get access.

General description

The true color product maps Analysis-Ready PlanetScope band values red, green, and blue which roughly correspond to red, green, and blue part of the spectrum, respectively, to R, G, and B components.

Description of representative image

A true color visualization of Des Moines, United States (April 2023)

True Color of Des Moines