Skip to content

Instantly share code, notes, and snippets.

@m-mohr
Created April 29, 2024 14:35
Show Gist options
  • Save m-mohr/adba6a7f2d1e7762a4828420762f046d to your computer and use it in GitHub Desktop.
Save m-mohr/adba6a7f2d1e7762a4828420762f046d to your computer and use it in GitHub Desktop.
S2 item
{
"stac_version": "1.0.0",
"stac_extensions": [],
"type": "Feature",
"id": "S2A_MSIL2A_20231107T144731_N0509_R139_T20QRF_20231107T182159", // product URI, ".SAFE" removed
"collection": "sentinel-2-l2a",
"properties": {
"datetime": "2023-11-07T14:47:31.024000Z",
"platform": "Sentinel-2A",
"proj:epsg": 32620,
"instruments": [
"msi"
],
"constellation": "Sentinel 2",
"eo:cloud_cover": 4.217,
"eo:snow_cover": 0,
"eo:water_cover": 95.782292, // undefined
"eo:vegetation_cover": 0, // undefined
"grid:code": "MGRS-T20QRF", // extracted from s2:tile_id
"processing:datetime": "2023-11-07T18:21:59.14490Z", // new field in processing
"processing:version": "05.09", // new field in processing
"product:type": "S2MSI2A", // new extension
"raster:nodata_percentage": 99.062872, // new field in raster
"sat:relative_orbit": 139,
"sat:orbit_state": "descending",
"s2:datatake_id": "GS2A_20231107T144731_043751_N05.09",
"s2:datastrip_id": "S2A_OPER_MSI_L2A_DS_MSFT_20231107T182159_S20231107T144729_N05.09",
// EOPF or remove
"eopf:product_uri": "S2A_MSIL2A_20231107T144731_N0509_R139_T20QRF_20231107T182159.SAFE",
"eopf:datatake_type": "INS-NOBS",
"eopf:reflectance_conversion_factor": 1.01678413954947,
"eopf:degraded_msi_data_percentage": 0,
},
"links": [],
"assets": {
"SCL": {
"href": "https://sentinel2l2a01.blob.core.windows.net/sentinel2-l2/20/Q/RF/2023/11/07/S2A_MSIL2A_20231107T144731_N0509_R139_T20QRF_20231107T182159.SAFE/GRANULE/L2A_T20QRF_A043751_20231107T144729/IMG_DATA/R20m/T20QRF_20231107T144731_SCL_20m.tif",
"type": "image/tiff; application=geotiff; profile=cloud-optimized",
"roles": [
"data"
],
"title": "Scene classfication map (SCL)",
"classification:classes": [
{
"value": 0,
"description": "no_data",
"percentage": 99.062872, // percentage is new in the classification extension, no query support
},
{
"value": 1,
"description": "saturated_or_defective",
"percentage": 0
},
{
"value": 2,
"description": "dark_area_pixels",
"percentage": 0
},
{
"value": 3,
"description": "cloud_shadows",
"percentage": 0
},
{
"value": 4,
"description": "vegetation",
"percentage": 0
},
{
"value": 5,
"description": "not_vegetated",
"percentage": 0.000708
},
{
"value": 6,
"description": "water",
"percentage": 95.782292
},
{
"value": 7,
"description": "unclassified",
"percentage": 0
},
{
"value": 8,
"description": "cloud_medium_probability",
"percentage": 2.742413
},
{
"value": 9,
"description": "cloud_high_probability",
"percentage": 0.699942
},
{
"value": 10,
"description": "thin_cirrus",
"percentage": 0.774645
},
{
"value": 11,
"description": "snow",
"percentage": 0
}
],
"proj:bbox": [
799980,
1990200,
909780,
2100000
],
"proj:shape": [
5490,
5490
],
"proj:transform": [
20,
0,
799980,
0,
-20,
2100000
]
}
},
"bbox": [
-60.16312451,
18.25080108,
-60.0939727,
18.54966083
],
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
-60.1581997,
18.5496608
],
[
-60.0939727,
18.532092
],
[
-60.1302216,
18.3845002
],
[
-60.1631245,
18.2508011
],
[
-60.1581997,
18.5496608
]
]
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment