Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
aeri_quality_control
Manage
Activity
Members
Labels
Plan
Issues
9
Issue boards
Milestones
Wiki
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
aeri
aeri_quality_control
Commits
b7134e3b
Commit
b7134e3b
authored
8 years ago
by
Alex Diebold
Browse files
Options
Downloads
Patches
Plain Diff
Added more documentation
parent
38012dda
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
testing/correlation_test.py
+5
-0
5 additions, 0 deletions
testing/correlation_test.py
with
5 additions
and
0 deletions
testing/correlation_test.py
+
5
−
0
View file @
b7134e3b
...
...
@@ -14,17 +14,21 @@ def main(path):
dmv
=
radiance
.
get_radiance_from_rnc
(
path
)
hk
=
housekeeping
.
get_all_housekeeping
(
path
)
#only use dmv data from scene H
data
=
pd
.
DataFrame
(
index
=
hk
.
index
,
columns
=
(
'
dmv
'
,
'
hk
'
))
data
[
'
dmv
'
]
=
dmv
.
xs
(
str
.
encode
(
'
H
'
),
level
=
'
scene
'
).
mean
(
axis
=
1
)
data
[
'
hk
'
]
=
hk
[
'
SCEtemp
'
]
#get rid of hk rows where scene isn't H
data
.
dropna
(
inplace
=
True
)
try
:
#subtract the rolling average
for
x
in
data
.
columns
:
tmp
=
scipy
.
signal
.
savgol_filter
(
data
[
x
].
values
[:],
201
,
3
)
data
[
x
]
=
data
[
x
]
-
tmp
#correlate the data
correlation
=
np
.
correlate
(
data
[
'
dmv
'
].
values
[:],
data
[
'
hk
'
].
values
[:],
mode
=
'
same
'
)
print
(
'
max =
'
,
np
.
amax
(
correlation
),
'
: min =
'
,
np
.
amin
(
correlation
))
...
...
@@ -44,6 +48,7 @@ def main(path):
plt
.
savefig
(
name
)
plt
.
clf
()
#probably the scipy.signal.savgol_filter failing
except
:
print
(
'
FAIL
'
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment