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
4b9f1130
Commit
4b9f1130
authored
Jan 12, 2022
by
Biersteker, Levi
Browse files
Added sovon support
parent
6499858e
Changes
1
Hide whitespace changes
Inline
Side-by-side
mnp_hokaggregation.py
View file @
4b9f1130
...
...
@@ -39,7 +39,14 @@ def mnp_hokaggregation(hok_csv, hokken_polygon_path, background_raster_path, out
counts
.
columns
=
colnames
counthokken
=
pd
.
merge
(
hokken
,
counts
,
on
=
"ID"
)
if
"COUNT_KEY_VALUE"
in
colnames
:
if
"MEAN"
in
colnames
:
bounds
=
np
.
round
(
np
.
arange
(
1
,
counts
.
MEAN
.
max
(),
counts
.
MEAN
.
max
()
/
6
),
1
)
explabel
=
"_"
valuecolumn
=
"MEAN"
extend
=
"max"
ylabel_text
=
"Number of observations in SOVON"
elif
"COUNT_KEY_VALUE"
in
colnames
:
bounds
=
np
.
array
([
1
,
10
,
100
,
1000
,
10000
,
40000
])
explabel
=
"_"
valuecolumn
=
"COUNT_KEY_VALUE"
...
...
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