Skip to main content Link Menu Expand (external link) Document Search Copy Copied

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
    ];
}

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