Reccurent error message with Sentinel data download

Hi all,

I have been downloading Sentinel imagery for a project for a few months now, and recently started getting this error message, which I am not sure how to approach. Nothing has changed in my code, so I suppose there might have been some update making my code obsolete ? If anyone has been getting a similar issue and found a solution … ?

thanks ! :slight_smile:

KeyError                                  Traceback (most recent call last)
/tmp/ipykernel_150/2048968311.py in <module>
     40 
     41     # Load landsat
---> 42     dsp = load_ard(
     43         dc=dc,
     44         products=products,

~/Tools/dea_tools/datahandling.py in load_ard(dc, products, min_gooddata, fmask_categories, s2cloudless_categories, mask_pixel_quality, mask_filters, mask_contiguity, ls7_slc_off, predicate, dtype, **kwargs)
    431     # Note we always load using dask here so that we can lazy load data
    432     # before filtering by `min_gooddata`
--> 433     ds = dc.load(
    434         datasets=dataset_list,
    435         measurements=measurements,

/env/lib/python3.8/site-packages/datacube/api/core.py in load(self, product, measurements, output_crs, resolution, resampling, skip_broken_datasets, dask_chunks, like, fuse_func, align, datasets, dataset_predicate, progress_cbk, **query)
    421         grouped = self.group_datasets(datasets, group_by)
    422 
--> 423         measurement_dicts = datacube_product.lookup_measurements(measurements)
    424 
    425         # `extra_dims` put last for backwards compability, but should really be the second position

/env/lib/python3.8/site-packages/datacube/model/__init__.py in lookup_measurements(self, measurements)
    603 
    604         mm = self._resolve_aliases()
--> 605         return OrderedDict((m, mm[m]) for m in measurements)
    606 
    607     def _extract_load_hints(self) -> Optional[Dict[str, Any]]:

/env/lib/python3.8/site-packages/datacube/model/__init__.py in <genexpr>(.0)
    603 
    604         mm = self._resolve_aliases()
--> 605         return OrderedDict((m, mm[m]) for m in measurements)
    606 
    607     def _extract_load_hints(self) -> Optional[Dict[str, Any]]:

KeyError: 'oa_fmask'

Hi, I think you might be in the wrong forum! This forum is for questions about using Jupyter, but it looks like you’re dealing with something in datacube, which folks here may not be familiar with, so you might not be likely to get a useful answer. You might be better off finding a place for questions about datacube and related packages, rather than Jupyter.

Thank you so much Minkr ! I’ll try that :blush: