From e63de68bf9aa90476ffd89a27198f68e8349625a Mon Sep 17 00:00:00 2001 From: Julie Date: Sat, 1 Oct 2022 14:03:01 -0400 Subject: [PATCH] Add to documentation that this is the section to deal (i.e., skip) long events --- src/analyse_event.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/analyse_event.py b/src/analyse_event.py index 7203c9b..c829d2a 100644 --- a/src/analyse_event.py +++ b/src/analyse_event.py @@ -245,6 +245,9 @@ def analyse_event(ifeatures=None,tmpdir='/tmp/',bbox_buffer=0.5,dates_buffer=[5. feature['properties']['flood_cause'], )) + # -------------------- + # Make sure event is not super long (> 90. days) which would take a very long time to process + # -------------------- if not(feature['properties']['end_date'] is None): length_event = (end_date-start_date).days+(end_date-start_date).seconds/60./60./24. if (length_event > 90.):