As described in the title. The related code:
|
fnames_all = os.listdir(processed_path) |
|
fnames_all = list(filter(lambda fname: os.path.isdir(join(processed_path, fname)), fnames_all)) |
|
if len(fnames_all) == 0: |
|
fnames_all = os.listdir(processed_path) |
|
fnames_all = list(filter(lambda fname: fname.endswith('zip'), fnames_all)) |
|
tile_ids = list(set(map(lambda fname: re.search("T[0-9]{2}[A-Z]{3}", fname).group(0), fnames_all))) |
Thoughts:
- List all zip files and unzipped folders
- Compare their names
- If they are identical, pass
- If they are not identical, get the difference between them, give the user a warning, then pick up the ones with more files to use.
As described in the title. The related code:
sentinelPot/sentinelPot/preprocess_level3.py
Lines 694 to 699 in d838cd2
Thoughts: