AMA-Labs / cal-notebooks

CEOS Analytics Laboratory notebooks and tools
0 stars 1 forks source link

"No such band: SCL" for Sentinel-2 #1

Open jdh-ama opened 10 months ago

jdh-ama commented 10 months ago

Impacts all Sentinel-2 example notebooks.

Stack trace excerpt from EAIL_Water_WOFS_S2.ipynb

File /env/lib/python3.10/site-packages/datacube/storage/_base.py:95, in __init__()
     92 mm = ds.measurements.get(mp.canonical_name)
     94 if mm is None:
---> 95     raise ValueError('No such band: {}'.format(band))
     97 if ds.uris is None:
     98     raise ValueError('No uris defined on a dataset')

ValueError: No such band: SCL

This appears to be a data issue given that the exception occurs in Datacube core code and doesn't impact any other product.

JonDHo commented 6 months ago

The Sentinel-2 product definition (s2_l2a) has been updated to fix this issue. Please re-test, but it should be fine to close this.