Skip to content

Commit

Permalink
nodb.watershed area_gt30 and ruggednesss properties for debris flow
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerlew committed May 18, 2021
1 parent a6c63ee commit 3685feb
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions wepppy/nodb/watershed.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,20 @@ def greater300_n(self) -> int:

return sum(sub.length > 300 for sub in self._subs_summary.values())

@property
def area_gt30(self):
if self.delineation_backend_is_topaz:
return Topaz.getInstance(self.wd).area_gt30
else:
return self._area_gt30

@property
def ruggedness(self):
if self.delineation_backend_is_topaz:
return Topaz.getInstance(self.wd).ruggedness
else:
return self._ruggedness

@property
def impoundment_n(self) -> int:
return self._impoundment_n
Expand Down

0 comments on commit 3685feb

Please sign in to comment.