Skip to content

Stactool fails on some products in Sentinel-2-L2a bucket #197

@mark-boer

Description

@mark-boer

There are some products, where the stactools fails, because of incompatible metadata.xml.

Example product: s3://sentinel-s2-l2a/tiles/31/U/GT/2017/5/13/0/

The issue seems to be the TILE_ID, which is not present in some products

s3://sentinel-s2-l2a/tiles/31/U/GT/2017/5/13/0/metadata.xml

  <n1:General_Info>
    <TILE_ID_2A metadataLevel="Brief">S2A_USER_MSI_L2A_TL_SGS__20170513T142607_A009872_T31UGT_N02.05</TILE_ID_2A>
    <DATASTRIP_ID_2A metadataLevel="Standard">S2A_USER_MSI_L2A_DS_SGS__20170513T142607_S20170513T104249_N02.05</DATASTRIP_ID_2A>

   ....
  </n1:General_Info>

s3://sentinel-s2-l2a/tiles/31/U/GT/2017/3/1/0/metadata.xml

<n1:General_Info>
    <L1C_TILE_ID metadataLevel="Brief">S2A_OPER_MSI_L1C_TL_SGS__20170301T173059_A008828_T31UGT_N02.04</L1C_TILE_ID>
    <TILE_ID metadataLevel="Brief">S2A_OPER_MSI_L2A_TL_SHIT_20190507T114240_A008828_T31UGT_N00.01</TILE_ID>
    <DATASTRIP_ID metadataLevel="Standard">S2A_OPER_MSI_L2A_DS_SHIT_20190507T114240_S20170301T103326_N00.01</DATASTRIP_ID>

   ....
</n1:General_Info>

Potential solution: fall back to TILE_ID_2A as a tile id for the sentinel 2 l2a products...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions