Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
aeri_quality_control
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
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
056f7f16
There was a problem fetching the pipeline metadata.
Commit
056f7f16
authored
8 years ago
by
Coda Phillips
Browse files
Options
Downloads
Patches
Plain Diff
Add radiometric checks and start filtering again
parent
c9fc42d6
No related branches found
No related tags found
No related merge requests found
Pipeline
#
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
radiometric_checks.py
+20
-0
20 additions, 0 deletions
radiometric_checks.py
util.py
+1
-1
1 addition, 1 deletion
util.py
with
21 additions
and
1 deletion
radiometric_checks.py
+
20
−
0
View file @
056f7f16
from
util
import
BaseCheckList
,
annotate_all
,
_compute_robust_zscore
,
invalidate_records
,
update_variable_qc
from
util
import
BaseCheckList
,
annotate_all
,
_compute_robust_zscore
,
invalidate_records
,
update_variable_qc
import
pandas
as
pd
import
pandas
as
pd
import
numpy
as
np
import
numpy
as
np
import
scipy.stats
def
imaginary_radiance_check
(
frame
,
parameters
):
def
imaginary_radiance_check
(
frame
,
parameters
):
if
'
skyViewImaginaryRadiance2510_2515
'
not
in
frame
.
columns
:
if
'
skyViewImaginaryRadiance2510_2515
'
not
in
frame
.
columns
:
...
@@ -14,6 +15,25 @@ def imaginary_radiance_check(frame, parameters):
...
@@ -14,6 +15,25 @@ def imaginary_radiance_check(frame, parameters):
def
hbb_radiance_check
(
frame
,
parameters
):
def
hbb_radiance_check
(
frame
,
parameters
):
# Std dev, nen, lw, sw
# Std dev, nen, lw, sw
if
not
np
.
in1d
([
'
HBBviewStdDevRadiance985_990
'
,
'
LW_HBB_NEN
'
,
'
SW_HBB_NEN
'
],
frame
.
columns
).
all
():
return
frame
hbb_std_dist
=
scipy
.
stats
.
chi2
.
fit
(
frame
.
HBBviewStdDevRadiance985_990
)
_
,
hbb_std_dist_hi
=
scipy
.
stats
.
chi2
.
interval
(.
995
,
*
hbb_std_dist
)
hbb_std_dist_problem
=
frame
.
HBBviewStdDevRadiance985_990
>
hbb_std_dist_hi
lw_hbb_nen_dist
=
scipy
.
stats
.
chi2
.
fit
(
frame
.
LW_HBB_NEN
)
_
,
lw_hbb_nen_hi
=
scipy
.
stats
.
chi2
.
interval
(.
995
,
*
lw_hbb_nen_dist
)
lw_hbb_nen_problem
=
frame
.
LW_HBB_NEN
>
lw_hbb_nen_hi
sw_hbb_nen_dist
=
scipy
.
stats
.
chi2
.
fit
(
frame
.
SW_HBB_NEN
)
_
,
sw_hbb_nen_hi
=
scipy
.
stats
.
chi2
.
interval
(.
995
,
*
sw_hbb_nen_dist
)
sw_hbb_nen_problem
=
frame
.
SW_HBB_NEN
>
sw_hbb_nen_hi
frame
[
'
hbb_radiance_check
'
]
=
(
hbb_std_dist_problem
|
lw_hbb_nen_problem
|
sw_hbb_nen_problem
)
*
1
annotate_all
(
frame
,
hbb_std_dist_problem
,
'
HBB radiance Std.Dev. too high
'
)
annotate_all
(
frame
,
lw_hbb_nen_problem
,
'
LW HBB NEN too high
'
)
annotate_all
(
frame
,
sw_hbb_nen_problem
,
'
SW HBB NEN too high
'
)
frame
=
invalidate_records
(
frame
,
'
hbb_radiance_check
'
)
return
frame
return
frame
def
responsivity_check
(
frame
,
parameters
):
def
responsivity_check
(
frame
,
parameters
):
...
...
This diff is collapsed.
Click to expand it.
util.py
+
1
−
1
View file @
056f7f16
...
@@ -103,7 +103,7 @@ class BaseCheckList:
...
@@ -103,7 +103,7 @@ class BaseCheckList:
def
compute
(
self
,
frame
):
def
compute
(
self
,
frame
):
# Filter bad records from previous level
# Filter bad records from previous level
filtered_frame
=
frame
.
copy
()
#.
ix[frame.qc_percent < 1].copy()
filtered_frame
=
frame
.
ix
[
frame
.
qc_percent
<
1
].
copy
()
for
check
in
self
.
checks
:
for
check
in
self
.
checks
:
original_shape
=
filtered_frame
.
shape
original_shape
=
filtered_frame
.
shape
filtered_frame
=
check
(
filtered_frame
,
self
.
parameters
)
filtered_frame
=
check
(
filtered_frame
,
self
.
parameters
)
...
...
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