Skip to content
Snippets Groups Projects
Commit c81521e1 authored by tomrink's avatar tomrink
Browse files

improve get_bounding_goes16_files

parent 96ce16a2
No related branches found
No related tags found
No related merge requests found
......@@ -697,9 +697,11 @@ def get_interpolated_scalar(ds_0, ds_1, time0, time1, fld_name, time, lons, lats
path_to_reader_dict = {}
MAX_FILES_OPEN = 50
def get_reader(path):
if len(path_to_reader_dict) > 50:
if len(path_to_reader_dict) > MAX_FILES_OPEN:
path_to_reader_dict.clear()
rdr = path_to_reader_dict.get(path)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment