Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
yori
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
Paolo Veglio
yori
Commits
6da82ab0
Commit
6da82ab0
authored
5 years ago
by
Paolo Veglio
Browse files
Options
Downloads
Patches
Plain Diff
fixed the accidental removal of attributes 'units' from 'Mean' and 'STD'
parent
16292fd3
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
yori/run_yori.py
+6
-0
6 additions, 0 deletions
yori/run_yori.py
yori/yori_aggregate.py
+7
-0
7 additions, 0 deletions
yori/yori_aggregate.py
with
13 additions
and
0 deletions
yori/run_yori.py
+
6
−
0
View file @
6da82ab0
...
...
@@ -211,6 +211,12 @@ def write_output(output_file, gridvar, compression, grid_size, ymlSet, fv, edges
for
attr
in
settings
.
get
(
'
attributes
'
,
[]):
setattr
(
grp
,
attr
[
'
name
'
],
attr
[
'
value
'
])
if
(
attr
[
'
name
'
]
==
'
units
'
):
if
'
Mean
'
in
list
(
grp
.
variables
):
setattr
(
grp
[
'
Mean
'
],
attr
[
'
name
'
],
attr
[
'
value
'
])
if
'
Standard_Deviation
'
in
list
(
grp
.
variables
):
setattr
(
grp
[
'
Standard_Deviation
'
],
attr
[
'
name
'
],
attr
[
'
value
'
])
if
'
histograms
'
in
settings
:
hist_bins
=
settings
[
'
histograms
'
][
'
edges
'
]
setattr
(
grp
[
'
Histogram_Counts
'
],
'
Histogram_Bin_Boundaries
'
,
...
...
This diff is collapsed.
Click to expand it.
yori/yori_aggregate.py
+
7
−
0
View file @
6da82ab0
...
...
@@ -263,6 +263,13 @@ def aggregate(flist, fname_out, satellite='', daily='',
for
attr
in
settings
.
get
(
'
attributes
'
,
[]):
setattr
(
grp
,
attr
[
'
name
'
],
attr
[
'
value
'
])
if
(
attr
[
'
name
'
]
==
'
units
'
):
if
(
'
Mean
'
in
grp
.
variables
):
setattr
(
grp
[
'
Mean
'
],
attr
[
'
name
'
],
attr
[
'
value
'
])
if
(
'
Standard_Deviation
'
in
grp
.
variables
):
setattr
(
grp
[
'
Standard_Deviation
'
],
attr
[
'
name
'
],
attr
[
'
value
'
])
if
'
histograms
'
in
settings
:
hist_bins
=
settings
[
'
histograms
'
][
'
edges
'
]
setattr
(
grp
[
'
Histogram_Counts
'
],
'
Histogram_Bin_Boundaries
'
,
...
...
This diff is collapsed.
Click to expand it.
Ethan Nelson
@enelson
mentioned in merge request
!10 (merged)
·
5 years ago
mentioned in merge request
!10 (merged)
mentioned in merge request !10
Toggle commit list
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