question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItĀ collects links to all the places you might be looking at while hunting down a tough bug.

And, if youā€™re still stuck at the end, weā€™re happy to hop on a call to see how we can help out.

Sentinel-2 Level-2A Bottom of Atmosphere Imagery

See original GitHub issue

Hello šŸ‘‹! ESA has globally rolled out bottom of atmosphere ā€œLevel-2Aā€ (aka ā€œL2Aā€) corrected imagery as of December 2018. Are there any known technical limitations for supporting this imagery? If not, can we extend this project to support L2A?

At first glance, it looks like L1C and L2A datasets adhere to a similar (although not identical) S3 schema:

$ aws s3api list-objects --bucket sentinel-s2-l1c --prefix tiles/1/C/EM/2019/11/20/0 --request-payer requester
{
    "Contents": [
        {
            "Key": "tiles/1/C/EM/2019/11/20/0/B01.jp2",
            "LastModified": "2019-11-20T19:55:25.000Z",
            "ETag": "\"96effcc32e2c0f0d6cc45bf18efbb8ce\"",
            "Size": 297678,
            "StorageClass": "INTELLIGENT_TIERING",
            "Owner": {
                "ID": "91d380b3cead28df927c824731b0173701336cd8d67b0679d7166288f3850f38"
            }
        },
        ...
$ aws s3api list-objects --bucket sentinel-s2-l2a --prefix tiles/1/C/EM/2019/11/20/0 --request-payer requester
{
    "Contents": [
        {
            "Key": "tiles/1/C/EM/2019/11/20/0/R60m/B01.jp2",
            "LastModified": "2019-11-20T21:10:52.000Z",
            "ETag": "\"620a1f03d96f1df8bdfdd32b64c90608\"",
            "Size": 314419,
            "StorageClass": "INTELLIGENT_TIERING",
            "Owner": {
                "ID": "91d380b3cead28df927c824731b0173701336cd8d67b0679d7166288f3850f38"
            }
        },
        ...

Notice the addition of the ā€œR60mā€ to the prefix of the L2A dataset. This seems to indicate the ground sample distance (GSD) of the dataset. Bands with finer resolution have a variety of GSD available. For example, B02 has R10m/B02.jp2, R20m/B02.jp2, andR60m/B02.jp2 variants.

It looks like rio-tiler hard-codes top of atmosphere (ā€œL1Cā€) support: https://github.com/cogeotiff/rio-tiler/blob/6b3b57e4d837cfa855d9b4a74175812339ac433e/rio_tiler/sentinel2.py#L19 I would imagine L2A support being added behind an optional parameter to bounds / metadata / tiles functions?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
vincentsaragocommented, Feb 18, 2020

just pushed https://github.com/cogeotiff/rio-tiler/pull/143

This PR introduce the new Sentinel 2 sceneid (and still support the old one for now).

The old sceneid fallback to level l1c.

@DanSchoppe would you be able to review the PR ?

1reaction
matthewhansoncommented, Jan 28, 2020

I also donā€™t understand why they have multiple resolutions - JPEG2K theoretically allows decompression at any arbitrary resolutionā€¦but in practice the available decoders just arenā€™t very efficient so maybe thatā€™s why they have multiple files.

At any rate, I am currently working on the COG version of the L2A data for Africa, it will be in us-west-2 and will be indexed in a STAC API. The first data should start appearing in the bucket in February.

Read more comments on GitHub >

github_iconTop Results From Across the Web

User Guides - Sentinel-2 MSI - Level-2 Processing
The Level-2A processing includes a scene classification and an atmospheric correction applied to Top-Of-Atmosphere (TOA) Level-1C orthoimage products.
Read more >
Sentinel-2 Level-2A Surface Reflectance
This is processed using the Sen2Cor algorithm to give Level-2A, the bottom-of-atmosphere reflectance (ObregĆ³n et al, 2019). Level-2A data is the most idealĀ ......
Read more >
Sentinel-2 Surface Reflectance Tutorial w/ Imagery
Important: Sentinel-2 pixel values represent Top of Atmosphere (TOA) reflectance units x 10,000 (for example, a pixel value of 5000 = 0.5000 TOA...
Read more >
Sentinel-2 L2A
It's is delivering high-resolution optical images for land monitoring, emergency response and security services. The satellite's multispectral imager provides aĀ ...
Read more >
Sentinel-2 Level-2A | Planetary Computer - Microsoft
The Sentinel-2 program provides global imagery in thirteen spectral bands at 10m-60m resolution and a revisit time of approximately five days.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found