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
Paruch Group
Hystorian
Commits
ccbce8ad
Commit
ccbce8ad
authored
Jun 07, 2021
by
Christian Weymann
Browse files
Add topography analysis
parent
be105eb3
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
DomainStatsWorkflow.ipynb
View file @
ccbce8ad
This diff is collapsed.
Click to expand it.
hystorian/processing/twodim.py
View file @
ccbce8ad
...
...
@@ -100,6 +100,19 @@ def plane_flatten_image(data, order=1, box=[]):
m
=
polyfit2d
(
xxfit
.
ravel
(),
yyfit
.
ravel
(),
fitdata
.
ravel
(),
order
=
order
)
return
data
-
polyval2d
(
xx
,
yy
,
m
)
def
line_median_align
(
data
,
axis
=
0
):
if
axis
==
1
:
data
=
data
.
T
ndata
=
np
.
zeros_like
(
data
)
for
i
,
line
in
enumerate
(
data
):
ndata
[
i
,
:]
=
line
-
np
.
median
(
line
)
if
axis
==
1
:
ndata
=
ndata
.
T
return
ndata
def
polyfit2d
(
x
,
y
,
z
,
order
=
1
):
"""
...
...
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