Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Daniel Scheffler
geoarray
Commits
3346f312
Commit
3346f312
authored
Sep 11, 2018
by
Daniel Scheffler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed GeoArray.show_histogram() (issue
#17
).
parent
05640d94
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
geoarray/baseclasses.py
geoarray/baseclasses.py
+2
-2
No files found.
geoarray/baseclasses.py
View file @
3346f312
...
...
@@ -1333,10 +1333,10 @@ class GeoArray(object):
"""
if
self
.
nodata
is
not
None
and
exclude_nodata
:
data
=
np
.
ma
.
masked_equal
(
self
[
band
],
self
.
nodata
)
data
=
np
.
ma
.
masked_equal
(
self
[
band
]
if
not
self
.
bands
==
1
else
self
[:]
,
self
.
nodata
)
data
=
data
.
compressed
()
else
:
data
=
self
[
band
]
data
=
self
[
band
]
if
not
self
.
bands
==
1
else
self
[:]
vmin
=
vmin
if
vmin
is
not
None
else
np
.
nanpercentile
(
data
,
1
)
vmax
=
vmax
if
vmax
is
not
None
else
np
.
nanpercentile
(
data
,
99
)
...
...
Write
Preview
Markdown
is supported
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