PySTAC Client の簡単なデモ¶

2022-11-12
FOSS4G 2022 Japan Online「STAC からはじめる地球観測衛星データの利活用」

In [1]:
from pystac_client import Client

AWS にオープンデータとしてホストされている Sentinel-2 Cloud-Optimized GeoTIFFs の STAC API を利用します。

In [2]:
client = Client.open('https://earth-search.aws.element84.com/v0')
client
Out[2]:

Client: earth-search

ID: earth-search
Title: Earth Search
Description: A STAC API of AWS Public Datasets powered by stac-server
stac_api_version: 0.9.0
type: Catalog

Children

Only the first child shown

CollectionClient: sentinel-s2-l2a

ID: sentinel-s2-l2a
Title: Sentinel 2 L2A
Description: Sentinel-2a and Sentinel-2b imagery, processed to Level 2A (Surface Reflectance)
Providers:
  • ESA (producer)
  • Sinergise (processor)
  • AWS (host)
  • Element 84 (processor)
stac_extensions: ['https://stac-extensions.github.io/item-assets/v1.0.0/schema.json']
title: Sentinel 2 L2A
keywords: ['sentinel', 'earth observation', 'esa']
providers: [{'name': 'ESA', 'roles': ['producer'], 'url': 'https://earth.esa.int/web/guest/home'}, {'name': 'Sinergise', 'roles': ['processor'], 'url': 'https://registry.opendata.aws/sentinel-2/'}, {'name': 'AWS', 'roles': ['host'], 'url': 'http://sentinel-pds.s3-website.eu-central-1.amazonaws.com/'}, {'name': 'Element 84', 'roles': ['processor'], 'url': 'https://element84.com'}]
summaries: {'platform': ['sentinel-2a', 'sentinel-2b'], 'constellation': ['sentinel-2'], 'instruments': ['msi'], 'gsd': [10], 'view:off_nadir': [0]}
item_assets: {'thumbnail': {'title': 'Thumbnail', 'type': 'image/png', 'roles': ['thumbnail']}, 'overview': {'title': 'True color image', 'type': 'image/jp2', 'roles': ['overview'], 'gsd': 10, 'eo:bands': [{'name': 'B04', 'common_name': 'red', 'center_wavelength': 0.6645, 'full_width_half_max': 0.038}, {'name': 'B03', 'common_name': 'green', 'center_wavelength': 0.56, 'full_width_half_max': 0.045}, {'name': 'B02', 'common_name': 'blue', 'center_wavelength': 0.4966, 'full_width_half_max': 0.098}]}, 'info': {'title': 'Original JSON metadata', 'type': 'application/json', 'roles': ['metadata']}, 'metadata': {'title': 'Original XML metadata', 'type': 'application/xml', 'roles': ['metadata']}, 'visual': {'title': 'True color image', 'type': 'image/jp2', 'roles': ['overview'], 'gsd': 10, 'eo:bands': [{'name': 'B04', 'common_name': 'red', 'center_wavelength': 0.6645, 'full_width_half_max': 0.038}, {'name': 'B03', 'common_name': 'green', 'center_wavelength': 0.56, 'full_width_half_max': 0.045}, {'name': 'B02', 'common_name': 'blue', 'center_wavelength': 0.4966, 'full_width_half_max': 0.098}]}, 'visual_20m': {'title': 'True color image', 'type': 'image/jp2', 'roles': ['overview'], 'gsd': 20, 'eo:bands': [{'name': 'B04', 'common_name': 'red', 'center_wavelength': 0.6645, 'full_width_half_max': 0.038}, {'name': 'B03', 'common_name': 'green', 'center_wavelength': 0.56, 'full_width_half_max': 0.045}, {'name': 'B02', 'common_name': 'blue', 'center_wavelength': 0.4966, 'full_width_half_max': 0.098}]}, 'visual_60m': {'title': 'True color image', 'type': 'image/jp2', 'roles': ['overview'], 'gsd': 60, 'eo:bands': [{'name': 'B04', 'common_name': 'red', 'center_wavelength': 0.6645, 'full_width_half_max': 0.038}, {'name': 'B03', 'common_name': 'green', 'center_wavelength': 0.56, 'full_width_half_max': 0.045}, {'name': 'B02', 'common_name': 'blue', 'center_wavelength': 0.4966, 'full_width_half_max': 0.098}]}, 'B01': {'title': 'Band 1 (coastal)', 'type': 'image/jp2', 'roles': ['data'], 'gsd': 60, 'eo:bands': [{'name': 'B01', 'common_name': 'coastal', 'center_wavelength': 0.4439, 'full_width_half_max': 0.027}]}, 'B02': {'title': 'Band 2 (blue)', 'type': 'image/jp2', 'roles': ['data'], 'gsd': 10, 'eo:bands': [{'name': 'B02', 'common_name': 'blue', 'center_wavelength': 0.4966, 'full_width_half_max': 0.098}]}, 'B03': {'title': 'Band 3 (green)', 'type': 'image/jp2', 'roles': ['data'], 'gsd': 10, 'eo:bands': [{'name': 'B03', 'common_name': 'green', 'center_wavelength': 0.56, 'full_width_half_max': 0.045}]}, 'B04': {'title': 'Band 4 (red)', 'type': 'image/jp2', 'roles': ['data'], 'gsd': 10, 'eo:bands': [{'name': 'B04', 'common_name': 'red', 'center_wavelength': 0.6645, 'full_width_half_max': 0.038}]}, 'B05': {'title': 'Band 5', 'type': 'image/jp2', 'roles': ['data'], 'gsd': 20, 'eo:bands': [{'name': 'B05', 'center_wavelength': 0.7039, 'full_width_half_max': 0.019}]}, 'B06': {'title': 'Band 6', 'type': 'image/jp2', 'roles': ['data'], 'gsd': 20, 'eo:bands': [{'name': 'B06', 'center_wavelength': 0.7402, 'full_width_half_max': 0.018}]}, 'B07': {'title': 'Band 7', 'type': 'image/jp2', 'roles': ['data'], 'gsd': 20, 'eo:bands': [{'name': 'B07', 'center_wavelength': 0.7825, 'full_width_half_max': 0.028}]}, 'B08': {'title': 'Band 8 (nir)', 'type': 'image/jp2', 'roles': ['data'], 'gsd': 10, 'eo:bands': [{'name': 'B08', 'common_name': 'nir', 'center_wavelength': 0.8351, 'full_width_half_max': 0.145}]}, 'B8A': {'title': 'Band 8A', 'type': 'image/jp2', 'roles': ['data'], 'gsd': 20, 'eo:bands': [{'name': 'B8A', 'center_wavelength': 0.8648, 'full_width_half_max': 0.033}]}, 'B09': {'title': 'Band 9', 'type': 'image/jp2', 'roles': ['data'], 'gsd': 60, 'eo:bands': [{'name': 'B09', 'center_wavelength': 0.945, 'full_width_half_max': 0.026}]}, 'B11': {'title': 'Band 11 (swir16)', 'type': 'image/jp2', 'roles': ['data'], 'gsd': 20, 'eo:bands': [{'name': 'B11', 'common_name': 'swir16', 'center_wavelength': 1.6137, 'full_width_half_max': 0.143}]}, 'B12': {'title': 'Band 12 (swir22)', 'type': 'image/jp2', 'roles': ['data'], 'gsd': 20, 'eo:bands': [{'name': 'B12', 'common_name': 'swir22', 'center_wavelength': 2.22024, 'full_width_half_max': 0.242}]}, 'AOT': {'title': 'Aerosol Optical Thickness (AOT)', 'type': 'image/jp2', 'roles': ['data']}, 'WVP': {'title': 'Water Vapour (WVP)', 'type': 'image/jp2', 'roles': ['data']}, 'SCL': {'title': 'Scene Classification Map (SCL)', 'type': 'image/jp2', 'roles': ['data']}}
type: Collection

STAC Extensions

https://stac-extensions.github.io/item-assets/v1.0.0/schema.json

Items

Only the first item shown

Item: S2A_52NBG_20221111_0_L2A

