Crop Biomass

//VERSION=3
function setup() {
  return {
    input: ["CB", "dataMask"],
    output: { bands: 4, sampleTYPE: "AUTO" },
  };
}


const bp_ramp = [
  [0, 0xfff7ea],
  [0.100, 0xf3e3c8],
  [0.200, 0xdad0a4],
  [0.300, 0xbdc082],
  [0.400, 0x99b160],
  [0.500, 0x6da242],
  [0.600, 0x2c952e],
  [0.7000, 0x008729],
  [0.800, 0x007932],
  [0.9000, 0x006640],
  [1.000, 0x005444],
];

const visualizer = new ColorRampVisualizer(bp_ramp);

let factor = 1 / 1000;
function evaluatePixel(sample) {
  let val = sample.CB * factor;
  let imgVals = visualizer.process(val);
  return [...imgVals, sample.dataMask]
}
//VERSION=3
// To set custom max and min values, set
// defaultVis to false and choose your max and
// min values. The color map will then be scaled
// to those max and min values
function setup() {
    return {
        input: ["CB", "dataMask"],
        output: [
            { id: "default", bands: 4 },
            { id: "index", bands: 1, sampleType: "FLOAT32" },
            { id: "eobrowserStats", bands: 1, sampleType: "FLOAT32" },
            { id: "dataMask", bands: 1 },
        ],
    };
}

const bp_ramp = [
    [0, 0xfff7ea],
    [0.1, 0xf3e3c8],
    [0.2, 0xdad0a4],
    [0.3, 0xbdc082],
    [0.4, 0x99b160],
    [0.5, 0x6da242],
    [0.6, 0x2c952e],
    [0.7, 0x008729],
    [0.8, 0x007932],
    [0.9, 0x006640],
    [1.0, 0x005444],
];

const visualizer = new ColorRampVisualizer(bp_ramp);

let factor = 1 / 1000;
function evaluatePixel(sample) {
    let val = sample.CB * factor;
    let imgVals = visualizer.process(val);
    return {
        default: [...imgVals, sample.dataMask],
        index: [val],
        eobrowserStats: [val],
        dataMask: [sample.dataMask],
    };
}
//VERSION=3
function setup() {
  return {
    input: ["CB"],
    output: { bands: 1, sampleType: 'FLOAT32' }
  };
}

let factor = 1 / 1000;
function evaluatePixel(sample) {
  return [sample.CH * factor]
};

Evaluate and visualize

As Crop Biomass is commercial data, brought into Sentinel Hub as Bring Your Own Data, direct EO Browser links are not possible due to the personalized data credentials.

General description

Biomass Proxy is a fusion of microwave and optical satellite imagery, using the advantages of each to accurately estimate relative above-ground crop biomass regardless of cloud cover and at a high spatial resolution (10 m x 10 m).

It integrates microwave data from the European Space Agency (ESA) Sentinel-1 satellites and optical images from its Sentinel-2 satellites.

Planetary Variables then fuses the output from these combined data sources in an algorithm designed to provide a reliable measurement of crop biomass over agricultural areas under all circumstances.

This is a relative measure of biomass, so each pixel value has a value of 0 (low biomass) to 1 (high biomass).

It should be computed over agricultural fields.

Description of representative images

Crop Biomass of agriculture fields in Uruguay.

Various fields over Uruguay