Describe the bug
The creation of a scene for data from OLCI fails once the number of files provided via the filenames argument exceeds 3000. The error thrown is RecursionError: maximum recursion depth exceeded. This suggests that the files are read in by an iterative approach internally and not sequentially. This seems a rather unnecessary limitation of the number of files that can be read because an iterative solution could be easily avoided.
To Reproduce
from datetime import datetime
from satpy import Scene, find_files_and_readers
files = find_files_and_readers(sensor='olci',
start_time=datetime(2025, 11, 11, 0, 10),
end_time=datetime(2025, 11, 11, 20, 0),
base_dir='/path/to/data',
reader='olci_l1b')
print(len(files['olci_l1b']))
scn = Scene(filenames=files)
Environment Info:
- OS: Linux
- Satpy Version: 0.59.0