ID: S2A_52NBG_20221111_0_L2A
Bounding Box: [127.17958154875552, 1.7242077170687815, 127.2900178998256, 1.808998628897094]
Datetime: 2022-11-11 01:57:07+00:00
datetime: 2022-11-11T01:57:07Z
platform: sentinel-2a
constellation: sentinel-2
instruments: ['msi']
gsd: 10
view:off_nadir: 0
proj:epsg: 32652
sentinel:utm_zone: 52
sentinel:latitude_band: N
sentinel:grid_square: BG
sentinel:sequence: 0
sentinel:product_id: S2A_MSIL2A_20221111T015621_N0400_R117_T52NBG_20221111T042552
sentinel:data_coverage: 0.8
eo:cloud_cover: 99.71
sentinel:valid_cloud_cover: True
sentinel:processing_baseline: 04.00
created: 2022-11-11T05:41:03.274Z
updated: 2022-11-11T05:41:03.274Z
stac_extensions: ['eo', 'view', 'proj']

STAC Extensions

eo
view
proj

Assets

Asset: Thumbnail

href: https://roda.sentinel-hub.com/sentinel-s2-l1c/tiles/52/N/BG/2022/11/11/0/preview.jpg
Title: Thumbnail
Media type: image/png
Roles: ['thumbnail']
Owner:

Asset: True color image

href: s3://sentinel-s2-l2a/tiles/52/N/BG/2022/11/11/0/qi/L2A_PVI.jp2
Title: True color image
Media type: image/jp2
Roles: ['overview']
Owner:
gsd: 10
eo:bands: [{'name': 'B04', 'common_name': 'red', 'center_wavelength': 0.6645, 'full_width_half_max': 0.038}, {'name': 'B03', 'common_name': 'green', 'center_wavelength': 0.56, 'full_width_half_max': 0.045}, {'name': 'B02', 'common_name': 'blue', 'center_wavelength': 0.4966, 'full_width_half_max': 0.098}]

Asset: Original JSON metadata

href: https://roda.sentinel-hub.com/sentinel-s2-l2a/tiles/52/N/BG/2022/11/11/0/tileInfo.json
Title: Original JSON metadata
Media type: application/json
Roles: ['metadata']
Owner:

Asset: Original XML metadata

href: https://roda.sentinel-hub.com/sentinel-s2-l2a/tiles/52/N/BG/2022/11/11/0/metadata.xml
Title: Original XML metadata
Media type: application/xml
Roles: ['metadata']
Owner:

Asset: True color image

href: s3://sentinel-s2-l2a/tiles/52/N/BG/2022/11/11/0/R10m/TCI.jp2
Title: True color image
Media type: image/jp2
Roles: ['overview']
Owner:
gsd: 10
eo:bands: [{'name': 'B04', 'common_name': 'red', 'center_wavelength': 0.6645, 'full_width_half_max': 0.038}, {'name': 'B03', 'common_name': 'green', 'center_wavelength': 0.56, 'full_width_half_max': 0.045}, {'name': 'B02', 'common_name': 'blue', 'center_wavelength': 0.4966, 'full_width_half_max': 0.098}]

Asset: True color image

href: s3://sentinel-s2-l2a/tiles/52/N/BG/2022/11/11/0/R20m/TCI.jp2
Title: True color image
Media type: image/jp2
Roles: ['overview']
Owner:
gsd: 20
eo:bands: [{'name': 'B04', 'common_name': 'red', 'center_wavelength': 0.6645, 'full_width_half_max': 0.038}, {'name': 'B03', 'common_name': 'green', 'center_wavelength': 0.56, 'full_width_half_max': 0.045}, {'name': 'B02', 'common_name': 'blue', 'center_wavelength': 0.4966, 'full_width_half_max': 0.098}]

Asset: True color image

href: s3://sentinel-s2-l2a/tiles/52/N/BG/2022/11/11/0/R60m/TCI.jp2
Title: True color image
Media type: image/jp2
Roles: ['overview']
Owner:
gsd: 60
eo:bands: [{'name': 'B04', 'common_name': 'red', 'center_wavelength': 0.6645, 'full_width_half_max': 0.038}, {'name': 'B03', 'common_name': 'green', 'center_wavelength': 0.56, 'full_width_half_max': 0.045}, {'name': 'B02', 'common_name': 'blue', 'center_wavelength': 0.4966, 'full_width_half_max': 0.098}]

Asset: Band 1 (coastal)

href: s3://sentinel-s2-l2a/tiles/52/N/BG/2022/11/11/0/R60m/B01.jp2
Title: Band 1 (coastal)
Media type: image/jp2
Roles: ['data']
Owner:
gsd: 60
eo:bands: [{'name': 'B01', 'common_name': 'coastal', 'center_wavelength': 0.4439, 'full_width_half_max': 0.027}]

Asset: Band 2 (blue)

href: s3://sentinel-s2-l2a/tiles/52/N/BG/2022/11/11/0/R10m/B02.jp2
Title: Band 2 (blue)
Media type: image/jp2
Roles: ['data']
Owner:
gsd: 10
eo:bands: [{'name': 'B02', 'common_name': 'blue', 'center_wavelength': 0.4966, 'full_width_half_max': 0.098}]

Asset: Band 3 (green)

href: s3://sentinel-s2-l2a/tiles/52/N/BG/2022/11/11/0/R10m/B03.jp2
Title: Band 3 (green)
Media type: image/jp2
Roles: ['data']
Owner:
gsd: 10
eo:bands: [{'name': 'B03', 'common_name': 'green', 'center_wavelength': 0.56, 'full_width_half_max': 0.045}]

Asset: Band 4 (red)

href: s3://sentinel-s2-l2a/tiles/52/N/BG/2022/11/11/0/R10m/B04.jp2
Title: Band 4 (red)
Media type: image/jp2
Roles: ['data']
Owner:
gsd: 10
eo:bands: [{'name': 'B04', 'common_name': 'red', 'center_wavelength': 0.6645, 'full_width_half_max': 0.038}]

Asset: Band 5

href: s3://sentinel-s2-l2a/tiles/52/N/BG/2022/11/11/0/R20m/B05.jp2
Title: Band 5
Media type: image/jp2
Roles: ['data']
Owner:
gsd: 20
eo:bands: [{'name': 'B05', 'center_wavelength': 0.7039, 'full_width_half_max': 0.019}]

Asset: Band 6

href: s3://sentinel-s2-l2a/tiles/52/N/BG/2022/11/11/0/R20m/B06.jp2
Title: Band 6
Media type: image/jp2
Roles: ['data']
Owner:
gsd: 20
eo:bands: [{'name': 'B06', 'center_wavelength': 0.7402, 'full_width_half_max': 0.018}]

Asset: Band 7

href: s3://sentinel-s2-l2a/tiles/52/N/BG/2022/11/11/0/R20m/B07.jp2
Title: Band 7
Media type: image/jp2
Roles: ['data']
Owner:
gsd: 20
eo:bands: [{'name': 'B07', 'center_wavelength': 0.7825, 'full_width_half_max': 0.028}]

Asset: Band 8 (nir)

href: s3://sentinel-s2-l2a/tiles/52/N/BG/2022/11/11/0/R10m/B08.jp2
Title: Band 8 (nir)
Media type: image/jp2
Roles: ['data']
Owner:
gsd: 10
eo:bands: [{'name': 'B08', 'common_name': 'nir', 'center_wavelength': 0.8351, 'full_width_half_max': 0.145}]

Asset: Band 8A

href: s3://sentinel-s2-l2a/tiles/52/N/BG/2022/11/11/0/R20m/B8A.jp2
Title: Band 8A
Media type: image/jp2
Roles: ['data']
Owner:
gsd: 20
eo:bands: [{'name': 'B8A', 'center_wavelength': 0.8648, 'full_width_half_max': 0.033}]

Asset: Band 9

href: s3://sentinel-s2-l2a/tiles/52/N/BG/2022/11/11/0/R60m/B09.jp2
Title: Band 9
Media type: image/jp2
Roles: ['data']
Owner:
gsd: 60
eo:bands: [{'name': 'B09', 'center_wavelength': 0.945, 'full_width_half_max': 0.026}]

Asset: Band 11 (swir16)

href: s3://sentinel-s2-l2a/tiles/52/N/BG/2022/11/11/0/R20m/B11.jp2
Title: Band 11 (swir16)
Media type: image/jp2
Roles: ['data']
Owner:
gsd: 20
eo:bands: [{'name': 'B11', 'common_name': 'swir16', 'center_wavelength': 1.6137, 'full_width_half_max': 0.143}]

Asset: Band 12 (swir22)

href: s3://sentinel-s2-l2a/tiles/52/N/BG/2022/11/11/0/R20m/B12.jp2
Title: Band 12 (swir22)
Media type: image/jp2
Roles: ['data']
Owner:
gsd: 20
eo:bands: [{'name': 'B12', 'common_name': 'swir22', 'center_wavelength': 2.22024, 'full_width_half_max': 0.242}]

Asset: Aerosol Optical Thickness (AOT)

href: s3://sentinel-s2-l2a/tiles/52/N/BG/2022/11/11/0/R60m/AOT.jp2
Title: Aerosol Optical Thickness (AOT)
Media type: image/jp2
Roles: ['data']
Owner:

Asset: Water Vapour (WVP)

href: s3://sentinel-s2-l2a/tiles/52/N/BG/2022/11/11/0/R10m/WVP.jp2
Title: Water Vapour (WVP)
Media type: image/jp2
Roles: ['data']
Owner:

Asset: Scene Classification Map (SCL)

href: s3://sentinel-s2-l2a/tiles/52/N/BG/2022/11/11/0/R20m/SCL.jp2
Title: Scene Classification Map (SCL)
Media type: image/jp2
Roles: ['data']
Owner:

Links

Link:

Rel: self
Target: https://earth-search.aws.element84.com/v0/collections/sentinel-s2-l2a/items/S2A_52NBG_20221111_0_L2A

Link:

Rel: canonical
Target: https://cirrus-v0-data-1qm7gekzjucbq.s3.us-west-2.amazonaws.com/sentinel-s2-l2a/52/N/BG/2022/11/S2A_52NBG_20221111_0_L2A/S2A_52NBG_20221111_0_L2A.json
Media Type: application/json

Link:

sentinel-s2-l2a-aws/workflow-publish-sentinel/tiles-52-N-BG-2022-11-11-0

Rel: via-cirrus
Target: https://cirrus-earth-search.aws.element84.com/v0/catid/sentinel-s2-l2a-aws/workflow-publish-sentinel/tiles-52-N-BG-2022-11-11-0

Link:

Rel: parent
Target: https://earth-search.aws.element84.com/v0/collections/sentinel-s2-l2a

Link:

Rel: collection
Target: https://earth-search.aws.element84.com/v0/collections/sentinel-s2-l2a

Link:

Rel: root
Target: https://earth-search.aws.element84.com/v0/

Links

Link:

Rel: license
Target: https://sentinel.esa.int/documents/247904/690755/Sentinel_Data_Legal_Notice

Link:

Rel: about
Target: https://github.com/stac-utils/stac-sentinel

Link:

Earth Search

Rel: root
Target:
Media Type: application/json

Link:

Rel: items
Target: https://earth-search.aws.element84.com/v0/collections/sentinel-s2-l2a/items

Link:

Rel: self
Target: https://earth-search.aws.element84.com/v0/collections/sentinel-s2-l2a
Media Type: application/json

Link:

Earth Search

Rel: parent
Target:
Media Type: application/json

Items

Only the first item shown

Item: S2A_52NBG_20221111_0_L2A

ID: S2A_52NBG_20221111_0_L2A
Bounding Box: [127.17958154875552, 1.7242077170687815, 127.2900178998256, 1.808998628897094]
Datetime: 2022-11-11 01:57:07+00:00
datetime: 2022-11-11T01:57:07Z
platform: sentinel-2a
constellation: sentinel-2
instruments: ['msi']
gsd: 10
view:off_nadir: 0
proj:epsg: 32652
sentinel:utm_zone: 52
sentinel:latitude_band: N
sentinel:grid_square: BG
sentinel:sequence: 0
sentinel:product_id: S2A_MSIL2A_20221111T015621_N0400_R117_T52NBG_20221111T042552
sentinel:data_coverage: 0.8
eo:cloud_cover: 99.71
sentinel:valid_cloud_cover: True
sentinel:processing_baseline: 04.00
created: 2022-11-11T05:41:03.274Z
updated: 2022-11-11T05:41:03.274Z
stac_extensions: ['eo', 'view', 'proj']

STAC Extensions

eo
view
proj

Assets

Asset: Thumbnail

href: https://roda.sentinel-hub.com/sentinel-s2-l1c/tiles/52/N/BG/2022/11/11/0/preview.jpg
Title: Thumbnail
Media type: image/png
Roles: ['thumbnail']
Owner:

Asset: True color image

href: s3://sentinel-s2-l2a/tiles/52/N/BG/2022/11/11/0/qi/L2A_PVI.jp2
Title: True color image
Media type: image/jp2
Roles: ['overview']
Owner:
gsd: 10
eo:bands: [{'name': 'B04', 'common_name': 'red', 'center_wavelength': 0.6645, 'full_width_half_max': 0.038}, {'name': 'B03', 'common_name': 'green', 'center_wavelength': 0.56, 'full_width_half_max': 0.045}, {'name': 'B02', 'common_name': 'blue', 'center_wavelength': 0.4966, 'full_width_half_max': 0.098}]

Asset: Original JSON metadata

href: https://roda.sentinel-hub.com/sentinel-s2-l2a/tiles/52/N/BG/2022/11/11/0/tileInfo.json
Title: Original JSON metadata
Media type: application/json
Roles: ['metadata']
Owner:

Asset: Original XML metadata

href: https://roda.sentinel-hub.com/sentinel-s2-l2a/tiles/52/N/BG/2022/11/11/0/metadata.xml
Title: Original XML metadata
Media type: application/xml
Roles: ['metadata']
Owner:

Asset: True color image

href: s3://sentinel-s2-l2a/tiles/52/N/BG/2022/11/11/0/R10m/TCI.jp2
Title: True color image
Media type: image/jp2
Roles: ['overview']
Owner:
gsd: 10
eo:bands: [{'name': 'B04', 'common_name': 'red', 'center_wavelength': 0.6645, 'full_width_half_max': 0.038}, {'name': 'B03', 'common_name': 'green', 'center_wavelength': 0.56, 'full_width_half_max': 0.045}, {'name': 'B02', 'common_name': 'blue', 'center_wavelength': 0.4966, 'full_width_half_max': 0.098}]

Asset: True color image

href: s3://sentinel-s2-l2a/tiles/52/N/BG/2022/11/11/0/R20m/TCI.jp2
Title: True color image
Media type: image/jp2
Roles: ['overview']
Owner:
gsd: 20
eo:bands: [{'name': 'B04', 'common_name': 'red', 'center_wavelength': 0.6645, 'full_width_half_max': 0.038}, {'name': 'B03', 'common_name': 'green', 'center_wavelength': 0.56, 'full_width_half_max': 0.045}, {'name': 'B02', 'common_name': 'blue', 'center_wavelength': 0.4966, 'full_width_half_max': 0.098}]

Asset: True color image

href: s3://sentinel-s2-l2a/tiles/52/N/BG/2022/11/11/0/R60m/TCI.jp2
Title: True color image
Media type: image/jp2
Roles: ['overview']
Owner:
gsd: 60
eo:bands: [{'name': 'B04', 'common_name': 'red', 'center_wavelength': 0.6645, 'full_width_half_max': 0.038}, {'name': 'B03', 'common_name': 'green', 'center_wavelength': 0.56, 'full_width_half_max': 0.045}, {'name': 'B02', 'common_name': 'blue', 'center_wavelength': 0.4966, 'full_width_half_max': 0.098}]

Asset: Band 1 (coastal)

href: s3://sentinel-s2-l2a/tiles/52/N/BG/2022/11/11/0/R60m/B01.jp2
Title: Band 1 (coastal)
Media type: image/jp2
Roles: ['data']
Owner:
gsd: 60
eo:bands: [{'name': 'B01', 'common_name': 'coastal', 'center_wavelength': 0.4439, 'full_width_half_max': 0.027}]

Asset: Band 2 (blue)

href: s3://sentinel-s2-l2a/tiles/52/N/BG/2022/11/11/0/R10m/B02.jp2
Title: Band 2 (blue)
Media type: image/jp2
Roles: ['data']
Owner:
gsd: 10
eo:bands: [{'name': 'B02', 'common_name': 'blue', 'center_wavelength': 0.4966, 'full_width_half_max': 0.098}]

Asset: Band 3 (green)

href: s3://sentinel-s2-l2a/tiles/52/N/BG/2022/11/11/0/R10m/B03.jp2
Title: Band 3 (green)
Media type: image/jp2
Roles: ['data']
Owner:
gsd: 10
eo:bands: [{'name': 'B03', 'common_name': 'green', 'center_wavelength': 0.56, 'full_width_half_max': 0.045}]

Asset: Band 4 (red)

href: s3://sentinel-s2-l2a/tiles/52/N/BG/2022/11/11/0/R10m/B04.jp2
Title: Band 4 (red)
Media type: image/jp2
Roles: ['data']
Owner:
gsd: 10
eo:bands: [{'name': 'B04', 'common_name': 'red', 'center_wavelength': 0.6645, 'full_width_half_max': 0.038}]

Asset: Band 5

href: s3://sentinel-s2-l2a/tiles/52/N/BG/2022/11/11/0/R20m/B05.jp2
Title: Band 5
Media type: image/jp2
Roles: ['data']
Owner:
gsd: 20
eo:bands: [{'name': 'B05', 'center_wavelength': 0.7039, 'full_width_half_max': 0.019}]

Asset: Band 6

href: s3://sentinel-s2-l2a/tiles/52/N/BG/2022/11/11/0/R20m/B06.jp2
Title: Band 6
Media type: image/jp2
Roles: ['data']
Owner:
gsd: 20
eo:bands: [{'name': 'B06', 'center_wavelength': 0.7402, 'full_width_half_max': 0.018}]

Asset: Band 7

href: s3://sentinel-s2-l2a/tiles/52/N/BG/2022/11/11/0/R20m/B07.jp2
Title: Band 7
Media type: image/jp2
Roles: ['data']
Owner:
gsd: 20
eo:bands: [{'name': 'B07', 'center_wavelength': 0.7825, 'full_width_half_max': 0.028}]

Asset: Band 8 (nir)

href: s3://sentinel-s2-l2a/tiles/52/N/BG/2022/11/11/0/R10m/B08.jp2
Title: Band 8 (nir)
Media type: image/jp2
Roles: ['data']
Owner:
gsd: 10
eo:bands: [{'name': 'B08', 'common_name': 'nir', 'center_wavelength': 0.8351, 'full_width_half_max': 0.145}]

Asset: Band 8A

href: s3://sentinel-s2-l2a/tiles/52/N/BG/2022/11/11/0/R20m/B8A.jp2
Title: Band 8A
Media type: image/jp2
Roles: ['data']
Owner:
gsd: 20
eo:bands: [{'name': 'B8A', 'center_wavelength': 0.8648, 'full_width_half_max': 0.033}]

Asset: Band 9

href: s3://sentinel-s2-l2a/tiles/52/N/BG/2022/11/11/0/R60m/B09.jp2
Title: Band 9
Media type: image/jp2
Roles: ['data']
Owner:
gsd: 60
eo:bands: [{'name': 'B09', 'center_wavelength': 0.945, 'full_width_half_max': 0.026}]

Asset: Band 11 (swir16)

href: s3://sentinel-s2-l2a/tiles/52/N/BG/2022/11/11/0/R20m/B11.jp2
Title: Band 11 (swir16)
Media type: image/jp2
Roles: ['data']
Owner:
gsd: 20
eo:bands: [{'name': 'B11', 'common_name': 'swir16', 'center_wavelength': 1.6137, 'full_width_half_max': 0.143}]

Asset: Band 12 (swir22)

href: s3://sentinel-s2-l2a/tiles/52/N/BG/2022/11/11/0/R20m/B12.jp2
Title: Band 12 (swir22)
Media type: image/jp2
Roles: ['data']
Owner:
gsd: 20
eo:bands: [{'name': 'B12', 'common_name': 'swir22', 'center_wavelength': 2.22024, 'full_width_half_max': 0.242}]

Asset: Aerosol Optical Thickness (AOT)

href: s3://sentinel-s2-l2a/tiles/52/N/BG/2022/11/11/0/R60m/AOT.jp2
Title: Aerosol Optical Thickness (AOT)
Media type: image/jp2
Roles: ['data']
Owner:

Asset: Water Vapour (WVP)

href: s3://sentinel-s2-l2a/tiles/52/N/BG/2022/11/11/0/R10m/WVP.jp2
Title: Water Vapour (WVP)
Media type: image/jp2
Roles: ['data']
Owner:

Asset: Scene Classification Map (SCL)

href: s3://sentinel-s2-l2a/tiles/52/N/BG/2022/11/11/0/R20m/SCL.jp2
Title: Scene Classification Map (SCL)
Media type: image/jp2
Roles: ['data']
Owner:

Links

Link:

Rel: self
Target: https://earth-search.aws.element84.com/v0/collections/sentinel-s2-l2a/items/S2A_52NBG_20221111_0_L2A

Link:

Rel: canonical
Target: https://cirrus-v0-data-1qm7gekzjucbq.s3.us-west-2.amazonaws.com/sentinel-s2-l2a/52/N/BG/2022/11/S2A_52NBG_20221111_0_L2A/S2A_52NBG_20221111_0_L2A.json
Media Type: application/json

Link:

sentinel-s2-l2a-aws/workflow-publish-sentinel/tiles-52-N-BG-2022-11-11-0

Rel: via-cirrus
Target: https://cirrus-earth-search.aws.element84.com/v0/catid/sentinel-s2-l2a-aws/workflow-publish-sentinel/tiles-52-N-BG-2022-11-11-0

Link:

Rel: parent
Target: https://earth-search.aws.element84.com/v0/collections/sentinel-s2-l2a

Link:

Rel: collection
Target: https://earth-search.aws.element84.com/v0/collections/sentinel-s2-l2a

Link:

Earth Search

Rel: root
Target:
Media Type: application/json

Links

Link:

Earth Search

Rel: root
Target:
Media Type: application/json

Link:

Rel: self
Target: https://earth-search.aws.element84.com/v0
Media Type: application/json

Link:

Sentinel 2 L2A

Rel: child
Target:

Link:

Rel: child
Target: https://earth-search.aws.element84.com/v0/collections/sentinel-s2-l1c

Link:

Rel: child
Target: https://earth-search.aws.element84.com/v0/collections/sentinel-s2-l2a-cogs

Link:

Rel: child
Target: https://earth-search.aws.element84.com/v0/collections/landsat-8-l1-c1

Link:

Rel: service-desc
Target: https://earth-search.aws.element84.com/v0/api
Media Type: application/vnd.oai.openapi+json;version=3.0

Link:

Rel: conformance
Target: https://earth-search.aws.element84.com/v0/conformance
Media Type: application/json

Link:

Rel: children
Target: https://earth-search.aws.element84.com/v0/collections
Media Type: application/json

Link:

Rel: search
Target: https://earth-search.aws.element84.com/v0/search
Media Type: application/json

Link:

Rel: docs
Target: https://stac-utils.github.io/stac-server/

sentinel-s2-l2a-cogs の Collection の詳細を確認します。

In [3]:
collection = client.get_collection('sentinel-s2-l2a-cogs')
collection
Out[3]:

CollectionClient: sentinel-s2-l2a-cogs

ID: sentinel-s2-l2a-cogs
Title: Sentinel 2 L2A COGs
Description: Sentinel-2a and Sentinel-2b imagery, processed to Level 2A (Surface Reflectance) and converted to Cloud-Optimized GeoTIFFs
Providers:
  • ESA (producer)
  • Sinergise (processor)
  • AWS (host)
  • Element 84 (processor)
stac_extensions: ['item-assets']
title: Sentinel 2 L2A COGs
keywords: ['sentinel', 'earth observation', 'esa']
providers: [{'name': 'ESA', 'roles': ['producer'], 'url': 'https://earth.esa.int/web/guest/home'}, {'name': 'Sinergise', 'roles': ['processor'], 'url': 'https://registry.opendata.aws/sentinel-2/'}, {'name': 'AWS', 'roles': ['host'], 'url': 'http://sentinel-pds.s3-website.eu-central-1.amazonaws.com/'}, {'name': 'Element 84', 'roles': ['processor'], 'url': 'https://element84.com'}]
summaries: {'platform': ['sentinel-2a', 'sentinel-2b'], 'constellation': ['sentinel-2'], 'instruments': ['msi'], 'gsd': [10], 'view:off_nadir': [0]}
item_assets: {'thumbnail': {'title': 'Thumbnail', 'type': 'image/png', 'roles': ['thumbnail']}, 'overview': {'title': 'True color image', 'type': 'image/tiff; application=geotiff; profile=cloud-optimized', 'roles': ['overview'], 'gsd': 10, 'eo:bands': [{'name': 'B04', 'common_name': 'red', 'center_wavelength': 0.6645, 'full_width_half_max': 0.038}, {'name': 'B03', 'common_name': 'green', 'center_wavelength': 0.56, 'full_width_half_max': 0.045}, {'name': 'B02', 'common_name': 'blue', 'center_wavelength': 0.4966, 'full_width_half_max': 0.098}]}, 'info': {'title': 'Original JSON metadata', 'type': 'application/json', 'roles': ['metadata']}, 'metadata': {'title': 'Original XML metadata', 'type': 'application/xml', 'roles': ['metadata']}, 'visual': {'title': 'True color image', 'type': 'image/tiff; application=geotiff; profile=cloud-optimized', 'roles': ['overview'], 'gsd': 10, 'eo:bands': [{'name': 'B04', 'common_name': 'red', 'center_wavelength': 0.6645, 'full_width_half_max': 0.038}, {'name': 'B03', 'common_name': 'green', 'center_wavelength': 0.56, 'full_width_half_max': 0.045}, {'name': 'B02', 'common_name': 'blue', 'center_wavelength': 0.4966, 'full_width_half_max': 0.098}]}, 'B01': {'title': 'Band 1 (coastal)', 'type': 'image/tiff; application=geotiff; profile=cloud-optimized', 'roles': ['data'], 'gsd': 60, 'eo:bands': [{'name': 'B01', 'common_name': 'coastal', 'center_wavelength': 0.4439, 'full_width_half_max': 0.027}]}, 'B02': {'title': 'Band 2 (blue)', 'type': 'image/tiff; application=geotiff; profile=cloud-optimized', 'roles': ['data'], 'gsd': 10, 'eo:bands': [{'name': 'B02', 'common_name': 'blue', 'center_wavelength': 0.4966, 'full_width_half_max': 0.098}]}, 'B03': {'title': 'Band 3 (green)', 'type': 'image/tiff; application=geotiff; profile=cloud-optimized', 'roles': ['data'], 'gsd': 10, 'eo:bands': [{'name': 'B03', 'common_name': 'green', 'center_wavelength': 0.56, 'full_width_half_max': 0.045}]}, 'B04': {'title': 'Band 4 (red)', 'type': 'image/tiff; application=geotiff; profile=cloud-optimized', 'roles': ['data'], 'gsd': 10, 'eo:bands': [{'name': 'B04', 'common_name': 'red', 'center_wavelength': 0.6645, 'full_width_half_max': 0.038}]}, 'B05': {'title': 'Band 5', 'type': 'image/tiff; application=geotiff; profile=cloud-optimized', 'roles': ['data'], 'gsd': 20, 'eo:bands': [{'name': 'B05', 'center_wavelength': 0.7039, 'full_width_half_max': 0.019}]}, 'B06': {'title': 'Band 6', 'type': 'image/tiff; application=geotiff; profile=cloud-optimized', 'roles': ['data'], 'gsd': 20, 'eo:bands': [{'name': 'B06', 'center_wavelength': 0.7402, 'full_width_half_max': 0.018}]}, 'B07': {'title': 'Band 7', 'type': 'image/tiff; application=geotiff; profile=cloud-optimized', 'roles': ['data'], 'gsd': 20, 'eo:bands': [{'name': 'B07', 'center_wavelength': 0.7825, 'full_width_half_max': 0.028}]}, 'B08': {'title': 'Band 8 (nir)', 'type': 'image/tiff; application=geotiff; profile=cloud-optimized', 'roles': ['data'], 'gsd': 10, 'eo:bands': [{'name': 'B08', 'common_name': 'nir', 'center_wavelength': 0.8351, 'full_width_half_max': 0.145}]}, 'B8A': {'title': 'Band 8A', 'type': 'image/tiff; application=geotiff; profile=cloud-optimized', 'roles': ['data'], 'gsd': 20, 'eo:bands': [{'name': 'B8A', 'center_wavelength': 0.8648, 'full_width_half_max': 0.033}]}, 'B09': {'title': 'Band 9', 'type': 'image/tiff; application=geotiff; profile=cloud-optimized', 'roles': ['data'], 'gsd': 60, 'eo:bands': [{'name': 'B09', 'center_wavelength': 0.945, 'full_width_half_max': 0.026}]}, 'B11': {'title': 'Band 11 (swir16)', 'type': 'image/tiff; application=geotiff; profile=cloud-optimized', 'roles': ['data'], 'gsd': 20, 'eo:bands': [{'name': 'B11', 'common_name': 'swir16', 'center_wavelength': 1.6137, 'full_width_half_max': 0.143}]}, 'B12': {'title': 'Band 12 (swir22)', 'type': 'image/tiff; application=geotiff; profile=cloud-optimized', 'roles': ['data'], 'gsd': 20, 'eo:bands': [{'name': 'B12', 'common_name': 'swir22', 'center_wavelength': 2.22024, 'full_width_half_max': 0.242}]}, 'AOT': {'title': 'Aerosol Optical Thickness (AOT)', 'type': 'image/tiff; application=geotiff; profile=cloud-optimized', 'roles': ['data']}, 'WVP': {'title': 'Water Vapour (WVP)', 'type': 'image/tiff; application=geotiff; profile=cloud-optimized', 'roles': ['data']}, 'SCL': {'title': 'Scene Classification Map (SCL)', 'type': 'image/tiff; application=geotiff; profile=cloud-optimized', 'roles': ['data']}}

STAC Extensions

item-assets

Items

Only the first item shown

Item: S2A_52NBG_20221111_0_L2A

ID: S2A_52NBG_20221111_0_L2A
Bounding Box: [127.17958154875552, 1.7242077170687815, 127.2900178998256, 1.808998628897094]
Datetime: 2022-11-11 01:57:07+00:00
datetime: 2022-11-11T01:57:07Z
platform: sentinel-2a
constellation: sentinel-2
instruments: ['msi']
gsd: 10
view:off_nadir: 0
proj:epsg: 32652
sentinel:utm_zone: 52
sentinel:latitude_band: N
sentinel:grid_square: BG
sentinel:sequence: 0
sentinel:product_id: S2A_MSIL2A_20221111T015621_N0400_R117_T52NBG_20221111T042552
sentinel:data_coverage: 0.8
eo:cloud_cover: 99.71
sentinel:valid_cloud_cover: True
sentinel:processing_baseline: 04.00
sentinel:boa_offset_applied: True
created: 2022-11-11T05:48:15.553Z
updated: 2022-11-11T05:48:15.553Z
stac_extensions: ['eo', 'view', 'proj']

STAC Extensions

eo
view
proj

Assets

Asset: Thumbnail

href: https://roda.sentinel-hub.com/sentinel-s2-l1c/tiles/52/N/BG/2022/11/11/0/preview.jpg
Title: Thumbnail
Media type: image/png
Roles: ['thumbnail']
Owner:

Asset: True color image

href: https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/52/N/BG/2022/11/S2A_52NBG_20221111_0_L2A/L2A_PVI.tif
Title: True color image
Media type: image/tiff; application=geotiff; profile=cloud-optimized
Roles: ['overview']
Owner:
gsd: 10
eo:bands: [{'name': 'B04', 'common_name': 'red', 'center_wavelength': 0.6645, 'full_width_half_max': 0.038}, {'name': 'B03', 'common_name': 'green', 'center_wavelength': 0.56, 'full_width_half_max': 0.045}, {'name': 'B02', 'common_name': 'blue', 'center_wavelength': 0.4966, 'full_width_half_max': 0.098}]
proj:shape: [343, 343]
proj:transform: [320, 0, 199980, 0, -320, 200040, 0, 0, 1]

Asset: Original JSON metadata

href: https://roda.sentinel-hub.com/sentinel-s2-l2a/tiles/52/N/BG/2022/11/11/0/tileInfo.json
Title: Original JSON metadata
Media type: application/json
Roles: ['metadata']
Owner:

Asset: Original XML metadata

href: https://roda.sentinel-hub.com/sentinel-s2-l2a/tiles/52/N/BG/2022/11/11/0/metadata.xml
Title: Original XML metadata
Media type: application/xml
Roles: ['metadata']
Owner:

Asset: True color image

href: https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/52/N/BG/2022/11/S2A_52NBG_20221111_0_L2A/TCI.tif
Title: True color image
Media type: image/tiff; application=geotiff; profile=cloud-optimized
Roles: ['overview']
Owner:
gsd: 10
eo:bands: [{'name': 'B04', 'common_name': 'red', 'center_wavelength': 0.6645, 'full_width_half_max': 0.038}, {'name': 'B03', 'common_name': 'green', 'center_wavelength': 0.56, 'full_width_half_max': 0.045}, {'name': 'B02', 'common_name': 'blue', 'center_wavelength': 0.4966, 'full_width_half_max': 0.098}]
proj:shape: [10980, 10980]
proj:transform: [10, 0, 199980, 0, -10, 200040, 0, 0, 1]

