Digital Earth Africa Sentinel-2 Level-2A

The Sentinel-2 mission is part of the European Union Copernicus programme for Earth observations. Sentinel-2 consists of twin satellites, Sentinel-2A (launched 23 June 2015) and Sentinel-2B (launched 7 March 2017). The two satellites have the same orbit, but 180° apart for optimal coverage and data delivery. Their combined data is used in the Digital Earth Africa Sentinel-2 product. Together, they cover all Earth’s land surfaces, large islands, inland and coastal waters every 3-5 days. Sentinel-2 data is tiered by level of pre-processing. Level-0, Level-1A and Level-1B data contain raw data from the satellites, with little to no pre-processing. Level-1C data is surface reflectance measured at the top of the atmosphere. This is processed using the Sen2Cor algorithm to give Level-2A, the ... Managed by Digital Earth Africa. Updated new sentinel-2 scenes are added regularly, usually within few hours after they are available on copernicus openhub..

Category
Earth Observation & Geospatial
Provider
Digital Earth Africa
License
Custom (see documentation)
Hosted on
Amazon S3, bucket deafrica-sentinel-2, af-south-1
Access
Free and public. No account with the data provider is needed.
Source
https://registry.opendata.aws/roda/deafrica-sentinel-2/
Data structure and loading code

Files

Example file: /mnt/archive/sentinel-s2-l2a-cogs/37/M/BU/2023/6/S2A_37MBU_20230607_0_L2A/B04.tif

Load the data

import os, json, rasterio
ROOT = os.environ['SCIGANTIC_MOUNT_PATH'] + "/sentinel-s2-l2a-cogs"
scene = f"{ROOT}/36/M/TV/2024/6/S2A_36MTV_20240607_0_L2A"      # zone/band/square/year/month(unpadded)/SCENE_ID
item = json.load(open(f"{scene}/S2A_36MTV_20240607_0_L2A.json"))
p = item["properties"]
print(item["id"], item["collection"])
print("datetime:", p["datetime"], "| cloud%:", p.get("eo:cloud_cover"))
print("epsg:", p.get("proj:epsg"), "| shape:", p.get("proj:shape"))   # proj:shape is None here; it lives on each asset
print("bbox:", [round(v,4) for v in item["bbox"]])
print("platform:", p.get("platform"), "| assets:", len(item["assets"]))
with rasterio.open(f"{scene}/B04.tif") as src:
    print("B04 full:", src.shape, src.dtypes[0], "overviews:", src.overviews(1))   # (10980, 10980) uint16 [2, 4, 8, 16]

Written for a Scigantic notebook, where /mnt/archive is the mounted dataset.

Analyze this dataset without downloading it

On Scigantic, Digital Earth Africa Sentinel-2 Level-2A opens in a hosted JupyterLab notebook with the data already mounted, so you can read files where they are stored instead of copying them first. Each notebook includes an AI assistant that can see the mounted files and write and run analysis code. Open the dataset page to launch a notebook, or browse the full catalog.

Related Earth Observation & Geospatial datasets