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
6b0eb7ca
Commit
6b0eb7ca
authored
8 years ago
by
Coda Phillips
Browse files
Options
Downloads
Patches
Plain Diff
Use first valid time as base_time
parent
297fe9d1
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
main.py
+2
-2
2 additions, 2 deletions
main.py
with
2 additions
and
2 deletions
main.py
+
2
−
2
View file @
6b0eb7ca
...
...
@@ -34,8 +34,8 @@ def save_quality(frame, qc_path):
for
variable_qc
in
frame
.
filter
(
like
=
'
qc_
'
):
if
variable_qc
not
in
[
'
qc_notes
'
,
'
qc_percent
'
]:
ncdf
.
createVariable
(
variable_qc
,
'
f4
'
,
(
'
time
'
,))[:]
=
frame
[
variable_qc
].
values
base_time
[:]
=
frame
.
datetime
[
0
].
to_datetime64
()
time_offset
[:]
=
(
frame
.
datetime
-
frame
.
datetime
[
0
]).
values
base_time
[:]
=
frame
.
datetime
.
dropna
().
iloc
[
0
].
to_datetime64
()
time_offset
[:]
=
(
frame
.
datetime
-
frame
.
datetime
.
dropna
().
iloc
[
0
]).
values
qc_percent
[:]
=
frame
[
'
qc_percent
'
].
values
qc_notes
[:]
=
frame
[
'
qc_notes
'
].
fillna
(
''
).
values
ncdf
.
close
()
...
...
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