Asset: Band 1 (coastal)

href: https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/52/N/BG/2022/11/S2A_52NBG_20221111_0_L2A/B01.tif
Title: Band 1 (coastal)
Media type: image/tiff; application=geotiff; profile=cloud-optimized
Roles: ['data']
Owner:
gsd: 60
eo:bands: [{'name': 'B01', 'common_name': 'coastal', 'center_wavelength': 0.4439, 'full_width_half_max': 0.027}]
proj:shape: [1830, 1830]
proj:transform: [60, 0, 199980, 0, -60, 200040, 0, 0, 1]

Asset: Band 2 (blue)

href: https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/52/N/BG/2022/11/S2A_52NBG_20221111_0_L2A/B02.tif
Title: Band 2 (blue)
Media type: image/tiff; application=geotiff; profile=cloud-optimized
Roles: ['data']
Owner:
gsd: 10
eo:bands: [{'name': 'B02', 'common_name': 'blue', 'center_wavelength': 0.4966, 'full_width_half_max': 0.098}]
proj:shape: [10980, 10980]
proj:transform: [10, 0, 199980, 0, -10, 200040, 0, 0, 1]

Asset: Band 3 (green)

href: https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/52/N/BG/2022/11/S2A_52NBG_20221111_0_L2A/B03.tif
Title: Band 3 (green)
Media type: image/tiff; application=geotiff; profile=cloud-optimized
Roles: ['data']
Owner:
gsd: 10
eo:bands: [{'name': 'B03', 'common_name': 'green', 'center_wavelength': 0.56, 'full_width_half_max': 0.045}]
proj:shape: [10980, 10980]
proj:transform: [10, 0, 199980, 0, -10, 200040, 0, 0, 1]

Asset: Band 4 (red)

href: https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/52/N/BG/2022/11/S2A_52NBG_20221111_0_L2A/B04.tif
Title: Band 4 (red)
Media type: image/tiff; application=geotiff; profile=cloud-optimized
Roles: ['data']
Owner:
gsd: 10
eo:bands: [{'name': 'B04', 'common_name': 'red', 'center_wavelength': 0.6645, 'full_width_half_max': 0.038}]
proj:shape: [10980, 10980]
proj:transform: [10, 0, 199980, 0, -10, 200040, 0, 0, 1]

Asset: Band 5

href: https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/52/N/BG/2022/11/S2A_52NBG_20221111_0_L2A/B05.tif
Title: Band 5
Media type: image/tiff; application=geotiff; profile=cloud-optimized
Roles: ['data']
Owner:
gsd: 20
eo:bands: [{'name': 'B05', 'center_wavelength': 0.7039, 'full_width_half_max': 0.019}]
proj:shape: [5490, 5490]
proj:transform: [20, 0, 199980, 0, -20, 200040, 0, 0, 1]

Asset: Band 6

href: https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/52/N/BG/2022/11/S2A_52NBG_20221111_0_L2A/B06.tif
Title: Band 6
Media type: image/tiff; application=geotiff; profile=cloud-optimized
Roles: ['data']
Owner:
gsd: 20
eo:bands: [{'name': 'B06', 'center_wavelength': 0.7402, 'full_width_half_max': 0.018}]
proj:shape: [5490, 5490]
proj:transform: [20, 0, 199980, 0, -20, 200040, 0, 0, 1]

Asset: Band 7

href: https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/52/N/BG/2022/11/S2A_52NBG_20221111_0_L2A/B07.tif
Title: Band 7
Media type: image/tiff; application=geotiff; profile=cloud-optimized
Roles: ['data']
Owner:
gsd: 20
eo:bands: [{'name': 'B07', 'center_wavelength': 0.7825, 'full_width_half_max': 0.028}]
proj:shape: [5490, 5490]
proj:transform: [20, 0, 199980, 0, -20, 200040, 0, 0, 1]

Asset: Band 8 (nir)

href: https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/52/N/BG/2022/11/S2A_52NBG_20221111_0_L2A/B08.tif
Title: Band 8 (nir)
Media type: image/tiff; application=geotiff; profile=cloud-optimized
Roles: ['data']
Owner:
gsd: 10
eo:bands: [{'name': 'B08', 'common_name': 'nir', 'center_wavelength': 0.8351, 'full_width_half_max': 0.145}]
proj:shape: [10980, 10980]
proj:transform: [10, 0, 199980, 0, -10, 200040, 0, 0, 1]

Asset: Band 8A

href: https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/52/N/BG/2022/11/S2A_52NBG_20221111_0_L2A/B8A.tif
Title: Band 8A
Media type: image/tiff; application=geotiff; profile=cloud-optimized
Roles: ['data']
Owner:
gsd: 20
eo:bands: [{'name': 'B8A', 'center_wavelength': 0.8648, 'full_width_half_max': 0.033}]
proj:shape: [5490, 5490]
proj:transform: [20, 0, 199980, 0, -20, 200040, 0, 0, 1]

Asset: Band 9

href: https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/52/N/BG/2022/11/S2A_52NBG_20221111_0_L2A/B09.tif
Title: Band 9
Media type: image/tiff; application=geotiff; profile=cloud-optimized
Roles: ['data']
Owner:
gsd: 60
eo:bands: [{'name': 'B09', 'center_wavelength': 0.945, 'full_width_half_max': 0.026}]
proj:shape: [1830, 1830]
proj:transform: [60, 0, 199980, 0, -60, 200040, 0, 0, 1]

Asset: Band 11 (swir16)

href: https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/52/N/BG/2022/11/S2A_52NBG_20221111_0_L2A/B11.tif
Title: Band 11 (swir16)
Media type: image/tiff; application=geotiff; profile=cloud-optimized
Roles: ['data']
Owner:
gsd: 20
eo:bands: [{'name': 'B11', 'common_name': 'swir16', 'center_wavelength': 1.6137, 'full_width_half_max': 0.143}]
proj:shape: [5490, 5490]
proj:transform: [20, 0, 199980, 0, -20, 200040, 0, 0, 1]

Asset: Band 12 (swir22)

href: https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/52/N/BG/2022/11/S2A_52NBG_20221111_0_L2A/B12.tif
Title: Band 12 (swir22)
Media type: image/tiff; application=geotiff; profile=cloud-optimized
Roles: ['data']
Owner:
gsd: 20
eo:bands: [{'name': 'B12', 'common_name': 'swir22', 'center_wavelength': 2.22024, 'full_width_half_max': 0.242}]
proj:shape: [5490, 5490]
proj:transform: [20, 0, 199980, 0, -20, 200040, 0, 0, 1]

Asset: Aerosol Optical Thickness (AOT)

href: https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/52/N/BG/2022/11/S2A_52NBG_20221111_0_L2A/AOT.tif
Title: Aerosol Optical Thickness (AOT)
Media type: image/tiff; application=geotiff; profile=cloud-optimized
Roles: ['data']
Owner:
proj:shape: [1830, 1830]
proj:transform: [60, 0, 199980, 0, -60, 200040, 0, 0, 1]

Asset: Water Vapour (WVP)

href: https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/52/N/BG/2022/11/S2A_52NBG_20221111_0_L2A/WVP.tif
Title: Water Vapour (WVP)
Media type: image/tiff; application=geotiff; profile=cloud-optimized
Roles: ['data']
Owner:
proj:shape: [10980, 10980]
proj:transform: [10, 0, 199980, 0, -10, 200040, 0, 0, 1]

Asset: Scene Classification Map (SCL)

href: https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/52/N/BG/2022/11/S2A_52NBG_20221111_0_L2A/SCL.tif
Title: Scene Classification Map (SCL)
Media type: image/tiff; application=geotiff; profile=cloud-optimized
Roles: ['data']
Owner:
proj:shape: [5490, 5490]
proj:transform: [20, 0, 199980, 0, -20, 200040, 0, 0, 1]

Links

Link:

Rel: self
Target: https://earth-search.aws.element84.com/v0/collections/sentinel-s2-l2a-cogs/items/S2A_52NBG_20221111_0_L2A

Link:

Rel: canonical
Target: https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/52/N/BG/2022/11/S2A_52NBG_20221111_0_L2A/S2A_52NBG_20221111_0_L2A.json
Media Type: application/json

Link:

sentinel-s2-l2a-aws/workflow-publish-sentinel/tiles-52-N-BG-2022-11-11-0

Rel: via-cirrus
Target: https://cirrus-earth-search.aws.element84.com/v0/catid/sentinel-s2-l2a-aws/workflow-publish-sentinel/tiles-52-N-BG-2022-11-11-0

Link:

Source STAC Item

Rel: derived_from
Target: https://cirrus-v0-data-1qm7gekzjucbq.s3.us-west-2.amazonaws.com/sentinel-s2-l2a/52/N/BG/2022/11/S2A_52NBG_20221111_0_L2A/S2A_52NBG_20221111_0_L2A.json
Media Type: application/json

Link:

sentinel-s2-l2a/workflow-cog-archive/S2A_52NBG_20221111_0_L2A

Rel: via-cirrus
Target: https://cirrus-earth-search.aws.element84.com/v0/catid/sentinel-s2-l2a/workflow-cog-archive/S2A_52NBG_20221111_0_L2A

Link:

Rel: parent
Target: https://earth-search.aws.element84.com/v0/collections/sentinel-s2-l2a-cogs

Link:

Rel: collection
Target: https://earth-search.aws.element84.com/v0/collections/sentinel-s2-l2a-cogs

Link:

Rel: root
Target: https://earth-search.aws.element84.com/v0/

Links

Link:

Rel: self
Target: https://earth-search.aws.element84.com/v0/collections/sentinel-s2-l2a-cogs

Link:

Rel: license
Target: https://sentinel.esa.int/documents/247904/690755/Sentinel_Data_Legal_Notice

Link:

Rel: about
Target: https://github.com/stac-utils/stac-sentinel

Link:

Rel: parent
Target: https://earth-search.aws.element84.com/v0/

Link:

Earth Search

Rel: root
Target:
Media Type: application/json

Link:

Rel: items
Target: https://earth-search.aws.element84.com/v0/collections/sentinel-s2-l2a-cogs/items

STAC API - Item Search を使って FOSS4G 2022 Japan の会場がある荒川区を含むデータを検索してみます。

sankichi92/shikuchoson-boundaries を使って荒川区(行政区域コード: 13118)の行政区域界の GeoJSON を取得します。

In [4]:
import requests

arakawaku = requests.get('https://shikuchoson-boundaries.sankichi.app/13118.geojson').json()
arakawaku['bbox']
Out[4]:
[139.74963749727272,
 35.724611000697166,
 139.81466119355935,
 35.754855171429085]

2022年10月に観測された荒川区を含む sentinel-s2-l2a-cogs のデータを検索します。

In [5]:
results = client.search(
    collections=collection,
    bbox=arakawaku['bbox'],
    datetime='2022-10-01/2022-10-31',
)
results.matched()
Out[5]:
6

6件のデータがヒットしました。

このうち、もっとも雲が少ない Item を確認します。
雲の割合は Electro-Optical Extension により、eo:cloud_cover で確認できます。

In [6]:
min_cloud_item = min(results.items(), key=lambda item: item.properties['eo:cloud_cover'])
min_cloud_item
Out[6]:

Item: S2A_54SUE_20221029_0_L2A

ID: S2A_54SUE_20221029_0_L2A
Bounding Box: [138.77761489199077, 35.135011161377925, 140.0097096778842, 36.14069288925992]
Datetime: 2022-10-29 01:37:25+00:00
datetime: 2022-10-29T01:37:25Z
platform: sentinel-2a
constellation: sentinel-2
instruments: ['msi']
gsd: 10
view:off_nadir: 0
proj:epsg: 32654
sentinel:utm_zone: 54
sentinel:latitude_band: S
sentinel:grid_square: UE
sentinel:sequence: 0
sentinel:product_id: S2A_MSIL2A_20221029T012751_N0400_R074_T54SUE_20221029T041453
sentinel:data_coverage: 100
eo:cloud_cover: 12.76
sentinel:valid_cloud_cover: True
sentinel:processing_baseline: 04.00
sentinel:boa_offset_applied: True
created: 2022-10-29T06:10:10.086Z
updated: 2022-10-29T06:10:10.086Z
stac_extensions: ['eo', 'view', 'proj']

STAC Extensions

eo
view
proj

Assets

Asset: Thumbnail

href: https://roda.sentinel-hub.com/sentinel-s2-l1c/tiles/54/S/UE/2022/10/29/0/preview.jpg
Title: Thumbnail
Media type: image/png
Roles: ['thumbnail']
Owner:

Asset: True color image

href: https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/54/S/UE/2022/10/S2A_54SUE_20221029_0_L2A/L2A_PVI.tif
Title: True color image
Media type: image/tiff; application=geotiff; profile=cloud-optimized
Roles: ['overview']
Owner:
gsd: 10
eo:bands: [{'name': 'B04', 'common_name': 'red', 'center_wavelength': 0.6645, 'full_width_half_max': 0.038}, {'name': 'B03', 'common_name': 'green', 'center_wavelength': 0.56, 'full_width_half_max': 0.045}, {'name': 'B02', 'common_name': 'blue', 'center_wavelength': 0.4966, 'full_width_half_max': 0.098}]
proj:shape: [343, 343]
proj:transform: [320, 0, 300000, 0, -320, 4000020, 0, 0, 1]

Asset: Original JSON metadata

href: https://roda.sentinel-hub.com/sentinel-s2-l2a/tiles/54/S/UE/2022/10/29/0/tileInfo.json
Title: Original JSON metadata
Media type: application/json
Roles: ['metadata']
Owner:

Asset: Original XML metadata

href: https://roda.sentinel-hub.com/sentinel-s2-l2a/tiles/54/S/UE/2022/10/29/0/metadata.xml
Title: Original XML metadata
Media type: application/xml
Roles: ['metadata']
Owner:

Asset: True color image

href: https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/54/S/UE/2022/10/S2A_54SUE_20221029_0_L2A/TCI.tif
Title: True color image
Media type: image/tiff; application=geotiff; profile=cloud-optimized
Roles: ['overview']
Owner:
gsd: 10
eo:bands: [{'name': 'B04', 'common_name': 'red', 'center_wavelength': 0.6645, 'full_width_half_max': 0.038}, {'name': 'B03', 'common_name': 'green', 'center_wavelength': 0.56, 'full_width_half_max': 0.045}, {'name': 'B02', 'common_name': 'blue', 'center_wavelength': 0.4966, 'full_width_half_max': 0.098}]
proj:shape: [10980, 10980]
proj:transform: [10, 0, 300000, 0, -10, 4000020, 0, 0, 1]

Asset: Band 1 (coastal)

href: https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/54/S/UE/2022/10/S2A_54SUE_20221029_0_L2A/B01.tif
Title: Band 1 (coastal)
Media type: image/tiff; application=geotiff; profile=cloud-optimized
Roles: ['data']
Owner:
gsd: 60
eo:bands: [{'name': 'B01', 'common_name': 'coastal', 'center_wavelength': 0.4439, 'full_width_half_max': 0.027}]
proj:shape: [1830, 1830]
proj:transform: [60, 0, 300000, 0, -60, 4000020, 0, 0, 1]

Asset: Band 2 (blue)

href: https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/54/S/UE/2022/10/S2A_54SUE_20221029_0_L2A/B02.tif
Title: Band 2 (blue)
Media type: image/tiff; application=geotiff; profile=cloud-optimized
Roles: ['data']
Owner:
gsd: 10
eo:bands: [{'name': 'B02', 'common_name': 'blue', 'center_wavelength': 0.4966, 'full_width_half_max': 0.098}]
proj:shape: [10980, 10980]
proj:transform: [10, 0, 300000, 0, -10, 4000020, 0, 0, 1]

Asset: Band 3 (green)

href: https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/54/S/UE/2022/10/S2A_54SUE_20221029_0_L2A/B03.tif
Title: Band 3 (green)
Media type: image/tiff; application=geotiff; profile=cloud-optimized
Roles: ['data']
Owner:
gsd: 10
eo:bands: [{'name': 'B03', 'common_name': 'green', 'center_wavelength': 0.56, 'full_width_half_max': 0.045}]
proj:shape: [10980, 10980]
proj:transform: [10, 0, 300000, 0, -10, 4000020, 0, 0, 1]

