Skip to content

Commit

Permalink
bugfix for AHI reading, so that it will now correctly ignore a timest…
Browse files Browse the repository at this point in the history
…ep with no files
  • Loading branch information
aronnem committed Aug 8, 2021
1 parent bcfc5b0 commit 00cf2b9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion satpy_overlay_plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,10 @@ def get_loc_AHI_files(datetime_utc, data_home, offsets, bands_list):
'_B{0:02d}_FLDK_R??_S????.DAT'.format(band)))
files_at_offset = glob.glob(glob_str)
files_at_offset.sort()
files[band].append(files_at_offset)
# if data is missing at this time offset, the files_at_offset list
# will be empty. In that case, don't add to the list.
if len(files_at_offset) > 0:
files[band].append(files_at_offset)

return files

Expand Down

0 comments on commit 00cf2b9

Please sign in to comment.