The short answer

Since processing baseline 04.00 (January 2022), Sentinel-2 Level-2A pixel values carry an offset of +1000 that has to be removed before you divide by 10,000. Earth Search, the free STAC catalog of Sentinel-2 COGs on AWS run by Element 84, removes that offset from many of its files when it converts them. Its item metadata still tells you to subtract it.

We compared pixels from the sentinel-2-l2a collection on Earth Search with the same scenes on Microsoft Planetary Computer, which keeps ESA's original values. In December 2026 we found:

  • Every item we tested with earthsearch:boa_offset_applied: true had the offset already removed: Planetary Computer minus Earth Search was 1000 at every pixel.

  • Every item from baseline 04.00 onward still lists offset: -0.1 in raster:bands, whatever the flag says.

  • The flag false is not reliable. Of 15 items with the flag false that we could check, 9 had the offset already removed and 6 did not.

If you apply the listed offset to an item that already had it removed, every reflectance drops by 0.1. Dark pixels go negative, and NDVI can come out above 1.

Item on Earth Search

What we found

Reflectance

Baseline below 04.00 (before 25 January 2022)

No offset in the data, and raster:bands lists offset 0

DN × 0.0001

Baseline 04.00 or later, boa_offset_applied true

Offset already removed in all 9 items tested

DN × 0.0001

Baseline 04.00 or later, boa_offset_applied false

Mixed: removed in 9 items, still present in 6

Check the item first

Where the offset comes from

ESA introduced processing baseline 04.00 on 25 January 2022. With it, the dynamic range of Level-2A values was shifted by a band-dependent constant called BOA_ADD_OFFSET, so that very dark surfaces no longer get clipped at zero. ESA's announcement gives the conversion as:

L2A_BOA = (L2A_DN + BOA_ADD_OFFSET) / QUANTIFICATION_VALUE

For Sentinel-2 L2A the quantification value is 10,000 and the offset is -1000 in the products we used. A dark vegetated pixel with a red reflectance of 0.07 is therefore stored as 1700, not 700. Expressed as STAC scale and offset, that is scale: 0.0001 and offset: -0.1.

What Earth Search publishes

Earth Search serves Sentinel-2 L2A as Cloud Optimized GeoTIFFs. Its collection documentation says that, as part of the conversion to COGs, the offset has been applied to some of the items, and that if the offset of an asset is anything other than 0, it should be applied after the scale factor.

Each item has a property, earthsearch:boa_offset_applied, that is meant to say whether the offset was removed. Here is what a current item over West Java, Indonesia, shows (scene of 25 September 2026, tile 48MXT, baseline 05.13):

"earthsearch:boa_offset_applied": true,
"s2:processing_baseline": "05.13",
...
"red": {
  "raster:bands": [{
    "nodata": 0, "data_type": "uint16",
    "scale": 0.0001, "offset": -0.1
  }]
}

The two disagree. The flag says the offset is already gone, and raster:bands says to subtract it. A tool that reads raster:bands and nothing else will subtract it a second time. The COG files themselves carry no scale or offset tags, so they cannot settle it either.

What we measured

For each Earth Search item, we found the same scene (same date, MGRS tile, satellite and processing baseline) in the sentinel-2-l2a collection of Microsoft Planetary Computer, read the same 64 × 64 pixel window from both and subtracted the values. Planetary Computer serves the values as ESA delivers them, with the +1000 still in place. If Earth Search removed the offset, the difference is 1000. If it did not, the difference is close to 0.

All scenes are on tile 48MXT, around Bogor, West Java. Earth Search lists 307 items on that tile for 2022 to 2025. We tested every item there with baseline 04.00 or later and the flag set to false, plus a sample of items with the flag set to true.

Group

Items compared

Offset already removed on Earth Search

Flag true (2022 to 2026)

9

9 (difference 1000, or within a few DN of it)

Flag false, baseline 04.00, sensed 29 January to 23 February 2022

6

0 (difference close to 0)

Flag false, sensed 13 June 2022, 20 March 2022 (reprocessed, baseline 05.10) and seven dates in 2025 (baseline 05.11)

9

9 (difference exactly 1000)

Flag false, no matching scene on Planetary Computer

3

Not determined

For the 25 September 2026 scene, the difference was exactly 1000 at all 4,096 pixels in both the red and the near-infrared band. This is what the two ways of reading that window give:

Calculation

Median red reflectance

Median NDVI

Earth Search, DN × 0.0001

0.0706

0.540

Earth Search, DN × 0.0001 - 0.1 (as raster:bands says)

-0.0294

1.504

Planetary Computer, DN × 0.0001 - 0.1

0.0706

0.540

With the offset applied twice, 3,642 of the 4,096 red pixels (89%) had negative reflectance, and the median NDVI was 1.504, outside the possible range of -1 to +1. If your code clamps NDVI to that range, the error hides: most vegetated pixels simply read as 1.

We are not the first to notice. Open issues on the Earth Search repository describe the same thing: #9 (opened July 2023), #66 (March 2025, about the flag being false on items that were already corrected) and #71 (September 2025). In #9, an Element 84 contributor wrote that the offset property may be incorrectly set to -0.1 even when the offset has been applied, and that boa_offset_applied is the truth. Our measurements agree for the value true, but not for false. All three issues were still open when we checked in December 2026.

Why it matters in practice

Libraries that build data cubes from STAC often read raster:bands for you. The stackstac documentation, for example, lists rescale=True as the default for stackstac.stack, which rescales pixel values by the scale and offset in the raster:bands metadata of each asset. On an Earth Search item where the offset was already removed, that default subtracts it again.

The symptoms are easy to miss:

  • Reflectance below 0 over water, shadow and dense forest in the visible bands.

  • NDVI and other normalized indices above 1, or stuck at 1 after clamping.

  • A sudden jump in a time series around January 2022, or between items that were processed at different times.

  • Results that differ from the same scene downloaded from Copernicus or Planetary Computer.

How to handle it

  1. Do not let a library apply raster:bands on this collection blindly. In stackstac, pass rescale=False and convert yourself.

  2. For items with a baseline below 04.00, multiply by 0.0001.

  3. For items with earthsearch:boa_offset_applied true, multiply by 0.0001 and do not subtract 0.1.

  4. For items with a baseline of 04.00 or later and the flag false, check the item before you trust either reading. One way is to compare a small window with Planetary Computer, as in the code below.

This function returns the median difference between the two sources for one Earth Search item, and whether the offset was already removed. It needs rasterio and numpy, and uses the free anonymous token that Planetary Computer issues for reading its data.

import json
import urllib.request

import numpy as np
import rasterio
from rasterio.windows import Window

ES = "https://earth-search.aws.element84.com/v1"
PC = "https://planetarycomputer.microsoft.com/api"


def get_json(url, body=None):
    data = json.dumps(body).encode() if body else None
    req = urllib.request.Request(url, data=data, headers={"Content-Type": "application/json"})
    return json.load(urllib.request.urlopen(req))


def offset_already_applied(item_id, size=64):
    """Compare one window of the red band with the same scene on Planetary Computer."""
    es = get_json(f"{ES}/collections/sentinel-2-l2a/items/{item_id}")
    p = es["properties"]
    day = p["datetime"][:10]
    tile = p["grid:code"].replace("MGRS-", "")
    baseline = p["s2:processing_baseline"]
    search = get_json(f"{PC}/stac/v1/search", {
        "collections": ["sentinel-2-l2a"],
        "datetime": f"{day}T00:00:00Z/{day}T23:59:59Z",
        "query": {"s2:mgrs_tile": {"eq": tile}},
    })
    # Same satellite, same scene and same processing baseline as the Earth Search item
    pc = next(f for f in search["features"]
              if f["properties"]["s2:processing_baseline"] == baseline
              and f["properties"]["platform"].lower() == p["platform"].lower())
    token = get_json(f"{PC}/sas/v1/token/sentinel-2-l2a")["token"]

    with rasterio.open(es["assets"]["red"]["href"]) as a, \
         rasterio.open(pc["assets"]["B04"]["href"] + "?" + token) as b:
        win = Window(a.width // 2, a.height // 2, size, size)
        x = a.read(1, window=win).astype(int)
        y = b.read(1, window=win).astype(int)
    ok = (x > 0) & (y > 0)
    diff = float(np.median(y[ok] - x[ok]))
    return diff, diff > 500  # about 1000 when Earth Search already removed the offset


for item_id in ["S2B_48MXT_20220203_0_L2A", "S2B_48MXT_20250227_0_L2A"]:
    print(item_id, offset_already_applied(item_id))

When we ran it, it printed a difference of 56 for the February 2022 item (offset still present; the small difference comes from Planetary Computer serving a later reprocessing of the same baseline) and 1000 for the February 2025 item (offset already removed). The function raises StopIteration when Planetary Computer has no matching scene, which happened for 3 of our items.

What did not work

  • The COG tags. The files have no scale or offset tags, so rasterio reports scale 1 and offset 0 for both sources.

  • The pipeline version. Items with and without the offset removed share the same processing:software value (sentinel2-to-stac 0.1.0) and were created within days of each other in November 2022.

  • Counting dark pixels. With the offset still present, a zero reflectance is stored as 1000, so we expected almost no blue-band values below 1000. That held for clear scenes, but not for cloudy ones: one fully cloudy scene with the offset still present had 7.3% of its blue pixels below 1000, and one fully cloudy scene with the offset removed had only 2.5%.

Limits of this check

  • All items come from one MGRS tile. The pattern on other tiles may differ, which is why we suggest checking items with the flag false rather than relying on our dates.

  • Earth Search reprocesses items from time to time (the _1_ in some item IDs is a later version), so the state of an item can change.

  • We did not test Earth Search's newer sentinel-2-c1-l2a collection.

Why we looked

We found this while testing the satellite download in GaleriGIS Pro, our Windows app for satellite and drone imagery and map making, which searches Earth Search for Sentinel-2 scenes. Spectral indices calculated from one scene looked wrong, and comparing the raw pixel values with another source was the only check that settled it.

Frequently asked questions

Does Earth Search apply the Sentinel-2 offset?

For many items, yes. In our tests, every item with earthsearch:boa_offset_applied true had the +1000 already removed, and so did 9 of 15 items with the flag false. The raster:bands offset of -0.1 is listed either way.

How do I convert Earth Search Sentinel-2 L2A values to reflectance?

Multiply by 0.0001 when the item's baseline is below 04.00, or when earthsearch:boa_offset_applied is true. For other items, check whether the offset is still in the data before deciding whether to subtract 0.1.

Why is my Sentinel-2 NDVI greater than 1?

A common cause is subtracting the 0.1 offset from data that had it removed already. Red reflectance then goes negative over vegetation, and the NDVI formula returns values above 1.

Does Microsoft Planetary Computer apply the offset?

No. In every comparison we made, its values for baseline 04.00 and later scenes were 1000 higher than the corrected Earth Search values, which matches ESA's original encoding. Subtract 0.1 after scaling.