Asset: Band 4 (red)

href: https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/54/S/UE/2022/10/S2A_54SUE_20221029_0_L2A/B04.tif
Title: Band 4 (red)
Media type: image/tiff; application=geotiff; profile=cloud-optimized
Roles: ['data']
Owner:
gsd: 10
eo:bands: [{'name': 'B04', 'common_name': 'red', 'center_wavelength': 0.6645, 'full_width_half_max': 0.038}]
proj:shape: [10980, 10980]
proj:transform: [10, 0, 300000, 0, -10, 4000020, 0, 0, 1]

Asset: Band 5

href: https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/54/S/UE/2022/10/S2A_54SUE_20221029_0_L2A/B05.tif
Title: Band 5
Media type: image/tiff; application=geotiff; profile=cloud-optimized
Roles: ['data']
Owner:
gsd: 20
eo:bands: [{'name': 'B05', 'center_wavelength': 0.7039, 'full_width_half_max': 0.019}]
proj:shape: [5490, 5490]
proj:transform: [20, 0, 300000, 0, -20, 4000020, 0, 0, 1]

Asset: Band 6

href: https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/54/S/UE/2022/10/S2A_54SUE_20221029_0_L2A/B06.tif
Title: Band 6
Media type: image/tiff; application=geotiff; profile=cloud-optimized
Roles: ['data']
Owner:
gsd: 20
eo:bands: [{'name': 'B06', 'center_wavelength': 0.7402, 'full_width_half_max': 0.018}]
proj:shape: [5490, 5490]
proj:transform: [20, 0, 300000, 0, -20, 4000020, 0, 0, 1]

Asset: Band 7

href: https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/54/S/UE/2022/10/S2A_54SUE_20221029_0_L2A/B07.tif
Title: Band 7
Media type: image/tiff; application=geotiff; profile=cloud-optimized
Roles: ['data']
Owner:
gsd: 20
eo:bands: [{'name': 'B07', 'center_wavelength': 0.7825, 'full_width_half_max': 0.028}]
proj:shape: [5490, 5490]
proj:transform: [20, 0, 300000, 0, -20, 4000020, 0, 0, 1]

Asset: Band 8 (nir)

href: https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/54/S/UE/2022/10/S2A_54SUE_20221029_0_L2A/B08.tif
Title: Band 8 (nir)
Media type: image/tiff; application=geotiff; profile=cloud-optimized
Roles: ['data']
Owner:
gsd: 10
eo:bands: [{'name': 'B08', 'common_name': 'nir', 'center_wavelength': 0.8351, 'full_width_half_max': 0.145}]
proj:shape: [10980, 10980]
proj:transform: [10, 0, 300000, 0, -10, 4000020, 0, 0, 1]

Asset: Band 8A

href: https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/54/S/UE/2022/10/S2A_54SUE_20221029_0_L2A/B8A.tif
Title: Band 8A
Media type: image/tiff; application=geotiff; profile=cloud-optimized
Roles: ['data']
Owner:
gsd: 20
eo:bands: [{'name': 'B8A', 'center_wavelength': 0.8648, 'full_width_half_max': 0.033}]
proj:shape: [5490, 5490]
proj:transform: [20, 0, 300000, 0, -20, 4000020, 0, 0, 1]

Asset: Band 9

href: https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/54/S/UE/2022/10/S2A_54SUE_20221029_0_L2A/B09.tif
Title: Band 9
Media type: image/tiff; application=geotiff; profile=cloud-optimized
Roles: ['data']
Owner:
gsd: 60
eo:bands: [{'name': 'B09', 'center_wavelength': 0.945, 'full_width_half_max': 0.026}]
proj:shape: [1830, 1830]
proj:transform: [60, 0, 300000, 0, -60, 4000020, 0, 0, 1]

Asset: Band 11 (swir16)

href: https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/54/S/UE/2022/10/S2A_54SUE_20221029_0_L2A/B11.tif
Title: Band 11 (swir16)
Media type: image/tiff; application=geotiff; profile=cloud-optimized
Roles: ['data']
Owner:
gsd: 20
eo:bands: [{'name': 'B11', 'common_name': 'swir16', 'center_wavelength': 1.6137, 'full_width_half_max': 0.143}]
proj:shape: [5490, 5490]
proj:transform: [20, 0, 300000, 0, -20, 4000020, 0, 0, 1]

Asset: Band 12 (swir22)

href: https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/54/S/UE/2022/10/S2A_54SUE_20221029_0_L2A/B12.tif
Title: Band 12 (swir22)
Media type: image/tiff; application=geotiff; profile=cloud-optimized
Roles: ['data']
Owner:
gsd: 20
eo:bands: [{'name': 'B12', 'common_name': 'swir22', 'center_wavelength': 2.22024, 'full_width_half_max': 0.242}]
proj:shape: [5490, 5490]
proj:transform: [20, 0, 300000, 0, -20, 4000020, 0, 0, 1]

Asset: Aerosol Optical Thickness (AOT)

href: https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/54/S/UE/2022/10/S2A_54SUE_20221029_0_L2A/AOT.tif
Title: Aerosol Optical Thickness (AOT)
Media type: image/tiff; application=geotiff; profile=cloud-optimized
Roles: ['data']
Owner:
proj:shape: [1830, 1830]
proj:transform: [60, 0, 300000, 0, -60, 4000020, 0, 0, 1]

Asset: Water Vapour (WVP)

href: https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/54/S/UE/2022/10/S2A_54SUE_20221029_0_L2A/WVP.tif
Title: Water Vapour (WVP)
Media type: image/tiff; application=geotiff; profile=cloud-optimized
Roles: ['data']
Owner:
proj:shape: [10980, 10980]
proj:transform: [10, 0, 300000, 0, -10, 4000020, 0, 0, 1]

Asset: Scene Classification Map (SCL)

href: https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/54/S/UE/2022/10/S2A_54SUE_20221029_0_L2A/SCL.tif
Title: Scene Classification Map (SCL)
Media type: image/tiff; application=geotiff; profile=cloud-optimized
Roles: ['data']
Owner:
proj:shape: [5490, 5490]
proj:transform: [20, 0, 300000, 0, -20, 4000020, 0, 0, 1]

Links

Link:

Rel: self
Target: https://earth-search.aws.element84.com/v0/collections/sentinel-s2-l2a-cogs/items/S2A_54SUE_20221029_0_L2A

Link:

Rel: canonical
Target: https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/54/S/UE/2022/10/S2A_54SUE_20221029_0_L2A/S2A_54SUE_20221029_0_L2A.json
Media Type: application/json

Link:

sentinel-s2-l2a-aws/workflow-publish-sentinel/tiles-54-S-UE-2022-10-29-0

Rel: via-cirrus
Target: https://cirrus-earth-search.aws.element84.com/v0/catid/sentinel-s2-l2a-aws/workflow-publish-sentinel/tiles-54-S-UE-2022-10-29-0

Link:

Source STAC Item

Rel: derived_from
Target: https://cirrus-v0-data-1qm7gekzjucbq.s3.us-west-2.amazonaws.com/sentinel-s2-l2a/54/S/UE/2022/10/S2A_54SUE_20221029_0_L2A/S2A_54SUE_20221029_0_L2A.json
Media Type: application/json

Link:

sentinel-s2-l2a/workflow-cog-archive/S2A_54SUE_20221029_0_L2A

Rel: via-cirrus
Target: https://cirrus-earth-search.aws.element84.com/v0/catid/sentinel-s2-l2a/workflow-cog-archive/S2A_54SUE_20221029_0_L2A

Link:

Rel: parent
Target: https://earth-search.aws.element84.com/v0/collections/sentinel-s2-l2a-cogs

Link:

Rel: collection
Target: https://earth-search.aws.element84.com/v0/collections/sentinel-s2-l2a-cogs

Link:

Earth Search

Rel: root
Target:
Media Type: application/json

Assets よりサムネイルを表示してみます。

In [7]:
from IPython.display import Image

Image(url=min_cloud_item.assets["thumbnail"].href)
Out[7]:

以上、STAC API - Item Search による地球観測衛星データの簡単な検索でした。

もっと複雑な検索も可能で、詳細は各ドキュメントを参照してください。

  • STAC API - Item Search Specification
  • PySTAC Client

また、ここでは検索までしか紹介しませんが、検索で得られたデータを使って様々なことができます。
より高度な利用方法については https://stacindex.org/learn のチュートリアルなどを参照してみてください。