Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Roelofsen, Hans
benb_utils
Commits
d2313dc0
Commit
d2313dc0
authored
May 31, 2021
by
Roelofsen, Hans
Browse files
Merge branch 'wieger' into 'master'
draagrkacht WW in aparte file See merge request
!5
parents
6df3388e
e8d911a7
Changes
2
Hide whitespace changes
Inline
Side-by-side
benb.py
View file @
d2313dc0
...
...
@@ -129,21 +129,6 @@ def pnt2square_id(east_north, size, of="full"):
raise
def
draagkracht_ww
(
frequentie
,
trouw
,
th
):
"""
Draagkracht formule volgens Wieger Wamelink. Zie MS Teams discussie 16-07-2020 MNP2020/Fase 7 Objectivering Draagk..
:param frequentie: gemiddelde frequentie van soort X binnen beheertype Y
:param trouw: gemiddelde trouw van soort X binnen beheertype Y
:param th: minumum draagkracht value
:return: draagkracht soort X - beheertype Y combinatie, gemaximaliseerd tot 1.
"""
dk
=
np
.
min
([
np
.
multiply
(
np
.
divide
(
np
.
max
([
frequentie
,
trouw
]),
100
),
5
),
1
])
if
dk
>=
th
:
return
dk
else
:
return
np
.
nan
def
gen_squares
(
x_ul
,
y_ul
,
nrow
,
ncol
,
size
):
"""
Generate geodataframe with square polygons
...
...
draagkracht_ww.py
0 → 100644
View file @
d2313dc0
import
numpy
as
np
def
draagkracht_ww
(
frequentie
,
trouw
,
th
,
tuning
):
"""
Draagkracht formule volgens Wieger Wamelink. Zie MS Teams discussie 16-07-2020 MNP2020/Fase 7 Objectivering Draagk..
:param frequentie: gemiddelde frequentie van soort X binnen beheertype Y
:param trouw: gemiddelde trouw van soort X binnen beheertype Y
:param th: minumum draagkracht value
:param tuning: subjective tuning factor for achieving best results
:return: draagkracht soort X - beheertype Y combinatie, gemaximaliseerd tot 1.
"""
dk
=
np
.
min
([
np
.
multiply
(
np
.
divide
(
np
.
max
([
frequentie
,
trouw
]),
100
),
tuning
),
1
])
if
dk
>=
th
:
return
dk
else
:
return
np
.
nan
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment