Skip to content

Instantly share code, notes, and snippets.

@alexgleith
Last active May 12, 2020 04:58
Show Gist options
  • Save alexgleith/dff7ec0e2e5cc95f6dda5be7e6dd75e5 to your computer and use it in GitHub Desktop.
Save alexgleith/dff7ec0e2e5cc95f6dda5be7e6dd75e5 to your computer and use it in GitHub Desktop.
A simple Sentinel-2 stac yaml json thing
{
"$schema": "https://schemas.opendatacube.org/dataset",
"id": "5490a901-6fbe-576d-b4b6-00f14c3788a3",
"crs": "epsg:32630",
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
1190221.0,
809759.0
],
[
1190221.0,
699961.0
],
[
1300018.9999999998,
699960.9999999999
],
[
1300019.0,
809759.0
],
[
1190221.0,
809759.0
]
]
]
},
"grids": {
"g60m": {
"shape": [
1830,
1830
],
"transform": [
60,
0,
699960,
0,
-60,
1300020,
0,
0,
1
]
},
"g20m": {
"shape": [
5490,
5490
],
"transform": [
20,
0,
699960,
0,
-20,
1300020,
0,
0,
1
]
},
"default": {
"shape": [
10980,
10980
],
"transform": [
10,
0,
699960,
0,
-10,
1300020,
0,
0,
1
]
}
},
"product": {
"name": "s2a_msil2a"
},
"properties": {
"label": "S2A_MSIL2A_20200221T102041_N0214_R065_T30PYT_20200221T115657",
"datetime": "2020-02-21T10:37:53.349Z",
"odc:processing_datetime": "2020-02-21T10:37:53.349Z",
"eo:cloud_cover": 0,
"eo:gsd": 10,
"eo:instrument": "msi",
"eo:platform": "sentinel-2a",
"odc:file_format": "GeoTIFF",
"odc:region_code": "30PYT"
},
"measurements": {
"coastal_aerosol": {
"path": "B01.tif",
"grid": "g60m"
},
"blue": {
"path": "B02.tif"
},
"green": {
"path": "B03.tif"
},
"red": {
"path": "B04.tif"
},
"red_edge_1": {
"path": "B05.tif",
"grid": "g20m"
},
"red_edge_2": {
"path": "B06.tif",
"grid": "g20m"
},
"red_edge_3": {
"path": "B07.tif",
"grid": "g20m"
},
"nir_1": {
"path": "B08.tif"
},
"nir_2": {
"path": "B8A.tif",
"grid": "g20m"
},
"water_vapour": {
"path": "B09.tif",
"grid": "g60m"
},
"swir_1": {
"path": "B11.tif",
"grid": "g20m"
},
"swir_2": {
"path": "B12.tif",
"grid": "g20m"
},
"scl": {
"path": "SCL.tif",
"grid": "g20m"
}
},
"lineage": {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment