SAR-ARD / s1ard

Sentinel-1 ARD Prototype Processor
MIT License
23 stars 6 forks source link

How to check whether all ARD products exist? #189

Open johntruckenbrodt opened 2 months ago

johntruckenbrodt commented 2 months ago

For ARD generation, the processor.py script executes the following main steps:

Inside ard.format, the function ard.get_datasets is called, which collects all relevant processed files and performs a check whether the part of the file overlapping with the MGRS tile contains any valid data. If it doesn't, the processed product is ignored and its files not returned by the function (because they are not relevant for creating the current ARD product).
As important as this is, it leads to the situation that the full list of ARD files that should exist can only be known if all processed SAR products exist. it would be good to know whether all ARD products exist from the source scene selection alone. Otherwise some scenes whose processing output had already been deleted are re-processed because the processor thinks some tiles are missing.
I currently see two options: