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
456e8533
Project 'cphillips/aeri_quality_control' was moved to 'aeri/aeri_quality_control'. Please update any links and bookmarks that may still have the old path.
Commit
456e8533
authored
4 years ago
by
William Roberts
Browse files
Options
Downloads
Patches
Plain Diff
Update from aeri_docker 64bit
parent
9284fb48
No related branches found
Branches containing commit
Tags
m64_r20200630
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
aeri_qc/main.py
+3
-3
3 additions, 3 deletions
aeri_qc/main.py
aeri_qc/state_checks.py
+1
-1
1 addition, 1 deletion
aeri_qc/state_checks.py
plotting/quick_vis.py
+1
-0
1 addition, 0 deletions
plotting/quick_vis.py
run_aeri_qc.py
+1
-0
1 addition, 0 deletions
run_aeri_qc.py
with
6 additions
and
4 deletions
aeri_qc/main.py
+
3
−
3
View file @
456e8533
...
...
@@ -29,7 +29,7 @@ def save_quality(frame, qc_path, checklist):
Save the DataFrame (frame) to a netCDF at (qc_path)
"""
# First select only rows corresponding to records from the sum file
frame
=
frame
.
ix
[
pd
.
notnull
(
frame
.
sum_index
)].
set_index
(
'
sum_index
'
).
sort_index
()
frame
=
frame
.
loc
[
pd
.
notnull
(
frame
.
sum_index
)].
set_index
(
'
sum_index
'
).
sort_index
()
# Define the netcdf
handle
,
temp
=
mkstemp
()
...
...
@@ -185,7 +185,7 @@ def read_frame(cxs_file, sum_file):
# Fill in any missing scenesMirrorPositions
cxs
[
'
sceneMirrorPosition
'
]
=
fill_na_sceneMirrorPosition
(
cxs
.
sceneMirrorPosition
)
# Find all non-calibration views
non_cal_records
=
cxs
.
ix
[
~
cxs
.
sceneMirrorPosition
.
isin
([
ord
(
'
H
'
),
ord
(
'
A
'
)])].
copy
()
non_cal_records
=
cxs
.
loc
[
~
cxs
.
sceneMirrorPosition
.
isin
([
ord
(
'
H
'
),
ord
(
'
A
'
)])].
copy
()
non_cal_records
.
reset_index
(
inplace
=
True
)
non_cal_records
.
index
.
name
=
'
sum_index
'
...
...
@@ -197,7 +197,7 @@ def read_frame(cxs_file, sum_file):
# Combine extra data from SUM into CXS
# also non_cal_records may have a different number of records than the sum, so limit by the sum
non_cal_records
=
non_cal_records
.
combine_first
(
sum_
).
ix
[
sum_
.
index
]
non_cal_records
=
non_cal_records
.
combine_first
(
sum_
).
loc
[
sum_
.
index
]
hk
=
cxs
.
combine_first
(
non_cal_records
.
reset_index
().
set_index
(
'
cxs_index
'
)).
reset_index
()
with
warnings
.
catch_warnings
():
warnings
.
simplefilter
(
'
ignore
'
)
...
...
This diff is collapsed.
Click to expand it.
aeri_qc/state_checks.py
+
1
−
1
View file @
456e8533
...
...
@@ -45,7 +45,7 @@ def hbb_stable_check(frame, parameters):
Check that the HBB temperature does not change faster than 0.002 K/s
"""
# convert changes in datetime from nanoseconds to seconds
interval_seconds
=
frame
[
'
datetime
'
].
diff
().
astype
(
np
.
int64
)
/
1e9
interval_seconds
=
frame
[
'
datetime
'
].
diff
().
dropna
().
astype
(
np
.
int64
)
/
1e9
# calculate change in temp/seconds
hbbb_diff
=
frame
[
'
HBBbottomTemp
'
].
diff
()
/
interval_seconds
hbba_diff
=
frame
[
'
HBBapexTemp
'
].
diff
()
/
interval_seconds
...
...
This diff is collapsed.
Click to expand it.
plotting/quick_vis.py
+
1
−
0
View file @
456e8533
#!/usr/bin/env python3
import
argparse
import
os
import
time
...
...
This diff is collapsed.
Click to expand it.
run_aeri_qc.py
+
1
−
0
View file @
456e8533
#!/usr/bin/env python3
import
numpy
as
np
np
.
seterr
(
all
=
'
raise
'
)
...
...
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