Skip to content

Commit

Permalink
Add to documentation that this is the section to deal (i.e., skip) lo…
Browse files Browse the repository at this point in the history
…ng events
  • Loading branch information
julemai committed Oct 1, 2022
1 parent 9503109 commit e63de68
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/analyse_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.):
Expand Down

0 comments on commit e63de68

Please sign in to comment.