Skip to content

Commit

Permalink
fix BRDF fallback lookup failure
Browse files Browse the repository at this point in the history
  • Loading branch information
uchchwhash committed Sep 19, 2023
1 parent 0431e9f commit 036ab6a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion wagl/brdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -643,8 +643,10 @@ def get_tally2(mode, dt):
mode, brdf_config, brdf_datasets, viirs_datasets, dt, src_poly, src_crs
)

if any(result[ds].is_empty() for ds in result):
# for fallback, it is OK to find no BRDF
if mode != "fallback" and any(result[ds].is_empty() for ds in result):
raise IndexError

return result

def back_in_time(from_dt):
Expand Down

0 comments on commit 036ab6a

Please sign in to comment.